@constructive-io/react 0.18.9 → 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 (125) 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 -0
  68. package/esm/public/hooks/mutation-keys.js +7 -0
  69. package/esm/public/hooks/mutations/index.d.ts +3 -0
  70. package/esm/public/hooks/mutations/index.js +3 -0
  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 -0
  86. package/esm/public/orm/index.js +2 -0
  87. package/esm/public/orm/input-types.d.ts +129 -0
  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/schema-types.d.ts +379 -282
  93. package/esm/public/types.d.ts +8 -0
  94. package/package.json +6 -6
  95. package/public/hooks/index.d.ts +1 -1
  96. package/public/hooks/index.js +1 -1
  97. package/public/hooks/invalidation.d.ts +6 -0
  98. package/public/hooks/invalidation.js +16 -0
  99. package/public/hooks/mutation-keys.d.ts +12 -0
  100. package/public/hooks/mutation-keys.js +9 -1
  101. package/public/hooks/mutations/index.d.ts +3 -0
  102. package/public/hooks/mutations/index.js +3 -0
  103. package/public/hooks/mutations/useCreateUsageSnapshotMutation.d.ts +34 -0
  104. package/public/hooks/mutations/useCreateUsageSnapshotMutation.js +34 -0
  105. package/public/hooks/mutations/useDeleteUsageSnapshotMutation.d.ts +38 -0
  106. package/public/hooks/mutations/useDeleteUsageSnapshotMutation.js +39 -0
  107. package/public/hooks/mutations/useUpdateUsageSnapshotMutation.d.ts +40 -0
  108. package/public/hooks/mutations/useUpdateUsageSnapshotMutation.js +40 -0
  109. package/public/hooks/queries/index.d.ts +2 -0
  110. package/public/hooks/queries/index.js +2 -0
  111. package/public/hooks/queries/useUsageSnapshotQuery.d.ts +65 -0
  112. package/public/hooks/queries/useUsageSnapshotQuery.js +53 -0
  113. package/public/hooks/queries/useUsageSnapshotsQuery.d.ts +69 -0
  114. package/public/hooks/queries/useUsageSnapshotsQuery.js +38 -0
  115. package/public/hooks/query-keys.d.ts +14 -0
  116. package/public/hooks/query-keys.js +10 -1
  117. package/public/orm/index.d.ts +2 -0
  118. package/public/orm/index.js +2 -0
  119. package/public/orm/input-types.d.ts +129 -0
  120. package/public/orm/models/index.d.ts +1 -0
  121. package/public/orm/models/index.js +3 -1
  122. package/public/orm/models/usageSnapshot.d.ts +56 -0
  123. package/public/orm/models/usageSnapshot.js +100 -0
  124. package/public/schema-types.d.ts +379 -282
  125. package/public/types.d.ts +8 -0
@@ -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. */
@@ -9588,6 +9611,46 @@ export interface AgentMessageInput {
9588
9611
  /** JSON metadata for extensible key-value storage */
9589
9612
  parts?: unknown;
9590
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
+ }
9591
9654
  export interface CreateObjectInput {
9592
9655
  clientMutationId?: string;
9593
9656
  /** The `Object` to be created by this mutation. */
@@ -9644,46 +9707,6 @@ export interface AppLevelRequirementInput {
9644
9707
  createdAt?: string;
9645
9708
  updatedAt?: string;
9646
9709
  }
9647
- export interface CreateAppLimitCreditInput {
9648
- clientMutationId?: string;
9649
- /** The `AppLimitCredit` to be created by this mutation. */
9650
- appLimitCredit: AppLimitCreditInput;
9651
- }
9652
- /** An input for mutations affecting `AppLimitCredit` */
9653
- export interface AppLimitCreditInput {
9654
- id?: string;
9655
- /** FK to default_limits — which limit definition this credit applies to */
9656
- defaultLimitId: string;
9657
- /** User this credit is for; NULL for aggregate entity-level credits */
9658
- actorId?: string;
9659
- /** Number of credits to grant (positive to add, negative to revoke) */
9660
- amount: string;
9661
- /** Credit durability: permanent (survives window reset) or period (resets on window expiry) */
9662
- creditType?: string;
9663
- /** Optional reason for the credit grant (promo code, admin grant, etc.) */
9664
- reason?: string;
9665
- }
9666
- export interface CreateOrgLimitCreditInput {
9667
- clientMutationId?: string;
9668
- /** The `OrgLimitCredit` to be created by this mutation. */
9669
- orgLimitCredit: OrgLimitCreditInput;
9670
- }
9671
- /** An input for mutations affecting `OrgLimitCredit` */
9672
- export interface OrgLimitCreditInput {
9673
- id?: string;
9674
- /** FK to default_limits — which limit definition this credit applies to */
9675
- defaultLimitId: string;
9676
- /** User this credit is for; NULL for aggregate entity-level credits */
9677
- actorId?: string;
9678
- /** Entity this credit applies to; NULL for actor-only credits */
9679
- entityId?: string;
9680
- /** Number of credits to grant (positive to add, negative to revoke) */
9681
- amount: string;
9682
- /** Credit durability: permanent (survives window reset) or period (resets on window expiry) */
9683
- creditType?: string;
9684
- /** Optional reason for the credit grant (promo code, admin grant, etc.) */
9685
- reason?: string;
9686
- }
9687
9710
  export interface CreateFullTextSearchInput {
9688
9711
  clientMutationId?: string;
9689
9712
  /** The `FullTextSearch` to be created by this mutation. */
@@ -9832,6 +9855,25 @@ export interface PhoneNumberInput {
9832
9855
  createdAt?: string;
9833
9856
  updatedAt?: string;
9834
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
+ }
9835
9877
  export interface CreateAppClaimedInviteInput {
9836
9878
  clientMutationId?: string;
9837
9879
  /** The `AppClaimedInvite` to be created by this mutation. */
@@ -10422,6 +10464,35 @@ export interface PlansModuleInput {
10422
10464
  applyPlanAggregateFunction?: string;
10423
10465
  prefix?: string;
10424
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
+ }
10425
10496
  export interface CreateOrgMemberProfileInput {
10426
10497
  clientMutationId?: string;
10427
10498
  /** The `OrgMemberProfile` to be created by this mutation. */
@@ -10470,35 +10541,6 @@ export interface SqlActionInput {
10470
10541
  actionId?: string;
10471
10542
  actorId?: string;
10472
10543
  }
10473
- export interface CreateAppLimitInput {
10474
- clientMutationId?: string;
10475
- /** The `AppLimit` to be created by this mutation. */
10476
- appLimit: AppLimitInput;
10477
- }
10478
- /** An input for mutations affecting `AppLimit` */
10479
- export interface AppLimitInput {
10480
- id?: string;
10481
- /** Name identifier of the limit being tracked */
10482
- name?: string;
10483
- /** User whose usage is being tracked against this limit */
10484
- actorId: string;
10485
- /** Current usage count for this actor and limit */
10486
- num?: string;
10487
- /** Maximum allowed usage; negative means unlimited. Modified by plans, credits, and achievements. */
10488
- max?: string;
10489
- /** Soft limit threshold for warnings; NULL means no soft limit. When num >= soft_max, consumers should warn but still allow until max is reached. */
10490
- softMax?: string;
10491
- /** Start of the current metering window; NULL means no time window */
10492
- windowStart?: string;
10493
- /** Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window */
10494
- windowDuration?: IntervalInput;
10495
- /** Ceiling set by the active plan via apply_plan(). Window reset does not change this value. */
10496
- planMax?: string;
10497
- /** Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. */
10498
- purchasedCredits?: string;
10499
- /** Temporary credits for the current billing window. Resets to 0 on window expiry. */
10500
- periodCredits?: string;
10501
- }
10502
10544
  export interface CreateDatabaseTransferInput {
10503
10545
  clientMutationId?: string;
10504
10546
  /** The `DatabaseTransfer` to be created by this mutation. */
@@ -10648,27 +10690,6 @@ export interface SecureTableProvisionInput {
10648
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. */
10649
10691
  outFields?: string[];
10650
10692
  }
10651
- export interface CreateAstMigrationInput {
10652
- clientMutationId?: string;
10653
- /** The `AstMigration` to be created by this mutation. */
10654
- astMigration: AstMigrationInput;
10655
- }
10656
- /** An input for mutations affecting `AstMigration` */
10657
- export interface AstMigrationInput {
10658
- id?: number;
10659
- databaseId?: string;
10660
- name?: string;
10661
- requires?: string[];
10662
- payload?: unknown;
10663
- deploys?: string;
10664
- deploy?: unknown;
10665
- revert?: unknown;
10666
- verify?: unknown;
10667
- createdAt?: string;
10668
- action?: string;
10669
- actionId?: string;
10670
- actorId?: string;
10671
- }
10672
10693
  export interface CreateOrgLimitAggregateInput {
10673
10694
  clientMutationId?: string;
10674
10695
  /** The `OrgLimitAggregate` to be created by this mutation. */
@@ -10730,6 +10751,27 @@ export interface OrgLimitInput {
10730
10751
  periodCredits?: string;
10731
10752
  entityId: string;
10732
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
+ }
10733
10775
  export interface CreateEnumInput {
10734
10776
  clientMutationId?: string;
10735
10777
  /** The `Enum` to be created by this mutation. */
@@ -12989,6 +13031,48 @@ export interface AgentMessagePatch {
12989
13031
  /** JSON metadata for extensible key-value storage */
12990
13032
  parts?: unknown;
12991
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
+ }
12992
13076
  export interface UpdateObjectInput {
12993
13077
  clientMutationId?: string;
12994
13078
  id: string;
@@ -13052,48 +13136,6 @@ export interface AppLevelRequirementPatch {
13052
13136
  createdAt?: string;
13053
13137
  updatedAt?: string;
13054
13138
  }
13055
- export interface UpdateAppLimitCreditInput {
13056
- clientMutationId?: string;
13057
- id: string;
13058
- /** An object where the defined keys will be set on the `AppLimitCredit` being updated. */
13059
- appLimitCreditPatch: AppLimitCreditPatch;
13060
- }
13061
- /** Represents an update to a `AppLimitCredit`. Fields that are set will be updated. */
13062
- export interface AppLimitCreditPatch {
13063
- id?: string;
13064
- /** FK to default_limits — which limit definition this credit applies to */
13065
- defaultLimitId?: string;
13066
- /** User this credit is for; NULL for aggregate entity-level credits */
13067
- actorId?: string;
13068
- /** Number of credits to grant (positive to add, negative to revoke) */
13069
- amount?: string;
13070
- /** Credit durability: permanent (survives window reset) or period (resets on window expiry) */
13071
- creditType?: string;
13072
- /** Optional reason for the credit grant (promo code, admin grant, etc.) */
13073
- reason?: string;
13074
- }
13075
- export interface UpdateOrgLimitCreditInput {
13076
- clientMutationId?: string;
13077
- id: string;
13078
- /** An object where the defined keys will be set on the `OrgLimitCredit` being updated. */
13079
- orgLimitCreditPatch: OrgLimitCreditPatch;
13080
- }
13081
- /** Represents an update to a `OrgLimitCredit`. Fields that are set will be updated. */
13082
- export interface OrgLimitCreditPatch {
13083
- id?: string;
13084
- /** FK to default_limits — which limit definition this credit applies to */
13085
- defaultLimitId?: string;
13086
- /** User this credit is for; NULL for aggregate entity-level credits */
13087
- actorId?: string;
13088
- /** Entity this credit applies to; NULL for actor-only credits */
13089
- entityId?: string;
13090
- /** Number of credits to grant (positive to add, negative to revoke) */
13091
- amount?: string;
13092
- /** Credit durability: permanent (survives window reset) or period (resets on window expiry) */
13093
- creditType?: string;
13094
- /** Optional reason for the credit grant (promo code, admin grant, etc.) */
13095
- reason?: string;
13096
- }
13097
13139
  export interface UpdateFullTextSearchInput {
13098
13140
  clientMutationId?: string;
13099
13141
  id: string;
@@ -13253,6 +13295,26 @@ export interface PhoneNumberPatch {
13253
13295
  createdAt?: string;
13254
13296
  updatedAt?: string;
13255
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
+ }
13256
13318
  export interface UpdateAppClaimedInviteInput {
13257
13319
  clientMutationId?: string;
13258
13320
  id: string;
@@ -13823,6 +13885,36 @@ export interface PlansModulePatch {
13823
13885
  applyPlanAggregateFunction?: string;
13824
13886
  prefix?: string;
13825
13887
  }
13888
+ export interface UpdateAppLimitInput {
13889
+ clientMutationId?: string;
13890
+ id: string;
13891
+ /** An object where the defined keys will be set on the `AppLimit` being updated. */
13892
+ appLimitPatch: AppLimitPatch;
13893
+ }
13894
+ /** Represents an update to a `AppLimit`. Fields that are set will be updated. */
13895
+ export interface AppLimitPatch {
13896
+ id?: string;
13897
+ /** Name identifier of the limit being tracked */
13898
+ name?: string;
13899
+ /** User whose usage is being tracked against this limit */
13900
+ actorId?: string;
13901
+ /** Current usage count for this actor and limit */
13902
+ num?: string;
13903
+ /** Maximum allowed usage; negative means unlimited. Modified by plans, credits, and achievements. */
13904
+ max?: string;
13905
+ /** Soft limit threshold for warnings; NULL means no soft limit. When num >= soft_max, consumers should warn but still allow until max is reached. */
13906
+ softMax?: string;
13907
+ /** Start of the current metering window; NULL means no time window */
13908
+ windowStart?: string;
13909
+ /** Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window */
13910
+ windowDuration?: IntervalInput;
13911
+ /** Ceiling set by the active plan via apply_plan(). Window reset does not change this value. */
13912
+ planMax?: string;
13913
+ /** Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. */
13914
+ purchasedCredits?: string;
13915
+ /** Temporary credits for the current billing window. Resets to 0 on window expiry. */
13916
+ periodCredits?: string;
13917
+ }
13826
13918
  export interface UpdateOrgMemberProfileInput {
13827
13919
  clientMutationId?: string;
13828
13920
  id: string;
@@ -13840,48 +13932,18 @@ export interface OrgMemberProfilePatch {
13840
13932
  entityId?: string;
13841
13933
  /** References the user who owns this profile (for self-edit RLS) */
13842
13934
  actorId?: string;
13843
- /** Display name shown to other entity members */
13844
- displayName?: string;
13845
- /** Email address visible to other entity members (auto-populated from verified primary email) */
13846
- email?: string;
13847
- /** Job title or role description visible to other entity members */
13848
- title?: string;
13849
- /** Short biography visible to other entity members */
13850
- bio?: string;
13851
- /** Profile picture visible to other entity members */
13852
- profilePicture?: ConstructiveInternalTypeImage;
13853
- /** Upload for Profile picture visible to other entity members */
13854
- profilePictureUpload?: File;
13855
- }
13856
- export interface UpdateAppLimitInput {
13857
- clientMutationId?: string;
13858
- id: string;
13859
- /** An object where the defined keys will be set on the `AppLimit` being updated. */
13860
- appLimitPatch: AppLimitPatch;
13861
- }
13862
- /** Represents an update to a `AppLimit`. Fields that are set will be updated. */
13863
- export interface AppLimitPatch {
13864
- id?: string;
13865
- /** Name identifier of the limit being tracked */
13866
- name?: string;
13867
- /** User whose usage is being tracked against this limit */
13868
- actorId?: string;
13869
- /** Current usage count for this actor and limit */
13870
- num?: string;
13871
- /** Maximum allowed usage; negative means unlimited. Modified by plans, credits, and achievements. */
13872
- max?: string;
13873
- /** Soft limit threshold for warnings; NULL means no soft limit. When num >= soft_max, consumers should warn but still allow until max is reached. */
13874
- softMax?: string;
13875
- /** Start of the current metering window; NULL means no time window */
13876
- windowStart?: string;
13877
- /** Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window */
13878
- windowDuration?: IntervalInput;
13879
- /** Ceiling set by the active plan via apply_plan(). Window reset does not change this value. */
13880
- planMax?: string;
13881
- /** Permanent credits from purchases, admin grants, or lifetime rewards. Survives window reset. */
13882
- purchasedCredits?: string;
13883
- /** Temporary credits for the current billing window. Resets to 0 on window expiry. */
13884
- periodCredits?: 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;
13885
13947
  }
13886
13948
  export interface UpdateDatabaseTransferInput {
13887
13949
  clientMutationId?: string;
@@ -15747,25 +15809,25 @@ export interface DeleteAgentMessageInput {
15747
15809
  clientMutationId?: string;
15748
15810
  id: string;
15749
15811
  }
15750
- export interface DeleteObjectInput {
15812
+ export interface DeleteAppLimitCreditInput {
15751
15813
  clientMutationId?: string;
15752
15814
  id: string;
15753
- databaseId: string;
15754
15815
  }
15755
- export interface DeleteSiteMetadatumInput {
15816
+ export interface DeleteOrgLimitCreditInput {
15756
15817
  clientMutationId?: string;
15757
- /** Unique identifier for this metadata record */
15758
15818
  id: string;
15759
15819
  }
15760
- export interface DeleteAppLevelRequirementInput {
15820
+ export interface DeleteObjectInput {
15761
15821
  clientMutationId?: string;
15762
15822
  id: string;
15823
+ databaseId: string;
15763
15824
  }
15764
- export interface DeleteAppLimitCreditInput {
15825
+ export interface DeleteSiteMetadatumInput {
15765
15826
  clientMutationId?: string;
15827
+ /** Unique identifier for this metadata record */
15766
15828
  id: string;
15767
15829
  }
15768
- export interface DeleteOrgLimitCreditInput {
15830
+ export interface DeleteAppLevelRequirementInput {
15769
15831
  clientMutationId?: string;
15770
15832
  id: string;
15771
15833
  }
@@ -15801,6 +15863,10 @@ export interface DeletePhoneNumberInput {
15801
15863
  clientMutationId?: string;
15802
15864
  id: string;
15803
15865
  }
15866
+ export interface DeleteUsageSnapshotInput {
15867
+ clientMutationId?: string;
15868
+ id: string;
15869
+ }
15804
15870
  export interface DeleteAppClaimedInviteInput {
15805
15871
  clientMutationId?: string;
15806
15872
  id: string;
@@ -15903,11 +15969,11 @@ export interface DeletePlansModuleInput {
15903
15969
  clientMutationId?: string;
15904
15970
  id: string;
15905
15971
  }
15906
- export interface DeleteOrgMemberProfileInput {
15972
+ export interface DeleteAppLimitInput {
15907
15973
  clientMutationId?: string;
15908
15974
  id: string;
15909
15975
  }
15910
- export interface DeleteAppLimitInput {
15976
+ export interface DeleteOrgMemberProfileInput {
15911
15977
  clientMutationId?: string;
15912
15978
  id: string;
15913
15979
  }
@@ -16545,13 +16611,6 @@ export interface AgentMessageConnection {
16545
16611
  pageInfo: PageInfo;
16546
16612
  totalCount: number;
16547
16613
  }
16548
- /** A connection to a list of `SiteMetadatum` values. */
16549
- export interface SiteMetadatumConnection {
16550
- nodes: SiteMetadatum[];
16551
- edges: SiteMetadatumEdge[];
16552
- pageInfo: PageInfo;
16553
- totalCount: number;
16554
- }
16555
16614
  /** A connection to a list of `AppLimitCredit` values. */
16556
16615
  export interface AppLimitCreditConnection {
16557
16616
  nodes: AppLimitCredit[];
@@ -16566,6 +16625,13 @@ export interface OrgLimitCreditConnection {
16566
16625
  pageInfo: PageInfo;
16567
16626
  totalCount: number;
16568
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
+ }
16569
16635
  /** A connection to a list of `FullTextSearch` values. */
16570
16636
  export interface FullTextSearchConnection {
16571
16637
  nodes: FullTextSearch[];
@@ -16615,6 +16681,13 @@ export interface PhoneNumberConnection {
16615
16681
  pageInfo: PageInfo;
16616
16682
  totalCount: number;
16617
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
+ }
16618
16691
  /** A connection to a list of `AppClaimedInvite` values. */
16619
16692
  export interface AppClaimedInviteConnection {
16620
16693
  nodes: AppClaimedInvite[];
@@ -16797,6 +16870,13 @@ export interface PlansModuleConnection {
16797
16870
  pageInfo: PageInfo;
16798
16871
  totalCount: number;
16799
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
+ }
16800
16880
  /** A connection to a list of `OrgMemberProfile` values. */
16801
16881
  export interface OrgMemberProfileConnection {
16802
16882
  nodes: OrgMemberProfile[];
@@ -16811,13 +16891,6 @@ export interface SqlActionConnection {
16811
16891
  pageInfo: PageInfo;
16812
16892
  totalCount: number;
16813
16893
  }
16814
- /** A connection to a list of `AppLimit` values. */
16815
- export interface AppLimitConnection {
16816
- nodes: AppLimit[];
16817
- edges: AppLimitEdge[];
16818
- pageInfo: PageInfo;
16819
- totalCount: number;
16820
- }
16821
16894
  /** A connection to a list of `DatabaseTransfer` values. */
16822
16895
  export interface DatabaseTransferConnection {
16823
16896
  nodes: DatabaseTransfer[];
@@ -16860,13 +16933,6 @@ export interface SecureTableProvisionConnection {
16860
16933
  pageInfo: PageInfo;
16861
16934
  totalCount: number;
16862
16935
  }
16863
- /** A connection to a list of `AstMigration` values. */
16864
- export interface AstMigrationConnection {
16865
- nodes: AstMigration[];
16866
- edges: AstMigrationEdge[];
16867
- pageInfo: PageInfo;
16868
- totalCount: number;
16869
- }
16870
16936
  /** A connection to a list of `OrgLimitAggregate` values. */
16871
16937
  export interface OrgLimitAggregateConnection {
16872
16938
  nodes: OrgLimitAggregate[];
@@ -16881,6 +16947,13 @@ export interface OrgLimitConnection {
16881
16947
  pageInfo: PageInfo;
16882
16948
  totalCount: number;
16883
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
+ }
16884
16957
  /** A connection to a list of `Enum` values. */
16885
16958
  export interface EnumConnection {
16886
16959
  nodes: Enum[];
@@ -17670,6 +17743,18 @@ export interface CreateAgentMessagePayload {
17670
17743
  agentMessage?: AgentMessage | null;
17671
17744
  agentMessageEdge?: AgentMessageEdge | null;
17672
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
+ }
17673
17758
  export interface CreateObjectPayload {
17674
17759
  clientMutationId?: string | null;
17675
17760
  /** The `Object` that was created by this mutation. */
@@ -17688,18 +17773,6 @@ export interface CreateAppLevelRequirementPayload {
17688
17773
  appLevelRequirement?: AppLevelRequirement | null;
17689
17774
  appLevelRequirementEdge?: AppLevelRequirementEdge | null;
17690
17775
  }
17691
- export interface CreateAppLimitCreditPayload {
17692
- clientMutationId?: string | null;
17693
- /** The `AppLimitCredit` that was created by this mutation. */
17694
- appLimitCredit?: AppLimitCredit | null;
17695
- appLimitCreditEdge?: AppLimitCreditEdge | null;
17696
- }
17697
- export interface CreateOrgLimitCreditPayload {
17698
- clientMutationId?: string | null;
17699
- /** The `OrgLimitCredit` that was created by this mutation. */
17700
- orgLimitCredit?: OrgLimitCredit | null;
17701
- orgLimitCreditEdge?: OrgLimitCreditEdge | null;
17702
- }
17703
17776
  export interface CreateFullTextSearchPayload {
17704
17777
  clientMutationId?: string | null;
17705
17778
  /** The `FullTextSearch` that was created by this mutation. */
@@ -17742,6 +17815,12 @@ export interface CreatePhoneNumberPayload {
17742
17815
  phoneNumber?: PhoneNumber | null;
17743
17816
  phoneNumberEdge?: PhoneNumberEdge | null;
17744
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
+ }
17745
17824
  export interface CreateAppClaimedInvitePayload {
17746
17825
  clientMutationId?: string | null;
17747
17826
  /** The `AppClaimedInvite` that was created by this mutation. */
@@ -17896,6 +17975,12 @@ export interface CreatePlansModulePayload {
17896
17975
  plansModule?: PlansModule | null;
17897
17976
  plansModuleEdge?: PlansModuleEdge | null;
17898
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
+ }
17899
17984
  export interface CreateOrgMemberProfilePayload {
17900
17985
  clientMutationId?: string | null;
17901
17986
  /** The `OrgMemberProfile` that was created by this mutation. */
@@ -17907,12 +17992,6 @@ export interface CreateSqlActionPayload {
17907
17992
  /** The `SqlAction` that was created by this mutation. */
17908
17993
  sqlAction?: SqlAction | null;
17909
17994
  }
17910
- export interface CreateAppLimitPayload {
17911
- clientMutationId?: string | null;
17912
- /** The `AppLimit` that was created by this mutation. */
17913
- appLimit?: AppLimit | null;
17914
- appLimitEdge?: AppLimitEdge | null;
17915
- }
17916
17995
  export interface CreateDatabaseTransferPayload {
17917
17996
  clientMutationId?: string | null;
17918
17997
  /** The `DatabaseTransfer` that was created by this mutation. */
@@ -17949,11 +18028,6 @@ export interface CreateSecureTableProvisionPayload {
17949
18028
  secureTableProvision?: SecureTableProvision | null;
17950
18029
  secureTableProvisionEdge?: SecureTableProvisionEdge | null;
17951
18030
  }
17952
- export interface CreateAstMigrationPayload {
17953
- clientMutationId?: string | null;
17954
- /** The `AstMigration` that was created by this mutation. */
17955
- astMigration?: AstMigration | null;
17956
- }
17957
18031
  export interface CreateOrgLimitAggregatePayload {
17958
18032
  clientMutationId?: string | null;
17959
18033
  /** The `OrgLimitAggregate` that was created by this mutation. */
@@ -17966,6 +18040,11 @@ export interface CreateOrgLimitPayload {
17966
18040
  orgLimit?: OrgLimit | null;
17967
18041
  orgLimitEdge?: OrgLimitEdge | null;
17968
18042
  }
18043
+ export interface CreateAstMigrationPayload {
18044
+ clientMutationId?: string | null;
18045
+ /** The `AstMigration` that was created by this mutation. */
18046
+ astMigration?: AstMigration | null;
18047
+ }
17969
18048
  export interface CreateEnumPayload {
17970
18049
  clientMutationId?: string | null;
17971
18050
  /** The `Enum` that was created by this mutation. */
@@ -18518,6 +18597,18 @@ export interface UpdateAgentMessagePayload {
18518
18597
  agentMessage?: AgentMessage | null;
18519
18598
  agentMessageEdge?: AgentMessageEdge | null;
18520
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
+ }
18521
18612
  export interface UpdateObjectPayload {
18522
18613
  clientMutationId?: string | null;
18523
18614
  /** The `Object` that was updated by this mutation. */
@@ -18536,18 +18627,6 @@ export interface UpdateAppLevelRequirementPayload {
18536
18627
  appLevelRequirement?: AppLevelRequirement | null;
18537
18628
  appLevelRequirementEdge?: AppLevelRequirementEdge | null;
18538
18629
  }
18539
- export interface UpdateAppLimitCreditPayload {
18540
- clientMutationId?: string | null;
18541
- /** The `AppLimitCredit` that was updated by this mutation. */
18542
- appLimitCredit?: AppLimitCredit | null;
18543
- appLimitCreditEdge?: AppLimitCreditEdge | null;
18544
- }
18545
- export interface UpdateOrgLimitCreditPayload {
18546
- clientMutationId?: string | null;
18547
- /** The `OrgLimitCredit` that was updated by this mutation. */
18548
- orgLimitCredit?: OrgLimitCredit | null;
18549
- orgLimitCreditEdge?: OrgLimitCreditEdge | null;
18550
- }
18551
18630
  export interface UpdateFullTextSearchPayload {
18552
18631
  clientMutationId?: string | null;
18553
18632
  /** The `FullTextSearch` that was updated by this mutation. */
@@ -18590,6 +18669,12 @@ export interface UpdatePhoneNumberPayload {
18590
18669
  phoneNumber?: PhoneNumber | null;
18591
18670
  phoneNumberEdge?: PhoneNumberEdge | null;
18592
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
+ }
18593
18678
  export interface UpdateAppClaimedInvitePayload {
18594
18679
  clientMutationId?: string | null;
18595
18680
  /** The `AppClaimedInvite` that was updated by this mutation. */
@@ -18734,18 +18819,18 @@ export interface UpdatePlansModulePayload {
18734
18819
  plansModule?: PlansModule | null;
18735
18820
  plansModuleEdge?: PlansModuleEdge | null;
18736
18821
  }
18737
- export interface UpdateOrgMemberProfilePayload {
18738
- clientMutationId?: string | null;
18739
- /** The `OrgMemberProfile` that was updated by this mutation. */
18740
- orgMemberProfile?: OrgMemberProfile | null;
18741
- orgMemberProfileEdge?: OrgMemberProfileEdge | null;
18742
- }
18743
18822
  export interface UpdateAppLimitPayload {
18744
18823
  clientMutationId?: string | null;
18745
18824
  /** The `AppLimit` that was updated by this mutation. */
18746
18825
  appLimit?: AppLimit | null;
18747
18826
  appLimitEdge?: AppLimitEdge | null;
18748
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
+ }
18749
18834
  export interface UpdateDatabaseTransferPayload {
18750
18835
  clientMutationId?: string | null;
18751
18836
  /** The `DatabaseTransfer` that was updated by this mutation. */
@@ -19346,6 +19431,18 @@ export interface DeleteAgentMessagePayload {
19346
19431
  agentMessage?: AgentMessage | null;
19347
19432
  agentMessageEdge?: AgentMessageEdge | null;
19348
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
+ }
19349
19446
  export interface DeleteObjectPayload {
19350
19447
  clientMutationId?: string | null;
19351
19448
  /** The `Object` that was deleted by this mutation. */
@@ -19364,18 +19461,6 @@ export interface DeleteAppLevelRequirementPayload {
19364
19461
  appLevelRequirement?: AppLevelRequirement | null;
19365
19462
  appLevelRequirementEdge?: AppLevelRequirementEdge | null;
19366
19463
  }
19367
- export interface DeleteAppLimitCreditPayload {
19368
- clientMutationId?: string | null;
19369
- /** The `AppLimitCredit` that was deleted by this mutation. */
19370
- appLimitCredit?: AppLimitCredit | null;
19371
- appLimitCreditEdge?: AppLimitCreditEdge | null;
19372
- }
19373
- export interface DeleteOrgLimitCreditPayload {
19374
- clientMutationId?: string | null;
19375
- /** The `OrgLimitCredit` that was deleted by this mutation. */
19376
- orgLimitCredit?: OrgLimitCredit | null;
19377
- orgLimitCreditEdge?: OrgLimitCreditEdge | null;
19378
- }
19379
19464
  export interface DeleteFullTextSearchPayload {
19380
19465
  clientMutationId?: string | null;
19381
19466
  /** The `FullTextSearch` that was deleted by this mutation. */
@@ -19418,6 +19503,12 @@ export interface DeletePhoneNumberPayload {
19418
19503
  phoneNumber?: PhoneNumber | null;
19419
19504
  phoneNumberEdge?: PhoneNumberEdge | null;
19420
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
+ }
19421
19512
  export interface DeleteAppClaimedInvitePayload {
19422
19513
  clientMutationId?: string | null;
19423
19514
  /** The `AppClaimedInvite` that was deleted by this mutation. */
@@ -19562,18 +19653,18 @@ export interface DeletePlansModulePayload {
19562
19653
  plansModule?: PlansModule | null;
19563
19654
  plansModuleEdge?: PlansModuleEdge | null;
19564
19655
  }
19565
- export interface DeleteOrgMemberProfilePayload {
19566
- clientMutationId?: string | null;
19567
- /** The `OrgMemberProfile` that was deleted by this mutation. */
19568
- orgMemberProfile?: OrgMemberProfile | null;
19569
- orgMemberProfileEdge?: OrgMemberProfileEdge | null;
19570
- }
19571
19656
  export interface DeleteAppLimitPayload {
19572
19657
  clientMutationId?: string | null;
19573
19658
  /** The `AppLimit` that was deleted by this mutation. */
19574
19659
  appLimit?: AppLimit | null;
19575
19660
  appLimitEdge?: AppLimitEdge | null;
19576
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
+ }
19577
19668
  export interface DeleteDatabaseTransferPayload {
19578
19669
  clientMutationId?: string | null;
19579
19670
  /** The `DatabaseTransfer` that was deleted by this mutation. */
@@ -20247,12 +20338,6 @@ export interface AgentMessageEdge {
20247
20338
  /** The `AgentMessage` at the end of the edge. */
20248
20339
  node?: AgentMessage | null;
20249
20340
  }
20250
- /** A `SiteMetadatum` edge in the connection. */
20251
- export interface SiteMetadatumEdge {
20252
- cursor?: string | null;
20253
- /** The `SiteMetadatum` at the end of the edge. */
20254
- node?: SiteMetadatum | null;
20255
- }
20256
20341
  /** A `AppLimitCredit` edge in the connection. */
20257
20342
  export interface AppLimitCreditEdge {
20258
20343
  cursor?: string | null;
@@ -20265,6 +20350,12 @@ export interface OrgLimitCreditEdge {
20265
20350
  /** The `OrgLimitCredit` at the end of the edge. */
20266
20351
  node?: OrgLimitCredit | null;
20267
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
+ }
20268
20359
  /** A `FullTextSearch` edge in the connection. */
20269
20360
  export interface FullTextSearchEdge {
20270
20361
  cursor?: string | null;
@@ -20307,6 +20398,12 @@ export interface PhoneNumberEdge {
20307
20398
  /** The `PhoneNumber` at the end of the edge. */
20308
20399
  node?: PhoneNumber | null;
20309
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
+ }
20310
20407
  /** A `AppClaimedInvite` edge in the connection. */
20311
20408
  export interface AppClaimedInviteEdge {
20312
20409
  cursor?: string | null;
@@ -20463,6 +20560,12 @@ export interface PlansModuleEdge {
20463
20560
  /** The `PlansModule` at the end of the edge. */
20464
20561
  node?: PlansModule | null;
20465
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
+ }
20466
20569
  /** A `OrgMemberProfile` edge in the connection. */
20467
20570
  export interface OrgMemberProfileEdge {
20468
20571
  cursor?: string | null;
@@ -20475,12 +20578,6 @@ export interface SqlActionEdge {
20475
20578
  /** The `SqlAction` at the end of the edge. */
20476
20579
  node?: SqlAction | null;
20477
20580
  }
20478
- /** A `AppLimit` edge in the connection. */
20479
- export interface AppLimitEdge {
20480
- cursor?: string | null;
20481
- /** The `AppLimit` at the end of the edge. */
20482
- node?: AppLimit | null;
20483
- }
20484
20581
  /** A `DatabaseTransfer` edge in the connection. */
20485
20582
  export interface DatabaseTransferEdge {
20486
20583
  cursor?: string | null;
@@ -20517,12 +20614,6 @@ export interface SecureTableProvisionEdge {
20517
20614
  /** The `SecureTableProvision` at the end of the edge. */
20518
20615
  node?: SecureTableProvision | null;
20519
20616
  }
20520
- /** A `AstMigration` edge in the connection. */
20521
- export interface AstMigrationEdge {
20522
- cursor?: string | null;
20523
- /** The `AstMigration` at the end of the edge. */
20524
- node?: AstMigration | null;
20525
- }
20526
20617
  /** A `OrgLimitAggregate` edge in the connection. */
20527
20618
  export interface OrgLimitAggregateEdge {
20528
20619
  cursor?: string | null;
@@ -20535,6 +20626,12 @@ export interface OrgLimitEdge {
20535
20626
  /** The `OrgLimit` at the end of the edge. */
20536
20627
  node?: OrgLimit | null;
20537
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
+ }
20538
20635
  /** A `Enum` edge in the connection. */
20539
20636
  export interface EnumEdge {
20540
20637
  cursor?: string | null;