@constructive-io/react 0.18.8 → 0.19.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (137) hide show
  1. package/admin/hooks/index.d.ts +1 -1
  2. package/admin/hooks/index.js +1 -1
  3. package/admin/hooks/invalidation.d.ts +6 -0
  4. package/admin/hooks/invalidation.js +16 -0
  5. package/admin/hooks/mutation-keys.d.ts +12 -0
  6. package/admin/hooks/mutation-keys.js +8 -1
  7. package/admin/hooks/mutations/index.d.ts +3 -0
  8. package/admin/hooks/mutations/index.js +3 -0
  9. package/admin/hooks/mutations/useCreateUsageSnapshotMutation.d.ts +34 -0
  10. package/admin/hooks/mutations/useCreateUsageSnapshotMutation.js +34 -0
  11. package/admin/hooks/mutations/useDeleteUsageSnapshotMutation.d.ts +38 -0
  12. package/admin/hooks/mutations/useDeleteUsageSnapshotMutation.js +39 -0
  13. package/admin/hooks/mutations/useUpdateUsageSnapshotMutation.d.ts +40 -0
  14. package/admin/hooks/mutations/useUpdateUsageSnapshotMutation.js +40 -0
  15. package/admin/hooks/queries/index.d.ts +2 -0
  16. package/admin/hooks/queries/index.js +2 -0
  17. package/admin/hooks/queries/useUsageSnapshotQuery.d.ts +65 -0
  18. package/admin/hooks/queries/useUsageSnapshotQuery.js +53 -0
  19. package/admin/hooks/queries/useUsageSnapshotsQuery.d.ts +69 -0
  20. package/admin/hooks/queries/useUsageSnapshotsQuery.js +38 -0
  21. package/admin/hooks/query-keys.d.ts +14 -0
  22. package/admin/hooks/query-keys.js +9 -1
  23. package/admin/orm/index.d.ts +2 -0
  24. package/admin/orm/index.js +2 -0
  25. package/admin/orm/input-types.d.ts +129 -0
  26. package/admin/orm/models/index.d.ts +1 -0
  27. package/admin/orm/models/index.js +3 -1
  28. package/admin/orm/models/usageSnapshot.d.ts +56 -0
  29. package/admin/orm/models/usageSnapshot.js +100 -0
  30. package/admin/schema-types.d.ts +98 -1
  31. package/admin/types.d.ts +8 -0
  32. package/esm/admin/hooks/index.d.ts +1 -1
  33. package/esm/admin/hooks/index.js +1 -1
  34. package/esm/admin/hooks/invalidation.d.ts +6 -0
  35. package/esm/admin/hooks/invalidation.js +17 -1
  36. package/esm/admin/hooks/mutation-keys.d.ts +12 -0
  37. package/esm/admin/hooks/mutation-keys.js +7 -0
  38. package/esm/admin/hooks/mutations/index.d.ts +3 -0
  39. package/esm/admin/hooks/mutations/index.js +3 -0
  40. package/esm/admin/hooks/mutations/useCreateUsageSnapshotMutation.d.ts +34 -0
  41. package/esm/admin/hooks/mutations/useCreateUsageSnapshotMutation.js +31 -0
  42. package/esm/admin/hooks/mutations/useDeleteUsageSnapshotMutation.d.ts +38 -0
  43. package/esm/admin/hooks/mutations/useDeleteUsageSnapshotMutation.js +36 -0
  44. package/esm/admin/hooks/mutations/useUpdateUsageSnapshotMutation.d.ts +40 -0
  45. package/esm/admin/hooks/mutations/useUpdateUsageSnapshotMutation.js +37 -0
  46. package/esm/admin/hooks/queries/index.d.ts +2 -0
  47. package/esm/admin/hooks/queries/index.js +2 -0
  48. package/esm/admin/hooks/queries/useUsageSnapshotQuery.d.ts +65 -0
  49. package/esm/admin/hooks/queries/useUsageSnapshotQuery.js +47 -0
  50. package/esm/admin/hooks/queries/useUsageSnapshotsQuery.d.ts +69 -0
  51. package/esm/admin/hooks/queries/useUsageSnapshotsQuery.js +32 -0
  52. package/esm/admin/hooks/query-keys.d.ts +14 -0
  53. package/esm/admin/hooks/query-keys.js +8 -0
  54. package/esm/admin/orm/index.d.ts +2 -0
  55. package/esm/admin/orm/index.js +2 -0
  56. package/esm/admin/orm/input-types.d.ts +129 -0
  57. package/esm/admin/orm/models/index.d.ts +1 -0
  58. package/esm/admin/orm/models/index.js +1 -0
  59. package/esm/admin/orm/models/usageSnapshot.d.ts +56 -0
  60. package/esm/admin/orm/models/usageSnapshot.js +96 -0
  61. package/esm/admin/schema-types.d.ts +98 -1
  62. package/esm/admin/types.d.ts +8 -0
  63. package/esm/public/hooks/index.d.ts +1 -1
  64. package/esm/public/hooks/index.js +1 -1
  65. package/esm/public/hooks/invalidation.d.ts +6 -0
  66. package/esm/public/hooks/invalidation.js +17 -1
  67. package/esm/public/hooks/mutation-keys.d.ts +12 -4
  68. package/esm/public/hooks/mutation-keys.js +7 -6
  69. package/esm/public/hooks/mutations/index.d.ts +3 -2
  70. package/esm/public/hooks/mutations/index.js +3 -2
  71. package/esm/public/hooks/mutations/useCreateUsageSnapshotMutation.d.ts +34 -0
  72. package/esm/public/hooks/mutations/useCreateUsageSnapshotMutation.js +31 -0
  73. package/esm/public/hooks/mutations/useDeleteUsageSnapshotMutation.d.ts +38 -0
  74. package/esm/public/hooks/mutations/useDeleteUsageSnapshotMutation.js +36 -0
  75. package/esm/public/hooks/mutations/useUpdateUsageSnapshotMutation.d.ts +40 -0
  76. package/esm/public/hooks/mutations/useUpdateUsageSnapshotMutation.js +37 -0
  77. package/esm/public/hooks/queries/index.d.ts +2 -0
  78. package/esm/public/hooks/queries/index.js +2 -0
  79. package/esm/public/hooks/queries/useUsageSnapshotQuery.d.ts +65 -0
  80. package/esm/public/hooks/queries/useUsageSnapshotQuery.js +47 -0
  81. package/esm/public/hooks/queries/useUsageSnapshotsQuery.d.ts +69 -0
  82. package/esm/public/hooks/queries/useUsageSnapshotsQuery.js +32 -0
  83. package/esm/public/hooks/query-keys.d.ts +14 -0
  84. package/esm/public/hooks/query-keys.js +8 -0
  85. package/esm/public/orm/index.d.ts +2 -10
  86. package/esm/public/orm/index.js +2 -0
  87. package/esm/public/orm/input-types.d.ts +129 -22
  88. package/esm/public/orm/models/index.d.ts +1 -0
  89. package/esm/public/orm/models/index.js +1 -0
  90. package/esm/public/orm/models/usageSnapshot.d.ts +56 -0
  91. package/esm/public/orm/models/usageSnapshot.js +96 -0
  92. package/esm/public/orm/mutation/index.d.ts +1 -17
  93. package/esm/public/orm/mutation/index.js +0 -24
  94. package/esm/public/schema-types.d.ts +367 -286
  95. package/esm/public/types.d.ts +8 -0
  96. package/package.json +6 -6
  97. package/public/hooks/index.d.ts +1 -1
  98. package/public/hooks/index.js +1 -1
  99. package/public/hooks/invalidation.d.ts +6 -0
  100. package/public/hooks/invalidation.js +16 -0
  101. package/public/hooks/mutation-keys.d.ts +12 -4
  102. package/public/hooks/mutation-keys.js +9 -7
  103. package/public/hooks/mutations/index.d.ts +3 -2
  104. package/public/hooks/mutations/index.js +3 -2
  105. package/public/hooks/mutations/useCreateUsageSnapshotMutation.d.ts +34 -0
  106. package/public/hooks/mutations/useCreateUsageSnapshotMutation.js +34 -0
  107. package/public/hooks/mutations/useDeleteUsageSnapshotMutation.d.ts +38 -0
  108. package/public/hooks/mutations/useDeleteUsageSnapshotMutation.js +39 -0
  109. package/public/hooks/mutations/useUpdateUsageSnapshotMutation.d.ts +40 -0
  110. package/public/hooks/mutations/useUpdateUsageSnapshotMutation.js +40 -0
  111. package/public/hooks/queries/index.d.ts +2 -0
  112. package/public/hooks/queries/index.js +2 -0
  113. package/public/hooks/queries/useUsageSnapshotQuery.d.ts +65 -0
  114. package/public/hooks/queries/useUsageSnapshotQuery.js +53 -0
  115. package/public/hooks/queries/useUsageSnapshotsQuery.d.ts +69 -0
  116. package/public/hooks/queries/useUsageSnapshotsQuery.js +38 -0
  117. package/public/hooks/query-keys.d.ts +14 -0
  118. package/public/hooks/query-keys.js +10 -1
  119. package/public/orm/index.d.ts +2 -10
  120. package/public/orm/index.js +2 -0
  121. package/public/orm/input-types.d.ts +129 -22
  122. package/public/orm/models/index.d.ts +1 -0
  123. package/public/orm/models/index.js +3 -1
  124. package/public/orm/models/usageSnapshot.d.ts +56 -0
  125. package/public/orm/models/usageSnapshot.js +100 -0
  126. package/public/orm/mutation/index.d.ts +1 -17
  127. package/public/orm/mutation/index.js +0 -24
  128. package/public/schema-types.d.ts +367 -286
  129. package/public/types.d.ts +8 -0
  130. package/esm/public/hooks/mutations/useAppendFieldSmartTagsMutation.d.ts +0 -20
  131. package/esm/public/hooks/mutations/useAppendFieldSmartTagsMutation.js +0 -23
  132. package/esm/public/hooks/mutations/useAppendTableSmartTagsMutation.d.ts +0 -20
  133. package/esm/public/hooks/mutations/useAppendTableSmartTagsMutation.js +0 -23
  134. package/public/hooks/mutations/useAppendFieldSmartTagsMutation.d.ts +0 -20
  135. package/public/hooks/mutations/useAppendFieldSmartTagsMutation.js +0 -26
  136. package/public/hooks/mutations/useAppendTableSmartTagsMutation.d.ts +0 -20
  137. package/public/hooks/mutations/useAppendTableSmartTagsMutation.js +0 -26
@@ -3,7 +3,7 @@
3
3
  * @generated by @constructive-io/graphql-codegen
4
4
  * DO NOT EDIT - changes will be overwritten
5
5
  */
6
- import type { AgentMessage, AgentTask, AgentThread, Api, ApiModule, ApiSchema, ApiSetting, App, AppAchievement, AppAdminGrant, AppClaimedInvite, AppGrant, AppInvite, AppLevel, AppLevelRequirement, AppLimit, AppLimitCap, AppLimitCapsDefault, AppLimitCredit, AppLimitCreditCode, AppLimitCreditCodeItem, AppLimitCreditRedemption, AppLimitDefault, AppLimitEvent, AppMembership, AppMembershipDefault, AppOwnerGrant, AppPermission, AppPermissionDefault, AppStep, AstMigration, AuditLog, BillingModule, BillingProviderModule, Blueprint, BlueprintConstruction, BlueprintTemplate, CheckConstraint, Commit, ConnectedAccountsModule, CorsSetting, CryptoAddress, CryptoAddressesModule, CryptoAuthModule, Database, DatabaseProvisionModule, DatabaseSetting, DatabaseTransfer, DefaultIdsModule, DefaultPrivilege, DenormalizedTableField, DevicesModule, Domain, Email, EmailsModule, EmbeddingChunk, EncryptedSecretsModule, EntityTypeProvision, Enum, Field, ForeignKeyConstraint, FullTextSearch, Function, GetAllRecord, HierarchyModule, IdentityProvider, IdentityProvidersModule, Index, InvitesModule, LevelsModule, LimitsModule, MembershipType, MembershipTypesModule, MembershipsModule, MigrateFile, NodeTypeRegistry, NotificationsModule, Object, OrgAdminGrant, OrgChartEdge, OrgChartEdgeGrant, OrgClaimedInvite, OrgGetManagersRecord, OrgGetSubordinatesRecord, OrgGrant, OrgInvite, OrgLimit, OrgLimitAggregate, OrgLimitCap, OrgLimitCapsDefault, OrgLimitCredit, OrgLimitDefault, OrgLimitEvent, OrgMember, OrgMemberProfile, OrgMembership, OrgMembershipDefault, OrgMembershipSetting, OrgOwnerGrant, OrgPermission, OrgPermissionDefault, Partition, PermissionsModule, PhoneNumber, PhoneNumbersModule, PlansModule, Policy, PrimaryKeyConstraint, ProfilesModule, PubkeySetting, RateLimitsModule, RealtimeModule, Ref, RelationProvision, RlsModule, RlsSetting, RoleType, Schema, SchemaGrant, SecretsModule, SecureTableProvision, SessionSecretsModule, SessionsModule, Site, SiteMetadatum, SiteModule, SiteTheme, SpatialRelation, SqlAction, StorageModule, Store, Table, TableGrant, Trigger, TriggerFunction, UniqueConstraint, User, UserAuthModule, UserConnectedAccount, UsersModule, View, ViewGrant, ViewRule, ViewTable, WebauthnAuthModule, WebauthnCredential, WebauthnCredentialsModule, WebauthnSetting, BigIntFilter, BitStringFilter, BooleanFilter, DatetimeFilter, FloatFilter, FullTextFilter, IntFilter, InternetAddressFilter, JSONFilter, StringFilter, StringListFilter, UUIDFilter, UUIDListFilter } from './types';
6
+ import type { AgentMessage, AgentTask, AgentThread, Api, ApiModule, ApiSchema, ApiSetting, App, AppAchievement, AppAdminGrant, AppClaimedInvite, AppGrant, AppInvite, AppLevel, AppLevelRequirement, AppLimit, AppLimitCap, AppLimitCapsDefault, AppLimitCredit, AppLimitCreditCode, AppLimitCreditCodeItem, AppLimitCreditRedemption, AppLimitDefault, AppLimitEvent, AppMembership, AppMembershipDefault, AppOwnerGrant, AppPermission, AppPermissionDefault, AppStep, AstMigration, AuditLog, BillingModule, BillingProviderModule, Blueprint, BlueprintConstruction, BlueprintTemplate, CheckConstraint, Commit, ConnectedAccountsModule, CorsSetting, CryptoAddress, CryptoAddressesModule, CryptoAuthModule, Database, DatabaseProvisionModule, DatabaseSetting, DatabaseTransfer, DefaultIdsModule, DefaultPrivilege, DenormalizedTableField, DevicesModule, Domain, Email, EmailsModule, EmbeddingChunk, EncryptedSecretsModule, EntityTypeProvision, Enum, Field, ForeignKeyConstraint, FullTextSearch, Function, GetAllRecord, HierarchyModule, IdentityProvider, IdentityProvidersModule, Index, InvitesModule, LevelsModule, LimitsModule, MembershipType, MembershipTypesModule, MembershipsModule, MigrateFile, NodeTypeRegistry, NotificationsModule, Object, OrgAdminGrant, OrgChartEdge, OrgChartEdgeGrant, OrgClaimedInvite, OrgGetManagersRecord, OrgGetSubordinatesRecord, OrgGrant, OrgInvite, OrgLimit, OrgLimitAggregate, OrgLimitCap, OrgLimitCapsDefault, OrgLimitCredit, OrgLimitDefault, OrgLimitEvent, OrgMember, OrgMemberProfile, OrgMembership, OrgMembershipDefault, OrgMembershipSetting, OrgOwnerGrant, OrgPermission, OrgPermissionDefault, Partition, PermissionsModule, PhoneNumber, PhoneNumbersModule, PlansModule, Policy, PrimaryKeyConstraint, ProfilesModule, PubkeySetting, RateLimitsModule, RealtimeModule, Ref, RelationProvision, RlsModule, RlsSetting, RoleType, Schema, SchemaGrant, SecretsModule, SecureTableProvision, SessionSecretsModule, SessionsModule, Site, SiteMetadatum, SiteModule, SiteTheme, SpatialRelation, SqlAction, StorageModule, Store, Table, TableGrant, Trigger, TriggerFunction, UniqueConstraint, UsageSnapshot, User, UserAuthModule, UserConnectedAccount, UsersModule, View, ViewGrant, ViewRule, ViewTable, WebauthnAuthModule, WebauthnCredential, WebauthnCredentialsModule, WebauthnSetting, BigIntFilter, BitStringFilter, BooleanFilter, DatetimeFilter, FloatFilter, FullTextFilter, IntFilter, InternetAddressFilter, JSONFilter, StringFilter, StringListFilter, UUIDFilter, UUIDListFilter } from './types';
7
7
  export type Base64EncodedBinary = unknown;
8
8
  export type ConstructiveInternalTypeAttachment = unknown;
9
9
  export type ConstructiveInternalTypeEmail = unknown;
@@ -269,6 +269,8 @@ export type CommitOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' |
269
269
  export type PubkeySettingOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'CRYPTO_NETWORK_ASC' | 'CRYPTO_NETWORK_DESC' | 'USER_FIELD_ASC' | 'USER_FIELD_DESC' | 'SIGN_UP_WITH_KEY_FUNCTION_ID_ASC' | 'SIGN_UP_WITH_KEY_FUNCTION_ID_DESC' | 'SIGN_IN_REQUEST_CHALLENGE_FUNCTION_ID_ASC' | 'SIGN_IN_REQUEST_CHALLENGE_FUNCTION_ID_DESC' | 'SIGN_IN_RECORD_FAILURE_FUNCTION_ID_ASC' | 'SIGN_IN_RECORD_FAILURE_FUNCTION_ID_DESC' | 'SIGN_IN_WITH_CHALLENGE_FUNCTION_ID_ASC' | 'SIGN_IN_WITH_CHALLENGE_FUNCTION_ID_DESC';
270
270
  /** Methods to use when ordering `RateLimitsModule`. */
271
271
  export type RateLimitsModuleOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' | 'RATE_LIMIT_SETTINGS_TABLE_ID_ASC' | 'RATE_LIMIT_SETTINGS_TABLE_ID_DESC' | 'IP_RATE_LIMITS_TABLE_ID_ASC' | 'IP_RATE_LIMITS_TABLE_ID_DESC' | 'RATE_LIMITS_TABLE_ID_ASC' | 'RATE_LIMITS_TABLE_ID_DESC' | 'RATE_LIMIT_SETTINGS_TABLE_ASC' | 'RATE_LIMIT_SETTINGS_TABLE_DESC' | 'IP_RATE_LIMITS_TABLE_ASC' | 'IP_RATE_LIMITS_TABLE_DESC' | 'RATE_LIMITS_TABLE_ASC' | 'RATE_LIMITS_TABLE_DESC';
272
+ /** Methods to use when ordering `UsageSnapshot`. */
273
+ export type UsageSnapshotOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'METRIC_NAME_ASC' | 'METRIC_NAME_DESC' | 'METRIC_VALUE_ASC' | 'METRIC_VALUE_DESC' | 'DIMENSIONS_ASC' | 'DIMENSIONS_DESC' | 'CAPTURED_AT_ASC' | 'CAPTURED_AT_DESC' | 'ID_ASC' | 'ID_DESC';
272
274
  /** Methods to use when ordering `AppMembershipDefault`. */
273
275
  export type AppMembershipDefaultOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'CREATED_BY_ASC' | 'CREATED_BY_DESC' | 'UPDATED_BY_ASC' | 'UPDATED_BY_DESC' | 'IS_APPROVED_ASC' | 'IS_APPROVED_DESC' | 'IS_VERIFIED_ASC' | 'IS_VERIFIED_DESC';
274
276
  /** Methods to use when ordering `OrgMembershipDefault`. */
@@ -8266,6 +8268,27 @@ export interface CommitFilter {
8266
8268
  /** Negates the expression. */
8267
8269
  not?: CommitFilter;
8268
8270
  }
8271
+ /** A filter to be used against `UsageSnapshot` object types. All fields are combined with a logical ‘and.’ */
8272
+ export interface UsageSnapshotFilter {
8273
+ /** Filter by the object’s `databaseId` field. */
8274
+ databaseId?: UUIDFilter;
8275
+ /** Filter by the object’s `metricName` field. */
8276
+ metricName?: StringFilter;
8277
+ /** Filter by the object’s `metricValue` field. */
8278
+ metricValue?: BigIntFilter;
8279
+ /** Filter by the object’s `dimensions` field. */
8280
+ dimensions?: JSONFilter;
8281
+ /** Filter by the object’s `capturedAt` field. */
8282
+ capturedAt?: DatetimeFilter;
8283
+ /** Filter by the object’s `id` field. */
8284
+ id?: UUIDFilter;
8285
+ /** Checks for all expressions in this list. */
8286
+ and?: UsageSnapshotFilter[];
8287
+ /** Checks for any expressions in this list. */
8288
+ or?: UsageSnapshotFilter[];
8289
+ /** Negates the expression. */
8290
+ not?: UsageSnapshotFilter;
8291
+ }
8269
8292
  /** A filter to be used against `AppMembershipDefault` object types. All fields are combined with a logical ‘and.’ */
8270
8293
  export interface AppMembershipDefaultFilter {
8271
8294
  /** Filter by the object’s `id` field. */
@@ -8541,16 +8564,6 @@ export interface SetFieldOrderInput {
8541
8564
  clientMutationId?: string;
8542
8565
  fieldIds?: string[];
8543
8566
  }
8544
- export interface AppendFieldSmartTagsInput {
8545
- clientMutationId?: string;
8546
- pFieldId?: string;
8547
- pTags?: unknown;
8548
- }
8549
- export interface AppendTableSmartTagsInput {
8550
- clientMutationId?: string;
8551
- pTableId?: string;
8552
- pTags?: unknown;
8553
- }
8554
8567
  export interface ProvisionUniqueConstraintInput {
8555
8568
  clientMutationId?: string;
8556
8569
  databaseId?: string;
@@ -9598,6 +9611,46 @@ export interface AgentMessageInput {
9598
9611
  /** JSON metadata for extensible key-value storage */
9599
9612
  parts?: unknown;
9600
9613
  }
9614
+ export interface CreateAppLimitCreditInput {
9615
+ clientMutationId?: string;
9616
+ /** The `AppLimitCredit` to be created by this mutation. */
9617
+ appLimitCredit: AppLimitCreditInput;
9618
+ }
9619
+ /** An input for mutations affecting `AppLimitCredit` */
9620
+ export interface AppLimitCreditInput {
9621
+ id?: string;
9622
+ /** FK to default_limits — which limit definition this credit applies to */
9623
+ defaultLimitId: string;
9624
+ /** User this credit is for; NULL for aggregate entity-level credits */
9625
+ actorId?: string;
9626
+ /** Number of credits to grant (positive to add, negative to revoke) */
9627
+ amount: string;
9628
+ /** Credit durability: permanent (survives window reset) or period (resets on window expiry) */
9629
+ creditType?: string;
9630
+ /** Optional reason for the credit grant (promo code, admin grant, etc.) */
9631
+ reason?: string;
9632
+ }
9633
+ export interface CreateOrgLimitCreditInput {
9634
+ clientMutationId?: string;
9635
+ /** The `OrgLimitCredit` to be created by this mutation. */
9636
+ orgLimitCredit: OrgLimitCreditInput;
9637
+ }
9638
+ /** An input for mutations affecting `OrgLimitCredit` */
9639
+ export interface OrgLimitCreditInput {
9640
+ id?: string;
9641
+ /** FK to default_limits — which limit definition this credit applies to */
9642
+ defaultLimitId: string;
9643
+ /** User this credit is for; NULL for aggregate entity-level credits */
9644
+ actorId?: string;
9645
+ /** Entity this credit applies to; NULL for actor-only credits */
9646
+ entityId?: string;
9647
+ /** Number of credits to grant (positive to add, negative to revoke) */
9648
+ amount: string;
9649
+ /** Credit durability: permanent (survives window reset) or period (resets on window expiry) */
9650
+ creditType?: string;
9651
+ /** Optional reason for the credit grant (promo code, admin grant, etc.) */
9652
+ reason?: string;
9653
+ }
9601
9654
  export interface CreateObjectInput {
9602
9655
  clientMutationId?: string;
9603
9656
  /** The `Object` to be created by this mutation. */
@@ -9654,46 +9707,6 @@ export interface AppLevelRequirementInput {
9654
9707
  createdAt?: string;
9655
9708
  updatedAt?: string;
9656
9709
  }
9657
- export interface CreateAppLimitCreditInput {
9658
- clientMutationId?: string;
9659
- /** The `AppLimitCredit` to be created by this mutation. */
9660
- appLimitCredit: AppLimitCreditInput;
9661
- }
9662
- /** An input for mutations affecting `AppLimitCredit` */
9663
- export interface AppLimitCreditInput {
9664
- id?: string;
9665
- /** FK to default_limits — which limit definition this credit applies to */
9666
- defaultLimitId: string;
9667
- /** User this credit is for; NULL for aggregate entity-level credits */
9668
- actorId?: string;
9669
- /** Number of credits to grant (positive to add, negative to revoke) */
9670
- amount: string;
9671
- /** Credit durability: permanent (survives window reset) or period (resets on window expiry) */
9672
- creditType?: string;
9673
- /** Optional reason for the credit grant (promo code, admin grant, etc.) */
9674
- reason?: string;
9675
- }
9676
- export interface CreateOrgLimitCreditInput {
9677
- clientMutationId?: string;
9678
- /** The `OrgLimitCredit` to be created by this mutation. */
9679
- orgLimitCredit: OrgLimitCreditInput;
9680
- }
9681
- /** An input for mutations affecting `OrgLimitCredit` */
9682
- export interface OrgLimitCreditInput {
9683
- id?: string;
9684
- /** FK to default_limits — which limit definition this credit applies to */
9685
- defaultLimitId: string;
9686
- /** User this credit is for; NULL for aggregate entity-level credits */
9687
- actorId?: string;
9688
- /** Entity this credit applies to; NULL for actor-only credits */
9689
- entityId?: string;
9690
- /** Number of credits to grant (positive to add, negative to revoke) */
9691
- amount: string;
9692
- /** Credit durability: permanent (survives window reset) or period (resets on window expiry) */
9693
- creditType?: string;
9694
- /** Optional reason for the credit grant (promo code, admin grant, etc.) */
9695
- reason?: string;
9696
- }
9697
9710
  export interface CreateFullTextSearchInput {
9698
9711
  clientMutationId?: string;
9699
9712
  /** The `FullTextSearch` to be created by this mutation. */
@@ -9842,6 +9855,25 @@ export interface PhoneNumberInput {
9842
9855
  createdAt?: string;
9843
9856
  updatedAt?: string;
9844
9857
  }
9858
+ export interface CreateUsageSnapshotInput {
9859
+ clientMutationId?: string;
9860
+ /** The `UsageSnapshot` to be created by this mutation. */
9861
+ usageSnapshot: UsageSnapshotInput;
9862
+ }
9863
+ /** An input for mutations affecting `UsageSnapshot` */
9864
+ export interface UsageSnapshotInput {
9865
+ /** The database this snapshot belongs to. References metaschema_public.database.id but declared without an FK constraint — the snapshot collector runs in a platform context where the FK would add overhead without value. */
9866
+ databaseId: string;
9867
+ /** Identifier for the metric being measured (e.g. 'reads', 'writes', 'storage_bytes', 'compute_time_ms'). */
9868
+ metricName: string;
9869
+ /** The measured value at the time of capture. Interpretation depends on metric_name (count, bytes, milliseconds, etc.). */
9870
+ metricValue?: string;
9871
+ /** Optional sub-metric breakdowns as key-value pairs (e.g. {"query_type": "select"} for reads). Empty object when no breakdown is needed. */
9872
+ dimensions?: unknown;
9873
+ /** When this snapshot was taken. Defaults to the current timestamp; the snapshot collector may override this for backdated imports. */
9874
+ capturedAt?: string;
9875
+ id?: string;
9876
+ }
9845
9877
  export interface CreateAppClaimedInviteInput {
9846
9878
  clientMutationId?: string;
9847
9879
  /** The `AppClaimedInvite` to be created by this mutation. */
@@ -10432,6 +10464,35 @@ export interface PlansModuleInput {
10432
10464
  applyPlanAggregateFunction?: string;
10433
10465
  prefix?: string;
10434
10466
  }
10467
+ export interface CreateAppLimitInput {
10468
+ clientMutationId?: string;
10469
+ /** The `AppLimit` to be created by this mutation. */
10470
+ appLimit: AppLimitInput;
10471
+ }
10472
+ /** An input for mutations affecting `AppLimit` */
10473
+ export interface AppLimitInput {
10474
+ id?: string;
10475
+ /** Name identifier of the limit being tracked */
10476
+ name?: string;
10477
+ /** User whose usage is being tracked against this limit */
10478
+ actorId: string;
10479
+ /** Current usage count for this actor and limit */
10480
+ num?: string;
10481
+ /** Maximum allowed usage; negative means unlimited. Modified by plans, credits, and achievements. */
10482
+ max?: string;
10483
+ /** Soft limit threshold for warnings; NULL means no soft limit. When num >= soft_max, consumers should warn but still allow until max is reached. */
10484
+ softMax?: string;
10485
+ /** Start of the current metering window; NULL means no time window */
10486
+ windowStart?: string;
10487
+ /** Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window */
10488
+ windowDuration?: IntervalInput;
10489
+ /** Ceiling set by the active plan via apply_plan(). Window reset does not change this value. */
10490
+ planMax?: string;
10491
+ /** Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. */
10492
+ purchasedCredits?: string;
10493
+ /** Temporary credits for the current billing window. Resets to 0 on window expiry. */
10494
+ periodCredits?: string;
10495
+ }
10435
10496
  export interface CreateOrgMemberProfileInput {
10436
10497
  clientMutationId?: string;
10437
10498
  /** The `OrgMemberProfile` to be created by this mutation. */
@@ -10480,35 +10541,6 @@ export interface SqlActionInput {
10480
10541
  actionId?: string;
10481
10542
  actorId?: string;
10482
10543
  }
10483
- export interface CreateAppLimitInput {
10484
- clientMutationId?: string;
10485
- /** The `AppLimit` to be created by this mutation. */
10486
- appLimit: AppLimitInput;
10487
- }
10488
- /** An input for mutations affecting `AppLimit` */
10489
- export interface AppLimitInput {
10490
- id?: string;
10491
- /** Name identifier of the limit being tracked */
10492
- name?: string;
10493
- /** User whose usage is being tracked against this limit */
10494
- actorId: string;
10495
- /** Current usage count for this actor and limit */
10496
- num?: string;
10497
- /** Maximum allowed usage; negative means unlimited. Modified by plans, credits, and achievements. */
10498
- max?: string;
10499
- /** Soft limit threshold for warnings; NULL means no soft limit. When num >= soft_max, consumers should warn but still allow until max is reached. */
10500
- softMax?: string;
10501
- /** Start of the current metering window; NULL means no time window */
10502
- windowStart?: string;
10503
- /** Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window */
10504
- windowDuration?: IntervalInput;
10505
- /** Ceiling set by the active plan via apply_plan(). Window reset does not change this value. */
10506
- planMax?: string;
10507
- /** Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. */
10508
- purchasedCredits?: string;
10509
- /** Temporary credits for the current billing window. Resets to 0 on window expiry. */
10510
- periodCredits?: string;
10511
- }
10512
10544
  export interface CreateDatabaseTransferInput {
10513
10545
  clientMutationId?: string;
10514
10546
  /** The `DatabaseTransfer` to be created by this mutation. */
@@ -10658,27 +10690,6 @@ export interface SecureTableProvisionInput {
10658
10690
  /** Output column populated by the trigger after field creation. Contains the UUIDs of the metaschema fields created on the target table by this provision row's nodes. NULL when nodes is empty or before the trigger runs. Callers should not set this directly. */
10659
10691
  outFields?: string[];
10660
10692
  }
10661
- export interface CreateAstMigrationInput {
10662
- clientMutationId?: string;
10663
- /** The `AstMigration` to be created by this mutation. */
10664
- astMigration: AstMigrationInput;
10665
- }
10666
- /** An input for mutations affecting `AstMigration` */
10667
- export interface AstMigrationInput {
10668
- id?: number;
10669
- databaseId?: string;
10670
- name?: string;
10671
- requires?: string[];
10672
- payload?: unknown;
10673
- deploys?: string;
10674
- deploy?: unknown;
10675
- revert?: unknown;
10676
- verify?: unknown;
10677
- createdAt?: string;
10678
- action?: string;
10679
- actionId?: string;
10680
- actorId?: string;
10681
- }
10682
10693
  export interface CreateOrgLimitAggregateInput {
10683
10694
  clientMutationId?: string;
10684
10695
  /** The `OrgLimitAggregate` to be created by this mutation. */
@@ -10740,6 +10751,27 @@ export interface OrgLimitInput {
10740
10751
  periodCredits?: string;
10741
10752
  entityId: string;
10742
10753
  }
10754
+ export interface CreateAstMigrationInput {
10755
+ clientMutationId?: string;
10756
+ /** The `AstMigration` to be created by this mutation. */
10757
+ astMigration: AstMigrationInput;
10758
+ }
10759
+ /** An input for mutations affecting `AstMigration` */
10760
+ export interface AstMigrationInput {
10761
+ id?: number;
10762
+ databaseId?: string;
10763
+ name?: string;
10764
+ requires?: string[];
10765
+ payload?: unknown;
10766
+ deploys?: string;
10767
+ deploy?: unknown;
10768
+ revert?: unknown;
10769
+ verify?: unknown;
10770
+ createdAt?: string;
10771
+ action?: string;
10772
+ actionId?: string;
10773
+ actorId?: string;
10774
+ }
10743
10775
  export interface CreateEnumInput {
10744
10776
  clientMutationId?: string;
10745
10777
  /** The `Enum` to be created by this mutation. */
@@ -12999,6 +13031,48 @@ export interface AgentMessagePatch {
12999
13031
  /** JSON metadata for extensible key-value storage */
13000
13032
  parts?: unknown;
13001
13033
  }
13034
+ export interface UpdateAppLimitCreditInput {
13035
+ clientMutationId?: string;
13036
+ id: string;
13037
+ /** An object where the defined keys will be set on the `AppLimitCredit` being updated. */
13038
+ appLimitCreditPatch: AppLimitCreditPatch;
13039
+ }
13040
+ /** Represents an update to a `AppLimitCredit`. Fields that are set will be updated. */
13041
+ export interface AppLimitCreditPatch {
13042
+ id?: string;
13043
+ /** FK to default_limits — which limit definition this credit applies to */
13044
+ defaultLimitId?: string;
13045
+ /** User this credit is for; NULL for aggregate entity-level credits */
13046
+ actorId?: string;
13047
+ /** Number of credits to grant (positive to add, negative to revoke) */
13048
+ amount?: string;
13049
+ /** Credit durability: permanent (survives window reset) or period (resets on window expiry) */
13050
+ creditType?: string;
13051
+ /** Optional reason for the credit grant (promo code, admin grant, etc.) */
13052
+ reason?: string;
13053
+ }
13054
+ export interface UpdateOrgLimitCreditInput {
13055
+ clientMutationId?: string;
13056
+ id: string;
13057
+ /** An object where the defined keys will be set on the `OrgLimitCredit` being updated. */
13058
+ orgLimitCreditPatch: OrgLimitCreditPatch;
13059
+ }
13060
+ /** Represents an update to a `OrgLimitCredit`. Fields that are set will be updated. */
13061
+ export interface OrgLimitCreditPatch {
13062
+ id?: string;
13063
+ /** FK to default_limits — which limit definition this credit applies to */
13064
+ defaultLimitId?: string;
13065
+ /** User this credit is for; NULL for aggregate entity-level credits */
13066
+ actorId?: string;
13067
+ /** Entity this credit applies to; NULL for actor-only credits */
13068
+ entityId?: string;
13069
+ /** Number of credits to grant (positive to add, negative to revoke) */
13070
+ amount?: string;
13071
+ /** Credit durability: permanent (survives window reset) or period (resets on window expiry) */
13072
+ creditType?: string;
13073
+ /** Optional reason for the credit grant (promo code, admin grant, etc.) */
13074
+ reason?: string;
13075
+ }
13002
13076
  export interface UpdateObjectInput {
13003
13077
  clientMutationId?: string;
13004
13078
  id: string;
@@ -13062,48 +13136,6 @@ export interface AppLevelRequirementPatch {
13062
13136
  createdAt?: string;
13063
13137
  updatedAt?: string;
13064
13138
  }
13065
- export interface UpdateAppLimitCreditInput {
13066
- clientMutationId?: string;
13067
- id: string;
13068
- /** An object where the defined keys will be set on the `AppLimitCredit` being updated. */
13069
- appLimitCreditPatch: AppLimitCreditPatch;
13070
- }
13071
- /** Represents an update to a `AppLimitCredit`. Fields that are set will be updated. */
13072
- export interface AppLimitCreditPatch {
13073
- id?: string;
13074
- /** FK to default_limits — which limit definition this credit applies to */
13075
- defaultLimitId?: string;
13076
- /** User this credit is for; NULL for aggregate entity-level credits */
13077
- actorId?: string;
13078
- /** Number of credits to grant (positive to add, negative to revoke) */
13079
- amount?: string;
13080
- /** Credit durability: permanent (survives window reset) or period (resets on window expiry) */
13081
- creditType?: string;
13082
- /** Optional reason for the credit grant (promo code, admin grant, etc.) */
13083
- reason?: string;
13084
- }
13085
- export interface UpdateOrgLimitCreditInput {
13086
- clientMutationId?: string;
13087
- id: string;
13088
- /** An object where the defined keys will be set on the `OrgLimitCredit` being updated. */
13089
- orgLimitCreditPatch: OrgLimitCreditPatch;
13090
- }
13091
- /** Represents an update to a `OrgLimitCredit`. Fields that are set will be updated. */
13092
- export interface OrgLimitCreditPatch {
13093
- id?: string;
13094
- /** FK to default_limits — which limit definition this credit applies to */
13095
- defaultLimitId?: string;
13096
- /** User this credit is for; NULL for aggregate entity-level credits */
13097
- actorId?: string;
13098
- /** Entity this credit applies to; NULL for actor-only credits */
13099
- entityId?: string;
13100
- /** Number of credits to grant (positive to add, negative to revoke) */
13101
- amount?: string;
13102
- /** Credit durability: permanent (survives window reset) or period (resets on window expiry) */
13103
- creditType?: string;
13104
- /** Optional reason for the credit grant (promo code, admin grant, etc.) */
13105
- reason?: string;
13106
- }
13107
13139
  export interface UpdateFullTextSearchInput {
13108
13140
  clientMutationId?: string;
13109
13141
  id: string;
@@ -13263,6 +13295,26 @@ export interface PhoneNumberPatch {
13263
13295
  createdAt?: string;
13264
13296
  updatedAt?: string;
13265
13297
  }
13298
+ export interface UpdateUsageSnapshotInput {
13299
+ clientMutationId?: string;
13300
+ id: string;
13301
+ /** An object where the defined keys will be set on the `UsageSnapshot` being updated. */
13302
+ usageSnapshotPatch: UsageSnapshotPatch;
13303
+ }
13304
+ /** Represents an update to a `UsageSnapshot`. Fields that are set will be updated. */
13305
+ export interface UsageSnapshotPatch {
13306
+ /** The database this snapshot belongs to. References metaschema_public.database.id but declared without an FK constraint — the snapshot collector runs in a platform context where the FK would add overhead without value. */
13307
+ databaseId?: string;
13308
+ /** Identifier for the metric being measured (e.g. 'reads', 'writes', 'storage_bytes', 'compute_time_ms'). */
13309
+ metricName?: string;
13310
+ /** The measured value at the time of capture. Interpretation depends on metric_name (count, bytes, milliseconds, etc.). */
13311
+ metricValue?: string;
13312
+ /** Optional sub-metric breakdowns as key-value pairs (e.g. {"query_type": "select"} for reads). Empty object when no breakdown is needed. */
13313
+ dimensions?: unknown;
13314
+ /** When this snapshot was taken. Defaults to the current timestamp; the snapshot collector may override this for backdated imports. */
13315
+ capturedAt?: string;
13316
+ id?: string;
13317
+ }
13266
13318
  export interface UpdateAppClaimedInviteInput {
13267
13319
  clientMutationId?: string;
13268
13320
  id: string;
@@ -13833,36 +13885,6 @@ export interface PlansModulePatch {
13833
13885
  applyPlanAggregateFunction?: string;
13834
13886
  prefix?: string;
13835
13887
  }
13836
- export interface UpdateOrgMemberProfileInput {
13837
- clientMutationId?: string;
13838
- id: string;
13839
- /** An object where the defined keys will be set on the `OrgMemberProfile` being updated. */
13840
- orgMemberProfilePatch: OrgMemberProfilePatch;
13841
- }
13842
- /** Represents an update to a `OrgMemberProfile`. Fields that are set will be updated. */
13843
- export interface OrgMemberProfilePatch {
13844
- id?: string;
13845
- createdAt?: string;
13846
- updatedAt?: string;
13847
- /** References the membership this profile belongs to (1:1) */
13848
- membershipId?: string;
13849
- /** References the entity this profile belongs to (used for RLS lookups) */
13850
- entityId?: string;
13851
- /** References the user who owns this profile (for self-edit RLS) */
13852
- actorId?: string;
13853
- /** Display name shown to other entity members */
13854
- displayName?: string;
13855
- /** Email address visible to other entity members (auto-populated from verified primary email) */
13856
- email?: string;
13857
- /** Job title or role description visible to other entity members */
13858
- title?: string;
13859
- /** Short biography visible to other entity members */
13860
- bio?: string;
13861
- /** Profile picture visible to other entity members */
13862
- profilePicture?: ConstructiveInternalTypeImage;
13863
- /** Upload for Profile picture visible to other entity members */
13864
- profilePictureUpload?: File;
13865
- }
13866
13888
  export interface UpdateAppLimitInput {
13867
13889
  clientMutationId?: string;
13868
13890
  id: string;
@@ -13893,6 +13915,36 @@ export interface AppLimitPatch {
13893
13915
  /** Temporary credits for the current billing window. Resets to 0 on window expiry. */
13894
13916
  periodCredits?: string;
13895
13917
  }
13918
+ export interface UpdateOrgMemberProfileInput {
13919
+ clientMutationId?: string;
13920
+ id: string;
13921
+ /** An object where the defined keys will be set on the `OrgMemberProfile` being updated. */
13922
+ orgMemberProfilePatch: OrgMemberProfilePatch;
13923
+ }
13924
+ /** Represents an update to a `OrgMemberProfile`. Fields that are set will be updated. */
13925
+ export interface OrgMemberProfilePatch {
13926
+ id?: string;
13927
+ createdAt?: string;
13928
+ updatedAt?: string;
13929
+ /** References the membership this profile belongs to (1:1) */
13930
+ membershipId?: string;
13931
+ /** References the entity this profile belongs to (used for RLS lookups) */
13932
+ entityId?: string;
13933
+ /** References the user who owns this profile (for self-edit RLS) */
13934
+ actorId?: string;
13935
+ /** Display name shown to other entity members */
13936
+ displayName?: string;
13937
+ /** Email address visible to other entity members (auto-populated from verified primary email) */
13938
+ email?: string;
13939
+ /** Job title or role description visible to other entity members */
13940
+ title?: string;
13941
+ /** Short biography visible to other entity members */
13942
+ bio?: string;
13943
+ /** Profile picture visible to other entity members */
13944
+ profilePicture?: ConstructiveInternalTypeImage;
13945
+ /** Upload for Profile picture visible to other entity members */
13946
+ profilePictureUpload?: File;
13947
+ }
13896
13948
  export interface UpdateDatabaseTransferInput {
13897
13949
  clientMutationId?: string;
13898
13950
  id: string;
@@ -15757,25 +15809,25 @@ export interface DeleteAgentMessageInput {
15757
15809
  clientMutationId?: string;
15758
15810
  id: string;
15759
15811
  }
15760
- export interface DeleteObjectInput {
15812
+ export interface DeleteAppLimitCreditInput {
15761
15813
  clientMutationId?: string;
15762
15814
  id: string;
15763
- databaseId: string;
15764
15815
  }
15765
- export interface DeleteSiteMetadatumInput {
15816
+ export interface DeleteOrgLimitCreditInput {
15766
15817
  clientMutationId?: string;
15767
- /** Unique identifier for this metadata record */
15768
15818
  id: string;
15769
15819
  }
15770
- export interface DeleteAppLevelRequirementInput {
15820
+ export interface DeleteObjectInput {
15771
15821
  clientMutationId?: string;
15772
15822
  id: string;
15823
+ databaseId: string;
15773
15824
  }
15774
- export interface DeleteAppLimitCreditInput {
15825
+ export interface DeleteSiteMetadatumInput {
15775
15826
  clientMutationId?: string;
15827
+ /** Unique identifier for this metadata record */
15776
15828
  id: string;
15777
15829
  }
15778
- export interface DeleteOrgLimitCreditInput {
15830
+ export interface DeleteAppLevelRequirementInput {
15779
15831
  clientMutationId?: string;
15780
15832
  id: string;
15781
15833
  }
@@ -15811,6 +15863,10 @@ export interface DeletePhoneNumberInput {
15811
15863
  clientMutationId?: string;
15812
15864
  id: string;
15813
15865
  }
15866
+ export interface DeleteUsageSnapshotInput {
15867
+ clientMutationId?: string;
15868
+ id: string;
15869
+ }
15814
15870
  export interface DeleteAppClaimedInviteInput {
15815
15871
  clientMutationId?: string;
15816
15872
  id: string;
@@ -15913,11 +15969,11 @@ export interface DeletePlansModuleInput {
15913
15969
  clientMutationId?: string;
15914
15970
  id: string;
15915
15971
  }
15916
- export interface DeleteOrgMemberProfileInput {
15972
+ export interface DeleteAppLimitInput {
15917
15973
  clientMutationId?: string;
15918
15974
  id: string;
15919
15975
  }
15920
- export interface DeleteAppLimitInput {
15976
+ export interface DeleteOrgMemberProfileInput {
15921
15977
  clientMutationId?: string;
15922
15978
  id: string;
15923
15979
  }
@@ -16555,13 +16611,6 @@ export interface AgentMessageConnection {
16555
16611
  pageInfo: PageInfo;
16556
16612
  totalCount: number;
16557
16613
  }
16558
- /** A connection to a list of `SiteMetadatum` values. */
16559
- export interface SiteMetadatumConnection {
16560
- nodes: SiteMetadatum[];
16561
- edges: SiteMetadatumEdge[];
16562
- pageInfo: PageInfo;
16563
- totalCount: number;
16564
- }
16565
16614
  /** A connection to a list of `AppLimitCredit` values. */
16566
16615
  export interface AppLimitCreditConnection {
16567
16616
  nodes: AppLimitCredit[];
@@ -16576,6 +16625,13 @@ export interface OrgLimitCreditConnection {
16576
16625
  pageInfo: PageInfo;
16577
16626
  totalCount: number;
16578
16627
  }
16628
+ /** A connection to a list of `SiteMetadatum` values. */
16629
+ export interface SiteMetadatumConnection {
16630
+ nodes: SiteMetadatum[];
16631
+ edges: SiteMetadatumEdge[];
16632
+ pageInfo: PageInfo;
16633
+ totalCount: number;
16634
+ }
16579
16635
  /** A connection to a list of `FullTextSearch` values. */
16580
16636
  export interface FullTextSearchConnection {
16581
16637
  nodes: FullTextSearch[];
@@ -16625,6 +16681,13 @@ export interface PhoneNumberConnection {
16625
16681
  pageInfo: PageInfo;
16626
16682
  totalCount: number;
16627
16683
  }
16684
+ /** A connection to a list of `UsageSnapshot` values. */
16685
+ export interface UsageSnapshotConnection {
16686
+ nodes: UsageSnapshot[];
16687
+ edges: UsageSnapshotEdge[];
16688
+ pageInfo: PageInfo;
16689
+ totalCount: number;
16690
+ }
16628
16691
  /** A connection to a list of `AppClaimedInvite` values. */
16629
16692
  export interface AppClaimedInviteConnection {
16630
16693
  nodes: AppClaimedInvite[];
@@ -16807,6 +16870,13 @@ export interface PlansModuleConnection {
16807
16870
  pageInfo: PageInfo;
16808
16871
  totalCount: number;
16809
16872
  }
16873
+ /** A connection to a list of `AppLimit` values. */
16874
+ export interface AppLimitConnection {
16875
+ nodes: AppLimit[];
16876
+ edges: AppLimitEdge[];
16877
+ pageInfo: PageInfo;
16878
+ totalCount: number;
16879
+ }
16810
16880
  /** A connection to a list of `OrgMemberProfile` values. */
16811
16881
  export interface OrgMemberProfileConnection {
16812
16882
  nodes: OrgMemberProfile[];
@@ -16821,13 +16891,6 @@ export interface SqlActionConnection {
16821
16891
  pageInfo: PageInfo;
16822
16892
  totalCount: number;
16823
16893
  }
16824
- /** A connection to a list of `AppLimit` values. */
16825
- export interface AppLimitConnection {
16826
- nodes: AppLimit[];
16827
- edges: AppLimitEdge[];
16828
- pageInfo: PageInfo;
16829
- totalCount: number;
16830
- }
16831
16894
  /** A connection to a list of `DatabaseTransfer` values. */
16832
16895
  export interface DatabaseTransferConnection {
16833
16896
  nodes: DatabaseTransfer[];
@@ -16870,13 +16933,6 @@ export interface SecureTableProvisionConnection {
16870
16933
  pageInfo: PageInfo;
16871
16934
  totalCount: number;
16872
16935
  }
16873
- /** A connection to a list of `AstMigration` values. */
16874
- export interface AstMigrationConnection {
16875
- nodes: AstMigration[];
16876
- edges: AstMigrationEdge[];
16877
- pageInfo: PageInfo;
16878
- totalCount: number;
16879
- }
16880
16936
  /** A connection to a list of `OrgLimitAggregate` values. */
16881
16937
  export interface OrgLimitAggregateConnection {
16882
16938
  nodes: OrgLimitAggregate[];
@@ -16891,6 +16947,13 @@ export interface OrgLimitConnection {
16891
16947
  pageInfo: PageInfo;
16892
16948
  totalCount: number;
16893
16949
  }
16950
+ /** A connection to a list of `AstMigration` values. */
16951
+ export interface AstMigrationConnection {
16952
+ nodes: AstMigration[];
16953
+ edges: AstMigrationEdge[];
16954
+ pageInfo: PageInfo;
16955
+ totalCount: number;
16956
+ }
16894
16957
  /** A connection to a list of `Enum` values. */
16895
16958
  export interface EnumConnection {
16896
16959
  nodes: Enum[];
@@ -17260,12 +17323,6 @@ export interface BootstrapUserPayload {
17260
17323
  export interface SetFieldOrderPayload {
17261
17324
  clientMutationId?: string | null;
17262
17325
  }
17263
- export interface AppendFieldSmartTagsPayload {
17264
- clientMutationId?: string | null;
17265
- }
17266
- export interface AppendTableSmartTagsPayload {
17267
- clientMutationId?: string | null;
17268
- }
17269
17326
  export interface ProvisionUniqueConstraintPayload {
17270
17327
  clientMutationId?: string | null;
17271
17328
  }
@@ -17686,6 +17743,18 @@ export interface CreateAgentMessagePayload {
17686
17743
  agentMessage?: AgentMessage | null;
17687
17744
  agentMessageEdge?: AgentMessageEdge | null;
17688
17745
  }
17746
+ export interface CreateAppLimitCreditPayload {
17747
+ clientMutationId?: string | null;
17748
+ /** The `AppLimitCredit` that was created by this mutation. */
17749
+ appLimitCredit?: AppLimitCredit | null;
17750
+ appLimitCreditEdge?: AppLimitCreditEdge | null;
17751
+ }
17752
+ export interface CreateOrgLimitCreditPayload {
17753
+ clientMutationId?: string | null;
17754
+ /** The `OrgLimitCredit` that was created by this mutation. */
17755
+ orgLimitCredit?: OrgLimitCredit | null;
17756
+ orgLimitCreditEdge?: OrgLimitCreditEdge | null;
17757
+ }
17689
17758
  export interface CreateObjectPayload {
17690
17759
  clientMutationId?: string | null;
17691
17760
  /** The `Object` that was created by this mutation. */
@@ -17704,18 +17773,6 @@ export interface CreateAppLevelRequirementPayload {
17704
17773
  appLevelRequirement?: AppLevelRequirement | null;
17705
17774
  appLevelRequirementEdge?: AppLevelRequirementEdge | null;
17706
17775
  }
17707
- export interface CreateAppLimitCreditPayload {
17708
- clientMutationId?: string | null;
17709
- /** The `AppLimitCredit` that was created by this mutation. */
17710
- appLimitCredit?: AppLimitCredit | null;
17711
- appLimitCreditEdge?: AppLimitCreditEdge | null;
17712
- }
17713
- export interface CreateOrgLimitCreditPayload {
17714
- clientMutationId?: string | null;
17715
- /** The `OrgLimitCredit` that was created by this mutation. */
17716
- orgLimitCredit?: OrgLimitCredit | null;
17717
- orgLimitCreditEdge?: OrgLimitCreditEdge | null;
17718
- }
17719
17776
  export interface CreateFullTextSearchPayload {
17720
17777
  clientMutationId?: string | null;
17721
17778
  /** The `FullTextSearch` that was created by this mutation. */
@@ -17758,6 +17815,12 @@ export interface CreatePhoneNumberPayload {
17758
17815
  phoneNumber?: PhoneNumber | null;
17759
17816
  phoneNumberEdge?: PhoneNumberEdge | null;
17760
17817
  }
17818
+ export interface CreateUsageSnapshotPayload {
17819
+ clientMutationId?: string | null;
17820
+ /** The `UsageSnapshot` that was created by this mutation. */
17821
+ usageSnapshot?: UsageSnapshot | null;
17822
+ usageSnapshotEdge?: UsageSnapshotEdge | null;
17823
+ }
17761
17824
  export interface CreateAppClaimedInvitePayload {
17762
17825
  clientMutationId?: string | null;
17763
17826
  /** The `AppClaimedInvite` that was created by this mutation. */
@@ -17912,6 +17975,12 @@ export interface CreatePlansModulePayload {
17912
17975
  plansModule?: PlansModule | null;
17913
17976
  plansModuleEdge?: PlansModuleEdge | null;
17914
17977
  }
17978
+ export interface CreateAppLimitPayload {
17979
+ clientMutationId?: string | null;
17980
+ /** The `AppLimit` that was created by this mutation. */
17981
+ appLimit?: AppLimit | null;
17982
+ appLimitEdge?: AppLimitEdge | null;
17983
+ }
17915
17984
  export interface CreateOrgMemberProfilePayload {
17916
17985
  clientMutationId?: string | null;
17917
17986
  /** The `OrgMemberProfile` that was created by this mutation. */
@@ -17923,12 +17992,6 @@ export interface CreateSqlActionPayload {
17923
17992
  /** The `SqlAction` that was created by this mutation. */
17924
17993
  sqlAction?: SqlAction | null;
17925
17994
  }
17926
- export interface CreateAppLimitPayload {
17927
- clientMutationId?: string | null;
17928
- /** The `AppLimit` that was created by this mutation. */
17929
- appLimit?: AppLimit | null;
17930
- appLimitEdge?: AppLimitEdge | null;
17931
- }
17932
17995
  export interface CreateDatabaseTransferPayload {
17933
17996
  clientMutationId?: string | null;
17934
17997
  /** The `DatabaseTransfer` that was created by this mutation. */
@@ -17965,11 +18028,6 @@ export interface CreateSecureTableProvisionPayload {
17965
18028
  secureTableProvision?: SecureTableProvision | null;
17966
18029
  secureTableProvisionEdge?: SecureTableProvisionEdge | null;
17967
18030
  }
17968
- export interface CreateAstMigrationPayload {
17969
- clientMutationId?: string | null;
17970
- /** The `AstMigration` that was created by this mutation. */
17971
- astMigration?: AstMigration | null;
17972
- }
17973
18031
  export interface CreateOrgLimitAggregatePayload {
17974
18032
  clientMutationId?: string | null;
17975
18033
  /** The `OrgLimitAggregate` that was created by this mutation. */
@@ -17982,6 +18040,11 @@ export interface CreateOrgLimitPayload {
17982
18040
  orgLimit?: OrgLimit | null;
17983
18041
  orgLimitEdge?: OrgLimitEdge | null;
17984
18042
  }
18043
+ export interface CreateAstMigrationPayload {
18044
+ clientMutationId?: string | null;
18045
+ /** The `AstMigration` that was created by this mutation. */
18046
+ astMigration?: AstMigration | null;
18047
+ }
17985
18048
  export interface CreateEnumPayload {
17986
18049
  clientMutationId?: string | null;
17987
18050
  /** The `Enum` that was created by this mutation. */
@@ -18534,6 +18597,18 @@ export interface UpdateAgentMessagePayload {
18534
18597
  agentMessage?: AgentMessage | null;
18535
18598
  agentMessageEdge?: AgentMessageEdge | null;
18536
18599
  }
18600
+ export interface UpdateAppLimitCreditPayload {
18601
+ clientMutationId?: string | null;
18602
+ /** The `AppLimitCredit` that was updated by this mutation. */
18603
+ appLimitCredit?: AppLimitCredit | null;
18604
+ appLimitCreditEdge?: AppLimitCreditEdge | null;
18605
+ }
18606
+ export interface UpdateOrgLimitCreditPayload {
18607
+ clientMutationId?: string | null;
18608
+ /** The `OrgLimitCredit` that was updated by this mutation. */
18609
+ orgLimitCredit?: OrgLimitCredit | null;
18610
+ orgLimitCreditEdge?: OrgLimitCreditEdge | null;
18611
+ }
18537
18612
  export interface UpdateObjectPayload {
18538
18613
  clientMutationId?: string | null;
18539
18614
  /** The `Object` that was updated by this mutation. */
@@ -18552,18 +18627,6 @@ export interface UpdateAppLevelRequirementPayload {
18552
18627
  appLevelRequirement?: AppLevelRequirement | null;
18553
18628
  appLevelRequirementEdge?: AppLevelRequirementEdge | null;
18554
18629
  }
18555
- export interface UpdateAppLimitCreditPayload {
18556
- clientMutationId?: string | null;
18557
- /** The `AppLimitCredit` that was updated by this mutation. */
18558
- appLimitCredit?: AppLimitCredit | null;
18559
- appLimitCreditEdge?: AppLimitCreditEdge | null;
18560
- }
18561
- export interface UpdateOrgLimitCreditPayload {
18562
- clientMutationId?: string | null;
18563
- /** The `OrgLimitCredit` that was updated by this mutation. */
18564
- orgLimitCredit?: OrgLimitCredit | null;
18565
- orgLimitCreditEdge?: OrgLimitCreditEdge | null;
18566
- }
18567
18630
  export interface UpdateFullTextSearchPayload {
18568
18631
  clientMutationId?: string | null;
18569
18632
  /** The `FullTextSearch` that was updated by this mutation. */
@@ -18606,6 +18669,12 @@ export interface UpdatePhoneNumberPayload {
18606
18669
  phoneNumber?: PhoneNumber | null;
18607
18670
  phoneNumberEdge?: PhoneNumberEdge | null;
18608
18671
  }
18672
+ export interface UpdateUsageSnapshotPayload {
18673
+ clientMutationId?: string | null;
18674
+ /** The `UsageSnapshot` that was updated by this mutation. */
18675
+ usageSnapshot?: UsageSnapshot | null;
18676
+ usageSnapshotEdge?: UsageSnapshotEdge | null;
18677
+ }
18609
18678
  export interface UpdateAppClaimedInvitePayload {
18610
18679
  clientMutationId?: string | null;
18611
18680
  /** The `AppClaimedInvite` that was updated by this mutation. */
@@ -18750,18 +18819,18 @@ export interface UpdatePlansModulePayload {
18750
18819
  plansModule?: PlansModule | null;
18751
18820
  plansModuleEdge?: PlansModuleEdge | null;
18752
18821
  }
18753
- export interface UpdateOrgMemberProfilePayload {
18754
- clientMutationId?: string | null;
18755
- /** The `OrgMemberProfile` that was updated by this mutation. */
18756
- orgMemberProfile?: OrgMemberProfile | null;
18757
- orgMemberProfileEdge?: OrgMemberProfileEdge | null;
18758
- }
18759
18822
  export interface UpdateAppLimitPayload {
18760
18823
  clientMutationId?: string | null;
18761
18824
  /** The `AppLimit` that was updated by this mutation. */
18762
18825
  appLimit?: AppLimit | null;
18763
18826
  appLimitEdge?: AppLimitEdge | null;
18764
18827
  }
18828
+ export interface UpdateOrgMemberProfilePayload {
18829
+ clientMutationId?: string | null;
18830
+ /** The `OrgMemberProfile` that was updated by this mutation. */
18831
+ orgMemberProfile?: OrgMemberProfile | null;
18832
+ orgMemberProfileEdge?: OrgMemberProfileEdge | null;
18833
+ }
18765
18834
  export interface UpdateDatabaseTransferPayload {
18766
18835
  clientMutationId?: string | null;
18767
18836
  /** The `DatabaseTransfer` that was updated by this mutation. */
@@ -19362,6 +19431,18 @@ export interface DeleteAgentMessagePayload {
19362
19431
  agentMessage?: AgentMessage | null;
19363
19432
  agentMessageEdge?: AgentMessageEdge | null;
19364
19433
  }
19434
+ export interface DeleteAppLimitCreditPayload {
19435
+ clientMutationId?: string | null;
19436
+ /** The `AppLimitCredit` that was deleted by this mutation. */
19437
+ appLimitCredit?: AppLimitCredit | null;
19438
+ appLimitCreditEdge?: AppLimitCreditEdge | null;
19439
+ }
19440
+ export interface DeleteOrgLimitCreditPayload {
19441
+ clientMutationId?: string | null;
19442
+ /** The `OrgLimitCredit` that was deleted by this mutation. */
19443
+ orgLimitCredit?: OrgLimitCredit | null;
19444
+ orgLimitCreditEdge?: OrgLimitCreditEdge | null;
19445
+ }
19365
19446
  export interface DeleteObjectPayload {
19366
19447
  clientMutationId?: string | null;
19367
19448
  /** The `Object` that was deleted by this mutation. */
@@ -19380,18 +19461,6 @@ export interface DeleteAppLevelRequirementPayload {
19380
19461
  appLevelRequirement?: AppLevelRequirement | null;
19381
19462
  appLevelRequirementEdge?: AppLevelRequirementEdge | null;
19382
19463
  }
19383
- export interface DeleteAppLimitCreditPayload {
19384
- clientMutationId?: string | null;
19385
- /** The `AppLimitCredit` that was deleted by this mutation. */
19386
- appLimitCredit?: AppLimitCredit | null;
19387
- appLimitCreditEdge?: AppLimitCreditEdge | null;
19388
- }
19389
- export interface DeleteOrgLimitCreditPayload {
19390
- clientMutationId?: string | null;
19391
- /** The `OrgLimitCredit` that was deleted by this mutation. */
19392
- orgLimitCredit?: OrgLimitCredit | null;
19393
- orgLimitCreditEdge?: OrgLimitCreditEdge | null;
19394
- }
19395
19464
  export interface DeleteFullTextSearchPayload {
19396
19465
  clientMutationId?: string | null;
19397
19466
  /** The `FullTextSearch` that was deleted by this mutation. */
@@ -19434,6 +19503,12 @@ export interface DeletePhoneNumberPayload {
19434
19503
  phoneNumber?: PhoneNumber | null;
19435
19504
  phoneNumberEdge?: PhoneNumberEdge | null;
19436
19505
  }
19506
+ export interface DeleteUsageSnapshotPayload {
19507
+ clientMutationId?: string | null;
19508
+ /** The `UsageSnapshot` that was deleted by this mutation. */
19509
+ usageSnapshot?: UsageSnapshot | null;
19510
+ usageSnapshotEdge?: UsageSnapshotEdge | null;
19511
+ }
19437
19512
  export interface DeleteAppClaimedInvitePayload {
19438
19513
  clientMutationId?: string | null;
19439
19514
  /** The `AppClaimedInvite` that was deleted by this mutation. */
@@ -19578,18 +19653,18 @@ export interface DeletePlansModulePayload {
19578
19653
  plansModule?: PlansModule | null;
19579
19654
  plansModuleEdge?: PlansModuleEdge | null;
19580
19655
  }
19581
- export interface DeleteOrgMemberProfilePayload {
19582
- clientMutationId?: string | null;
19583
- /** The `OrgMemberProfile` that was deleted by this mutation. */
19584
- orgMemberProfile?: OrgMemberProfile | null;
19585
- orgMemberProfileEdge?: OrgMemberProfileEdge | null;
19586
- }
19587
19656
  export interface DeleteAppLimitPayload {
19588
19657
  clientMutationId?: string | null;
19589
19658
  /** The `AppLimit` that was deleted by this mutation. */
19590
19659
  appLimit?: AppLimit | null;
19591
19660
  appLimitEdge?: AppLimitEdge | null;
19592
19661
  }
19662
+ export interface DeleteOrgMemberProfilePayload {
19663
+ clientMutationId?: string | null;
19664
+ /** The `OrgMemberProfile` that was deleted by this mutation. */
19665
+ orgMemberProfile?: OrgMemberProfile | null;
19666
+ orgMemberProfileEdge?: OrgMemberProfileEdge | null;
19667
+ }
19593
19668
  export interface DeleteDatabaseTransferPayload {
19594
19669
  clientMutationId?: string | null;
19595
19670
  /** The `DatabaseTransfer` that was deleted by this mutation. */
@@ -20263,12 +20338,6 @@ export interface AgentMessageEdge {
20263
20338
  /** The `AgentMessage` at the end of the edge. */
20264
20339
  node?: AgentMessage | null;
20265
20340
  }
20266
- /** A `SiteMetadatum` edge in the connection. */
20267
- export interface SiteMetadatumEdge {
20268
- cursor?: string | null;
20269
- /** The `SiteMetadatum` at the end of the edge. */
20270
- node?: SiteMetadatum | null;
20271
- }
20272
20341
  /** A `AppLimitCredit` edge in the connection. */
20273
20342
  export interface AppLimitCreditEdge {
20274
20343
  cursor?: string | null;
@@ -20281,6 +20350,12 @@ export interface OrgLimitCreditEdge {
20281
20350
  /** The `OrgLimitCredit` at the end of the edge. */
20282
20351
  node?: OrgLimitCredit | null;
20283
20352
  }
20353
+ /** A `SiteMetadatum` edge in the connection. */
20354
+ export interface SiteMetadatumEdge {
20355
+ cursor?: string | null;
20356
+ /** The `SiteMetadatum` at the end of the edge. */
20357
+ node?: SiteMetadatum | null;
20358
+ }
20284
20359
  /** A `FullTextSearch` edge in the connection. */
20285
20360
  export interface FullTextSearchEdge {
20286
20361
  cursor?: string | null;
@@ -20323,6 +20398,12 @@ export interface PhoneNumberEdge {
20323
20398
  /** The `PhoneNumber` at the end of the edge. */
20324
20399
  node?: PhoneNumber | null;
20325
20400
  }
20401
+ /** A `UsageSnapshot` edge in the connection. */
20402
+ export interface UsageSnapshotEdge {
20403
+ cursor?: string | null;
20404
+ /** The `UsageSnapshot` at the end of the edge. */
20405
+ node?: UsageSnapshot | null;
20406
+ }
20326
20407
  /** A `AppClaimedInvite` edge in the connection. */
20327
20408
  export interface AppClaimedInviteEdge {
20328
20409
  cursor?: string | null;
@@ -20479,6 +20560,12 @@ export interface PlansModuleEdge {
20479
20560
  /** The `PlansModule` at the end of the edge. */
20480
20561
  node?: PlansModule | null;
20481
20562
  }
20563
+ /** A `AppLimit` edge in the connection. */
20564
+ export interface AppLimitEdge {
20565
+ cursor?: string | null;
20566
+ /** The `AppLimit` at the end of the edge. */
20567
+ node?: AppLimit | null;
20568
+ }
20482
20569
  /** A `OrgMemberProfile` edge in the connection. */
20483
20570
  export interface OrgMemberProfileEdge {
20484
20571
  cursor?: string | null;
@@ -20491,12 +20578,6 @@ export interface SqlActionEdge {
20491
20578
  /** The `SqlAction` at the end of the edge. */
20492
20579
  node?: SqlAction | null;
20493
20580
  }
20494
- /** A `AppLimit` edge in the connection. */
20495
- export interface AppLimitEdge {
20496
- cursor?: string | null;
20497
- /** The `AppLimit` at the end of the edge. */
20498
- node?: AppLimit | null;
20499
- }
20500
20581
  /** A `DatabaseTransfer` edge in the connection. */
20501
20582
  export interface DatabaseTransferEdge {
20502
20583
  cursor?: string | null;
@@ -20533,12 +20614,6 @@ export interface SecureTableProvisionEdge {
20533
20614
  /** The `SecureTableProvision` at the end of the edge. */
20534
20615
  node?: SecureTableProvision | null;
20535
20616
  }
20536
- /** A `AstMigration` edge in the connection. */
20537
- export interface AstMigrationEdge {
20538
- cursor?: string | null;
20539
- /** The `AstMigration` at the end of the edge. */
20540
- node?: AstMigration | null;
20541
- }
20542
20617
  /** A `OrgLimitAggregate` edge in the connection. */
20543
20618
  export interface OrgLimitAggregateEdge {
20544
20619
  cursor?: string | null;
@@ -20551,6 +20626,12 @@ export interface OrgLimitEdge {
20551
20626
  /** The `OrgLimit` at the end of the edge. */
20552
20627
  node?: OrgLimit | null;
20553
20628
  }
20629
+ /** A `AstMigration` edge in the connection. */
20630
+ export interface AstMigrationEdge {
20631
+ cursor?: string | null;
20632
+ /** The `AstMigration` at the end of the edge. */
20633
+ node?: AstMigration | null;
20634
+ }
20554
20635
  /** A `Enum` edge in the connection. */
20555
20636
  export interface EnumEdge {
20556
20637
  cursor?: string | null;