@constructive-sdk/cli 0.25.9 → 0.25.10

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 (229) hide show
  1. package/admin/cli/commands/app-admin-grant.js +3 -1
  2. package/admin/cli/commands/app-grant.js +3 -1
  3. package/admin/cli/commands/app-invite.js +44 -0
  4. package/admin/cli/commands/app-owner-grant.js +3 -1
  5. package/admin/cli/commands/app-permission-default-grant.d.ts +8 -0
  6. package/admin/cli/commands/app-permission-default-grant.js +286 -0
  7. package/admin/cli/commands/app-permission-default-permission.d.ts +8 -0
  8. package/admin/cli/commands/app-permission-default-permission.js +242 -0
  9. package/admin/cli/commands/org-admin-grant.js +3 -1
  10. package/admin/cli/commands/org-grant.js +3 -1
  11. package/admin/cli/commands/org-invite.js +44 -0
  12. package/admin/cli/commands/org-owner-grant.js +3 -1
  13. package/admin/cli/commands/org-permission-default-grant.d.ts +8 -0
  14. package/admin/cli/commands/org-permission-default-grant.js +306 -0
  15. package/admin/cli/commands/org-permission-default-permission.d.ts +8 -0
  16. package/admin/cli/commands/org-permission-default-permission.js +262 -0
  17. package/admin/cli/commands.js +11 -3
  18. package/admin/cli/executor.d.ts +5 -1
  19. package/admin/orm/index.d.ts +10 -2
  20. package/admin/orm/index.js +10 -2
  21. package/admin/orm/input-types.d.ts +1611 -230
  22. package/admin/orm/input-types.js +9 -1
  23. package/admin/orm/models/appPermissionDefaultGrant.d.ts +54 -0
  24. package/admin/orm/models/appPermissionDefaultGrant.js +104 -0
  25. package/admin/orm/models/appPermissionDefaultPermission.d.ts +54 -0
  26. package/admin/orm/models/appPermissionDefaultPermission.js +104 -0
  27. package/admin/orm/models/index.d.ts +5 -1
  28. package/admin/orm/models/index.js +11 -3
  29. package/admin/orm/models/orgPermissionDefaultGrant.d.ts +54 -0
  30. package/admin/orm/models/orgPermissionDefaultGrant.js +104 -0
  31. package/admin/orm/models/orgPermissionDefaultPermission.d.ts +54 -0
  32. package/admin/orm/models/orgPermissionDefaultPermission.js +104 -0
  33. package/agent/cli/commands/agent-message.js +34 -12
  34. package/agent/cli/commands/agent-task.js +12 -12
  35. package/agent/cli/embedder.d.ts +5 -0
  36. package/agent/cli/embedder.js +46 -9
  37. package/agent/orm/input-types.d.ts +289 -47
  38. package/agent/orm/input-types.js +1 -0
  39. package/api/cli/commands/check-constraint.js +0 -22
  40. package/api/cli/commands/composite-type.d.ts +8 -0
  41. package/api/cli/commands/composite-type.js +424 -0
  42. package/api/cli/commands/enum.js +0 -22
  43. package/api/cli/commands/field.js +0 -22
  44. package/api/cli/commands/foreign-key-constraint.js +0 -22
  45. package/api/cli/commands/index.js +0 -22
  46. package/api/cli/commands/policy.js +0 -22
  47. package/api/cli/commands/primary-key-constraint.js +0 -22
  48. package/api/cli/commands/schema.js +0 -22
  49. package/api/cli/commands/spatial-relation.js +0 -22
  50. package/api/cli/commands/table.js +6 -28
  51. package/api/cli/commands/trigger.js +0 -22
  52. package/api/cli/commands/unique-constraint.js +0 -22
  53. package/api/cli/commands/view-table.js +22 -0
  54. package/api/cli/commands/view.js +0 -22
  55. package/api/cli/commands.js +3 -1
  56. package/api/cli/executor.d.ts +1 -0
  57. package/api/orm/index.d.ts +2 -0
  58. package/api/orm/index.js +2 -0
  59. package/api/orm/input-types.d.ts +1064 -125
  60. package/api/orm/input-types.js +3 -0
  61. package/api/orm/models/compositeType.d.ts +54 -0
  62. package/api/orm/models/compositeType.js +104 -0
  63. package/api/orm/models/index.d.ts +1 -0
  64. package/api/orm/models/index.js +3 -1
  65. package/auth/cli/commands/link-identity.d.ts +8 -0
  66. package/auth/cli/commands/link-identity.js +36 -0
  67. package/auth/cli/commands/sign-in-sms-otp.d.ts +8 -0
  68. package/auth/cli/commands/sign-in-sms-otp.js +36 -0
  69. package/auth/cli/commands/sign-up-sms.d.ts +8 -0
  70. package/auth/cli/commands/sign-up-sms.js +36 -0
  71. package/auth/cli/commands.js +7 -1
  72. package/auth/cli/executor.d.ts +15 -0
  73. package/auth/orm/index.d.ts +15 -0
  74. package/auth/orm/input-types.d.ts +197 -1
  75. package/auth/orm/mutation/index.d.ts +25 -1
  76. package/auth/orm/mutation/index.js +36 -0
  77. package/esm/admin/cli/commands/app-admin-grant.js +3 -1
  78. package/esm/admin/cli/commands/app-grant.js +3 -1
  79. package/esm/admin/cli/commands/app-invite.js +44 -0
  80. package/esm/admin/cli/commands/app-owner-grant.js +3 -1
  81. package/esm/admin/cli/commands/app-permission-default-grant.d.ts +8 -0
  82. package/esm/admin/cli/commands/app-permission-default-grant.js +284 -0
  83. package/esm/admin/cli/commands/app-permission-default-permission.d.ts +8 -0
  84. package/esm/admin/cli/commands/app-permission-default-permission.js +240 -0
  85. package/esm/admin/cli/commands/org-admin-grant.js +3 -1
  86. package/esm/admin/cli/commands/org-grant.js +3 -1
  87. package/esm/admin/cli/commands/org-invite.js +44 -0
  88. package/esm/admin/cli/commands/org-owner-grant.js +3 -1
  89. package/esm/admin/cli/commands/org-permission-default-grant.d.ts +8 -0
  90. package/esm/admin/cli/commands/org-permission-default-grant.js +304 -0
  91. package/esm/admin/cli/commands/org-permission-default-permission.d.ts +8 -0
  92. package/esm/admin/cli/commands/org-permission-default-permission.js +260 -0
  93. package/esm/admin/cli/commands.js +11 -3
  94. package/esm/admin/cli/executor.d.ts +5 -1
  95. package/esm/admin/orm/index.d.ts +10 -2
  96. package/esm/admin/orm/index.js +10 -2
  97. package/esm/admin/orm/input-types.d.ts +1611 -230
  98. package/esm/admin/orm/input-types.js +9 -1
  99. package/esm/admin/orm/models/appPermissionDefaultGrant.d.ts +54 -0
  100. package/esm/admin/orm/models/appPermissionDefaultGrant.js +100 -0
  101. package/esm/admin/orm/models/appPermissionDefaultPermission.d.ts +54 -0
  102. package/esm/admin/orm/models/appPermissionDefaultPermission.js +100 -0
  103. package/esm/admin/orm/models/index.d.ts +5 -1
  104. package/esm/admin/orm/models/index.js +5 -1
  105. package/esm/admin/orm/models/orgPermissionDefaultGrant.d.ts +54 -0
  106. package/esm/admin/orm/models/orgPermissionDefaultGrant.js +100 -0
  107. package/esm/admin/orm/models/orgPermissionDefaultPermission.d.ts +54 -0
  108. package/esm/admin/orm/models/orgPermissionDefaultPermission.js +100 -0
  109. package/esm/agent/cli/commands/agent-message.js +34 -12
  110. package/esm/agent/cli/commands/agent-task.js +12 -12
  111. package/esm/agent/cli/embedder.d.ts +5 -0
  112. package/esm/agent/cli/embedder.js +10 -2
  113. package/esm/agent/orm/input-types.d.ts +289 -47
  114. package/esm/agent/orm/input-types.js +1 -0
  115. package/esm/api/cli/commands/check-constraint.js +0 -22
  116. package/esm/api/cli/commands/composite-type.d.ts +8 -0
  117. package/esm/api/cli/commands/composite-type.js +422 -0
  118. package/esm/api/cli/commands/enum.js +0 -22
  119. package/esm/api/cli/commands/field.js +0 -22
  120. package/esm/api/cli/commands/foreign-key-constraint.js +0 -22
  121. package/esm/api/cli/commands/index.js +0 -22
  122. package/esm/api/cli/commands/policy.js +0 -22
  123. package/esm/api/cli/commands/primary-key-constraint.js +0 -22
  124. package/esm/api/cli/commands/schema.js +0 -22
  125. package/esm/api/cli/commands/spatial-relation.js +0 -22
  126. package/esm/api/cli/commands/table.js +6 -28
  127. package/esm/api/cli/commands/trigger.js +0 -22
  128. package/esm/api/cli/commands/unique-constraint.js +0 -22
  129. package/esm/api/cli/commands/view-table.js +22 -0
  130. package/esm/api/cli/commands/view.js +0 -22
  131. package/esm/api/cli/commands.js +3 -1
  132. package/esm/api/cli/executor.d.ts +1 -0
  133. package/esm/api/orm/index.d.ts +2 -0
  134. package/esm/api/orm/index.js +2 -0
  135. package/esm/api/orm/input-types.d.ts +1064 -125
  136. package/esm/api/orm/input-types.js +3 -0
  137. package/esm/api/orm/models/compositeType.d.ts +54 -0
  138. package/esm/api/orm/models/compositeType.js +100 -0
  139. package/esm/api/orm/models/index.d.ts +1 -0
  140. package/esm/api/orm/models/index.js +1 -0
  141. package/esm/auth/cli/commands/link-identity.d.ts +8 -0
  142. package/esm/auth/cli/commands/link-identity.js +34 -0
  143. package/esm/auth/cli/commands/sign-in-sms-otp.d.ts +8 -0
  144. package/esm/auth/cli/commands/sign-in-sms-otp.js +34 -0
  145. package/esm/auth/cli/commands/sign-up-sms.d.ts +8 -0
  146. package/esm/auth/cli/commands/sign-up-sms.js +34 -0
  147. package/esm/auth/cli/commands.js +7 -1
  148. package/esm/auth/cli/executor.d.ts +15 -0
  149. package/esm/auth/orm/index.d.ts +15 -0
  150. package/esm/auth/orm/input-types.d.ts +197 -1
  151. package/esm/auth/orm/mutation/index.d.ts +25 -1
  152. package/esm/auth/orm/mutation/index.js +36 -0
  153. package/esm/modules/cli/commands/agent-module.js +88 -0
  154. package/esm/modules/cli/commands/billing-module.js +66 -0
  155. package/esm/modules/cli/commands/compute-log-module.js +44 -0
  156. package/esm/modules/cli/commands/config-secrets-module.js +44 -0
  157. package/esm/modules/cli/commands/db-usage-module.js +66 -0
  158. package/esm/modules/cli/commands/entity-type-provision.js +0 -44
  159. package/esm/modules/cli/commands/events-module.js +66 -0
  160. package/esm/modules/cli/commands/function-invocation-module.d.ts +8 -0
  161. package/esm/modules/cli/commands/function-invocation-module.js +580 -0
  162. package/esm/modules/cli/commands/function-module.js +22 -198
  163. package/esm/modules/cli/commands/graph-module.js +22 -0
  164. package/esm/modules/cli/commands/hierarchy-module.js +22 -0
  165. package/esm/modules/cli/commands/identity-providers-module.js +44 -0
  166. package/esm/modules/cli/commands/inference-log-module.js +44 -0
  167. package/esm/modules/cli/commands/invites-module.js +44 -0
  168. package/esm/modules/cli/commands/limits-module.js +44 -0
  169. package/esm/modules/cli/commands/memberships-module.js +88 -0
  170. package/esm/modules/cli/commands/merkle-store-module.js +22 -0
  171. package/esm/modules/cli/commands/namespace-module.js +22 -0
  172. package/esm/modules/cli/commands/notifications-module.js +88 -0
  173. package/esm/modules/cli/commands/permissions-module.js +44 -0
  174. package/esm/modules/cli/commands/plans-module.js +44 -0
  175. package/esm/modules/cli/commands/profiles-module.js +44 -0
  176. package/esm/modules/cli/commands/rate-limit-meters-module.js +66 -0
  177. package/esm/modules/cli/commands/storage-log-module.js +44 -0
  178. package/esm/modules/cli/commands/storage-module.js +66 -0
  179. package/esm/modules/cli/commands/transfer-log-module.js +44 -0
  180. package/esm/modules/cli/commands.js +29 -27
  181. package/esm/modules/cli/executor.d.ts +14 -13
  182. package/esm/modules/orm/index.d.ts +28 -26
  183. package/esm/modules/orm/index.js +28 -26
  184. package/esm/modules/orm/input-types.d.ts +4485 -2514
  185. package/esm/modules/orm/models/functionInvocationModule.d.ts +54 -0
  186. package/esm/modules/orm/models/functionInvocationModule.js +100 -0
  187. package/esm/modules/orm/models/index.d.ts +14 -13
  188. package/esm/modules/orm/models/index.js +14 -13
  189. package/esm/objects/orm/input-types.d.ts +62 -0
  190. package/esm/usage/orm/input-types.d.ts +314 -19
  191. package/modules/cli/commands/agent-module.js +88 -0
  192. package/modules/cli/commands/billing-module.js +66 -0
  193. package/modules/cli/commands/compute-log-module.js +44 -0
  194. package/modules/cli/commands/config-secrets-module.js +44 -0
  195. package/modules/cli/commands/db-usage-module.js +66 -0
  196. package/modules/cli/commands/entity-type-provision.js +0 -44
  197. package/modules/cli/commands/events-module.js +66 -0
  198. package/modules/cli/commands/function-invocation-module.d.ts +8 -0
  199. package/modules/cli/commands/function-invocation-module.js +582 -0
  200. package/modules/cli/commands/function-module.js +22 -198
  201. package/modules/cli/commands/graph-module.js +22 -0
  202. package/modules/cli/commands/hierarchy-module.js +22 -0
  203. package/modules/cli/commands/identity-providers-module.js +44 -0
  204. package/modules/cli/commands/inference-log-module.js +44 -0
  205. package/modules/cli/commands/invites-module.js +44 -0
  206. package/modules/cli/commands/limits-module.js +44 -0
  207. package/modules/cli/commands/memberships-module.js +88 -0
  208. package/modules/cli/commands/merkle-store-module.js +22 -0
  209. package/modules/cli/commands/namespace-module.js +22 -0
  210. package/modules/cli/commands/notifications-module.js +88 -0
  211. package/modules/cli/commands/permissions-module.js +44 -0
  212. package/modules/cli/commands/plans-module.js +44 -0
  213. package/modules/cli/commands/profiles-module.js +44 -0
  214. package/modules/cli/commands/rate-limit-meters-module.js +66 -0
  215. package/modules/cli/commands/storage-log-module.js +44 -0
  216. package/modules/cli/commands/storage-module.js +66 -0
  217. package/modules/cli/commands/transfer-log-module.js +44 -0
  218. package/modules/cli/commands.js +29 -27
  219. package/modules/cli/executor.d.ts +14 -13
  220. package/modules/orm/index.d.ts +28 -26
  221. package/modules/orm/index.js +28 -26
  222. package/modules/orm/input-types.d.ts +4485 -2514
  223. package/modules/orm/models/functionInvocationModule.d.ts +54 -0
  224. package/modules/orm/models/functionInvocationModule.js +104 -0
  225. package/modules/orm/models/index.d.ts +14 -13
  226. package/modules/orm/models/index.js +30 -28
  227. package/objects/orm/input-types.d.ts +62 -0
  228. package/package.json +4 -4
  229. package/usage/orm/input-types.d.ts +314 -19
@@ -251,6 +251,17 @@ export interface AppPermission {
251
251
  /** Human-readable description of what this permission allows */
252
252
  description?: string | null;
253
253
  }
254
+ /** Audit log of permission additions and removals from the defaults bitmask */
255
+ export interface AppPermissionDefaultGrant {
256
+ id: string;
257
+ /** References the permission being added to or removed from defaults */
258
+ permissionId?: string | null;
259
+ /** True to add the permission to defaults, false to remove it */
260
+ isGrant?: boolean | null;
261
+ grantorId?: string | null;
262
+ createdAt?: string | null;
263
+ updatedAt?: string | null;
264
+ }
254
265
  /** Defines available permissions as named bits within a bitmask, used by the RBAC system for access control */
255
266
  export interface OrgPermission {
256
267
  id: string;
@@ -263,6 +274,29 @@ export interface OrgPermission {
263
274
  /** Human-readable description of what this permission allows */
264
275
  description?: string | null;
265
276
  }
277
+ /** Join table linking permission defaults to individual permissions; recompute trigger rebuilds the defaults bitmask */
278
+ export interface OrgPermissionDefaultPermission {
279
+ id: string;
280
+ /** References the permission included in the defaults bundle */
281
+ permissionId?: string | null;
282
+ /** Scopes this default permission to a specific entity */
283
+ entityId?: string | null;
284
+ createdAt?: string | null;
285
+ updatedAt?: string | null;
286
+ }
287
+ /** Audit log of permission additions and removals from the defaults bitmask */
288
+ export interface OrgPermissionDefaultGrant {
289
+ id: string;
290
+ /** References the permission being added to or removed from defaults */
291
+ permissionId?: string | null;
292
+ /** True to add the permission to defaults, false to remove it */
293
+ isGrant?: boolean | null;
294
+ grantorId?: string | null;
295
+ /** Scopes this audit entry to a specific entity */
296
+ entityId?: string | null;
297
+ createdAt?: string | null;
298
+ updatedAt?: string | null;
299
+ }
266
300
  /** Simplified view of active members in an entity, used for listing who belongs to an org or group */
267
301
  export interface OrgMember {
268
302
  id: string;
@@ -287,12 +321,20 @@ export interface OrgPermissionDefault {
287
321
  /** References the entity these default permissions apply to */
288
322
  entityId?: string | null;
289
323
  }
324
+ /** Join table linking permission defaults to individual permissions; recompute trigger rebuilds the defaults bitmask */
325
+ export interface AppPermissionDefaultPermission {
326
+ id: string;
327
+ /** References the permission included in the defaults bundle */
328
+ permissionId?: string | null;
329
+ createdAt?: string | null;
330
+ updatedAt?: string | null;
331
+ }
290
332
  /** Records of admin role grants and revocations between members */
291
333
  export interface AppAdminGrant {
292
334
  id: string;
293
335
  /** True to grant admin, false to revoke admin */
294
336
  isGrant?: boolean | null;
295
- /** The member receiving or losing the admin grant */
337
+ /** The member receiving or losing the admin grant; NULL if user was deleted */
296
338
  actorId?: string | null;
297
339
  grantorId?: string | null;
298
340
  createdAt?: string | null;
@@ -303,7 +345,7 @@ export interface AppOwnerGrant {
303
345
  id: string;
304
346
  /** True to grant ownership, false to revoke ownership */
305
347
  isGrant?: boolean | null;
306
- /** The member receiving or losing the ownership grant */
348
+ /** The member receiving or losing the ownership grant; NULL if user was deleted */
307
349
  actorId?: string | null;
308
350
  grantorId?: string | null;
309
351
  createdAt?: string | null;
@@ -314,7 +356,7 @@ export interface OrgAdminGrant {
314
356
  id: string;
315
357
  /** True to grant admin, false to revoke admin */
316
358
  isGrant?: boolean | null;
317
- /** The member receiving or losing the admin grant */
359
+ /** The member receiving or losing the admin grant; NULL if user was deleted */
318
360
  actorId?: string | null;
319
361
  /** The entity (org or group) this admin grant applies to */
320
362
  entityId?: string | null;
@@ -327,7 +369,7 @@ export interface OrgOwnerGrant {
327
369
  id: string;
328
370
  /** True to grant ownership, false to revoke ownership */
329
371
  isGrant?: boolean | null;
330
- /** The member receiving or losing the ownership grant */
372
+ /** The member receiving or losing the ownership grant; NULL if user was deleted */
331
373
  actorId?: string | null;
332
374
  /** The entity (org or group) this ownership grant applies to */
333
375
  entityId?: string | null;
@@ -389,7 +431,7 @@ export interface AppGrant {
389
431
  permissions?: string | null;
390
432
  /** True to grant the permissions, false to revoke them */
391
433
  isGrant?: boolean | null;
392
- /** The member receiving or losing the permission grant */
434
+ /** The member receiving or losing the permission grant; NULL if user was deleted */
393
435
  actorId?: string | null;
394
436
  grantorId?: string | null;
395
437
  createdAt?: string | null;
@@ -439,7 +481,7 @@ export interface OrgGrant {
439
481
  permissions?: string | null;
440
482
  /** True to grant the permissions, false to revoke them */
441
483
  isGrant?: boolean | null;
442
- /** The member receiving or losing the permission grant */
484
+ /** The member receiving or losing the permission grant; NULL if user was deleted */
443
485
  actorId?: string | null;
444
486
  /** The entity (org or group) this permission grant applies to */
445
487
  entityId?: string | null;
@@ -518,32 +560,6 @@ export interface AppMembership {
518
560
  actorId?: string | null;
519
561
  profileId?: string | null;
520
562
  }
521
- /** Invitation records sent to prospective members via email, with token-based redemption and expiration */
522
- export interface AppInvite {
523
- id: string;
524
- /** Email address of the invited recipient */
525
- email?: ConstructiveInternalTypeEmail | null;
526
- /** User ID of the member who sent this invitation */
527
- senderId?: string | null;
528
- /** Unique random hex token used to redeem this invitation */
529
- inviteToken?: string | null;
530
- /** Whether this invitation is still valid and can be redeemed */
531
- inviteValid?: boolean | null;
532
- /** Maximum number of times this invite can be claimed; -1 means unlimited */
533
- inviteLimit?: number | null;
534
- /** Running count of how many times this invite has been claimed */
535
- inviteCount?: number | null;
536
- /** Whether this invite can be claimed by multiple recipients */
537
- multiple?: boolean | null;
538
- /** Optional JSON payload of additional invite metadata */
539
- data?: Record<string, unknown> | null;
540
- /** Optional profile (role) to assign to the member when they claim this invite. Only allowed on email invites. */
541
- profileId?: string | null;
542
- /** Timestamp after which this invitation can no longer be redeemed */
543
- expiresAt?: string | null;
544
- createdAt?: string | null;
545
- updatedAt?: string | null;
546
- }
547
563
  /** Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status */
548
564
  export interface OrgMembership {
549
565
  id: string;
@@ -600,10 +616,44 @@ export interface OrgMemberProfile {
600
616
  profilePicture?: ConstructiveInternalTypeImage | null;
601
617
  }
602
618
  /** Invitation records sent to prospective members via email, with token-based redemption and expiration */
619
+ export interface AppInvite {
620
+ id: string;
621
+ /** Delivery channel for this invitation: email, sms, or link */
622
+ channel?: string | null;
623
+ /** Email address of the invited recipient (required when channel=email) */
624
+ email?: ConstructiveInternalTypeEmail | null;
625
+ /** Phone number of the invited recipient in E.164 format (required when channel=sms) */
626
+ phone?: string | null;
627
+ /** User ID of the member who sent this invitation */
628
+ senderId?: string | null;
629
+ /** Unique random hex token used to redeem this invitation */
630
+ inviteToken?: string | null;
631
+ /** Whether this invitation is still valid and can be redeemed */
632
+ inviteValid?: boolean | null;
633
+ /** Maximum number of times this invite can be claimed; -1 means unlimited */
634
+ inviteLimit?: number | null;
635
+ /** Running count of how many times this invite has been claimed */
636
+ inviteCount?: number | null;
637
+ /** Whether this invite can be claimed by multiple recipients */
638
+ multiple?: boolean | null;
639
+ /** Optional JSON payload of additional invite metadata */
640
+ data?: Record<string, unknown> | null;
641
+ /** Optional profile (role) to assign to the member when they claim this invite. Only allowed on email invites. */
642
+ profileId?: string | null;
643
+ /** Timestamp after which this invitation can no longer be redeemed */
644
+ expiresAt?: string | null;
645
+ createdAt?: string | null;
646
+ updatedAt?: string | null;
647
+ }
648
+ /** Invitation records sent to prospective members via email, with token-based redemption and expiration */
603
649
  export interface OrgInvite {
604
650
  id: string;
605
- /** Email address of the invited recipient */
651
+ /** Delivery channel for this invitation: email, sms, or link */
652
+ channel?: string | null;
653
+ /** Email address of the invited recipient (required when channel=email) */
606
654
  email?: ConstructiveInternalTypeEmail | null;
655
+ /** Phone number of the invited recipient in E.164 format (required when channel=sms) */
656
+ phone?: string | null;
607
657
  /** User ID of the member who sent this invitation */
608
658
  senderId?: string | null;
609
659
  /** User ID of the intended recipient, if targeting a specific user */
@@ -646,8 +696,21 @@ export interface OrgGetManagersRecordRelations {
646
696
  export interface OrgGetSubordinatesRecordRelations {
647
697
  }
648
698
  export interface AppPermissionRelations {
699
+ appPermissionDefaultPermissionByPermissionId?: AppPermissionDefaultPermission | null;
700
+ appPermissionDefaultGrantsByPermissionId?: ConnectionResult<AppPermissionDefaultGrant>;
701
+ }
702
+ export interface AppPermissionDefaultGrantRelations {
703
+ permission?: AppPermission | null;
649
704
  }
650
705
  export interface OrgPermissionRelations {
706
+ orgPermissionDefaultPermissionsByPermissionId?: ConnectionResult<OrgPermissionDefaultPermission>;
707
+ orgPermissionDefaultGrantsByPermissionId?: ConnectionResult<OrgPermissionDefaultGrant>;
708
+ }
709
+ export interface OrgPermissionDefaultPermissionRelations {
710
+ permission?: OrgPermission | null;
711
+ }
712
+ export interface OrgPermissionDefaultGrantRelations {
713
+ permission?: OrgPermission | null;
651
714
  }
652
715
  export interface OrgMemberRelations {
653
716
  }
@@ -655,6 +718,9 @@ export interface AppPermissionDefaultRelations {
655
718
  }
656
719
  export interface OrgPermissionDefaultRelations {
657
720
  }
721
+ export interface AppPermissionDefaultPermissionRelations {
722
+ permission?: AppPermission | null;
723
+ }
658
724
  export interface AppAdminGrantRelations {
659
725
  }
660
726
  export interface AppOwnerGrantRelations {
@@ -685,23 +751,27 @@ export interface OrgMembershipSettingRelations {
685
751
  }
686
752
  export interface AppMembershipRelations {
687
753
  }
688
- export interface AppInviteRelations {
689
- }
690
754
  export interface OrgMembershipRelations {
691
755
  orgMemberProfileByMembershipId?: OrgMemberProfile | null;
692
756
  }
693
757
  export interface OrgMemberProfileRelations {
694
758
  membership?: OrgMembership | null;
695
759
  }
760
+ export interface AppInviteRelations {
761
+ }
696
762
  export interface OrgInviteRelations {
697
763
  }
698
764
  export type OrgGetManagersRecordWithRelations = OrgGetManagersRecord & OrgGetManagersRecordRelations;
699
765
  export type OrgGetSubordinatesRecordWithRelations = OrgGetSubordinatesRecord & OrgGetSubordinatesRecordRelations;
700
766
  export type AppPermissionWithRelations = AppPermission & AppPermissionRelations;
767
+ export type AppPermissionDefaultGrantWithRelations = AppPermissionDefaultGrant & AppPermissionDefaultGrantRelations;
701
768
  export type OrgPermissionWithRelations = OrgPermission & OrgPermissionRelations;
769
+ export type OrgPermissionDefaultPermissionWithRelations = OrgPermissionDefaultPermission & OrgPermissionDefaultPermissionRelations;
770
+ export type OrgPermissionDefaultGrantWithRelations = OrgPermissionDefaultGrant & OrgPermissionDefaultGrantRelations;
702
771
  export type OrgMemberWithRelations = OrgMember & OrgMemberRelations;
703
772
  export type AppPermissionDefaultWithRelations = AppPermissionDefault & AppPermissionDefaultRelations;
704
773
  export type OrgPermissionDefaultWithRelations = OrgPermissionDefault & OrgPermissionDefaultRelations;
774
+ export type AppPermissionDefaultPermissionWithRelations = AppPermissionDefaultPermission & AppPermissionDefaultPermissionRelations;
705
775
  export type AppAdminGrantWithRelations = AppAdminGrant & AppAdminGrantRelations;
706
776
  export type AppOwnerGrantWithRelations = AppOwnerGrant & AppOwnerGrantRelations;
707
777
  export type OrgAdminGrantWithRelations = OrgAdminGrant & OrgAdminGrantRelations;
@@ -717,9 +787,9 @@ export type OrgGrantWithRelations = OrgGrant & OrgGrantRelations;
717
787
  export type OrgChartEdgeWithRelations = OrgChartEdge & OrgChartEdgeRelations;
718
788
  export type OrgMembershipSettingWithRelations = OrgMembershipSetting & OrgMembershipSettingRelations;
719
789
  export type AppMembershipWithRelations = AppMembership & AppMembershipRelations;
720
- export type AppInviteWithRelations = AppInvite & AppInviteRelations;
721
790
  export type OrgMembershipWithRelations = OrgMembership & OrgMembershipRelations;
722
791
  export type OrgMemberProfileWithRelations = OrgMemberProfile & OrgMemberProfileRelations;
792
+ export type AppInviteWithRelations = AppInvite & AppInviteRelations;
723
793
  export type OrgInviteWithRelations = OrgInvite & OrgInviteRelations;
724
794
  export type OrgGetManagersRecordSelect = {
725
795
  userId?: boolean;
@@ -735,6 +805,26 @@ export type AppPermissionSelect = {
735
805
  bitnum?: boolean;
736
806
  bitstr?: boolean;
737
807
  description?: boolean;
808
+ appPermissionDefaultPermissionByPermissionId?: {
809
+ select: AppPermissionDefaultPermissionSelect;
810
+ };
811
+ appPermissionDefaultGrantsByPermissionId?: {
812
+ select: AppPermissionDefaultGrantSelect;
813
+ first?: number;
814
+ filter?: AppPermissionDefaultGrantFilter;
815
+ orderBy?: AppPermissionDefaultGrantOrderBy[];
816
+ };
817
+ };
818
+ export type AppPermissionDefaultGrantSelect = {
819
+ id?: boolean;
820
+ permissionId?: boolean;
821
+ isGrant?: boolean;
822
+ grantorId?: boolean;
823
+ createdAt?: boolean;
824
+ updatedAt?: boolean;
825
+ permission?: {
826
+ select: AppPermissionSelect;
827
+ };
738
828
  };
739
829
  export type OrgPermissionSelect = {
740
830
  id?: boolean;
@@ -742,6 +832,40 @@ export type OrgPermissionSelect = {
742
832
  bitnum?: boolean;
743
833
  bitstr?: boolean;
744
834
  description?: boolean;
835
+ orgPermissionDefaultPermissionsByPermissionId?: {
836
+ select: OrgPermissionDefaultPermissionSelect;
837
+ first?: number;
838
+ filter?: OrgPermissionDefaultPermissionFilter;
839
+ orderBy?: OrgPermissionDefaultPermissionOrderBy[];
840
+ };
841
+ orgPermissionDefaultGrantsByPermissionId?: {
842
+ select: OrgPermissionDefaultGrantSelect;
843
+ first?: number;
844
+ filter?: OrgPermissionDefaultGrantFilter;
845
+ orderBy?: OrgPermissionDefaultGrantOrderBy[];
846
+ };
847
+ };
848
+ export type OrgPermissionDefaultPermissionSelect = {
849
+ id?: boolean;
850
+ permissionId?: boolean;
851
+ entityId?: boolean;
852
+ createdAt?: boolean;
853
+ updatedAt?: boolean;
854
+ permission?: {
855
+ select: OrgPermissionSelect;
856
+ };
857
+ };
858
+ export type OrgPermissionDefaultGrantSelect = {
859
+ id?: boolean;
860
+ permissionId?: boolean;
861
+ isGrant?: boolean;
862
+ grantorId?: boolean;
863
+ entityId?: boolean;
864
+ createdAt?: boolean;
865
+ updatedAt?: boolean;
866
+ permission?: {
867
+ select: OrgPermissionSelect;
868
+ };
745
869
  };
746
870
  export type OrgMemberSelect = {
747
871
  id?: boolean;
@@ -758,6 +882,15 @@ export type OrgPermissionDefaultSelect = {
758
882
  permissions?: boolean;
759
883
  entityId?: boolean;
760
884
  };
885
+ export type AppPermissionDefaultPermissionSelect = {
886
+ id?: boolean;
887
+ permissionId?: boolean;
888
+ createdAt?: boolean;
889
+ updatedAt?: boolean;
890
+ permission?: {
891
+ select: AppPermissionSelect;
892
+ };
893
+ };
761
894
  export type AppAdminGrantSelect = {
762
895
  id?: boolean;
763
896
  isGrant?: boolean;
@@ -909,21 +1042,6 @@ export type AppMembershipSelect = {
909
1042
  actorId?: boolean;
910
1043
  profileId?: boolean;
911
1044
  };
912
- export type AppInviteSelect = {
913
- id?: boolean;
914
- email?: boolean;
915
- senderId?: boolean;
916
- inviteToken?: boolean;
917
- inviteValid?: boolean;
918
- inviteLimit?: boolean;
919
- inviteCount?: boolean;
920
- multiple?: boolean;
921
- data?: boolean;
922
- profileId?: boolean;
923
- expiresAt?: boolean;
924
- createdAt?: boolean;
925
- updatedAt?: boolean;
926
- };
927
1045
  export type OrgMembershipSelect = {
928
1046
  id?: boolean;
929
1047
  createdAt?: boolean;
@@ -963,9 +1081,28 @@ export type OrgMemberProfileSelect = {
963
1081
  select: OrgMembershipSelect;
964
1082
  };
965
1083
  };
1084
+ export type AppInviteSelect = {
1085
+ id?: boolean;
1086
+ channel?: boolean;
1087
+ email?: boolean;
1088
+ phone?: boolean;
1089
+ senderId?: boolean;
1090
+ inviteToken?: boolean;
1091
+ inviteValid?: boolean;
1092
+ inviteLimit?: boolean;
1093
+ inviteCount?: boolean;
1094
+ multiple?: boolean;
1095
+ data?: boolean;
1096
+ profileId?: boolean;
1097
+ expiresAt?: boolean;
1098
+ createdAt?: boolean;
1099
+ updatedAt?: boolean;
1100
+ };
966
1101
  export type OrgInviteSelect = {
967
1102
  id?: boolean;
1103
+ channel?: boolean;
968
1104
  email?: boolean;
1105
+ phone?: boolean;
969
1106
  senderId?: boolean;
970
1107
  receiverId?: boolean;
971
1108
  inviteToken?: boolean;
@@ -1012,6 +1149,36 @@ export interface AppPermissionFilter {
1012
1149
  or?: AppPermissionFilter[];
1013
1150
  /** Negates the expression. */
1014
1151
  not?: AppPermissionFilter;
1152
+ /** Filter by the object’s `appPermissionDefaultPermissionByPermissionId` relation. */
1153
+ appPermissionDefaultPermissionByPermissionId?: AppPermissionDefaultPermissionFilter;
1154
+ /** A related `appPermissionDefaultPermissionByPermissionId` exists. */
1155
+ appPermissionDefaultPermissionByPermissionIdExists?: boolean;
1156
+ /** Filter by the object’s `appPermissionDefaultGrantsByPermissionId` relation. */
1157
+ appPermissionDefaultGrantsByPermissionId?: AppPermissionToManyAppPermissionDefaultGrantFilter;
1158
+ /** `appPermissionDefaultGrantsByPermissionId` exist. */
1159
+ appPermissionDefaultGrantsByPermissionIdExist?: boolean;
1160
+ }
1161
+ export interface AppPermissionDefaultGrantFilter {
1162
+ /** Filter by the object’s `id` field. */
1163
+ id?: UUIDFilter;
1164
+ /** Filter by the object’s `permissionId` field. */
1165
+ permissionId?: UUIDFilter;
1166
+ /** Filter by the object’s `isGrant` field. */
1167
+ isGrant?: BooleanFilter;
1168
+ /** Filter by the object’s `grantorId` field. */
1169
+ grantorId?: UUIDFilter;
1170
+ /** Filter by the object’s `createdAt` field. */
1171
+ createdAt?: DatetimeFilter;
1172
+ /** Filter by the object’s `updatedAt` field. */
1173
+ updatedAt?: DatetimeFilter;
1174
+ /** Checks for all expressions in this list. */
1175
+ and?: AppPermissionDefaultGrantFilter[];
1176
+ /** Checks for any expressions in this list. */
1177
+ or?: AppPermissionDefaultGrantFilter[];
1178
+ /** Negates the expression. */
1179
+ not?: AppPermissionDefaultGrantFilter;
1180
+ /** Filter by the object’s `permission` relation. */
1181
+ permission?: AppPermissionFilter;
1015
1182
  }
1016
1183
  export interface OrgPermissionFilter {
1017
1184
  /** Filter by the object’s `id` field. */
@@ -1030,6 +1197,58 @@ export interface OrgPermissionFilter {
1030
1197
  or?: OrgPermissionFilter[];
1031
1198
  /** Negates the expression. */
1032
1199
  not?: OrgPermissionFilter;
1200
+ /** Filter by the object’s `orgPermissionDefaultPermissionsByPermissionId` relation. */
1201
+ orgPermissionDefaultPermissionsByPermissionId?: OrgPermissionToManyOrgPermissionDefaultPermissionFilter;
1202
+ /** `orgPermissionDefaultPermissionsByPermissionId` exist. */
1203
+ orgPermissionDefaultPermissionsByPermissionIdExist?: boolean;
1204
+ /** Filter by the object’s `orgPermissionDefaultGrantsByPermissionId` relation. */
1205
+ orgPermissionDefaultGrantsByPermissionId?: OrgPermissionToManyOrgPermissionDefaultGrantFilter;
1206
+ /** `orgPermissionDefaultGrantsByPermissionId` exist. */
1207
+ orgPermissionDefaultGrantsByPermissionIdExist?: boolean;
1208
+ }
1209
+ export interface OrgPermissionDefaultPermissionFilter {
1210
+ /** Filter by the object’s `id` field. */
1211
+ id?: UUIDFilter;
1212
+ /** Filter by the object’s `permissionId` field. */
1213
+ permissionId?: UUIDFilter;
1214
+ /** Filter by the object’s `entityId` field. */
1215
+ entityId?: UUIDFilter;
1216
+ /** Filter by the object’s `createdAt` field. */
1217
+ createdAt?: DatetimeFilter;
1218
+ /** Filter by the object’s `updatedAt` field. */
1219
+ updatedAt?: DatetimeFilter;
1220
+ /** Checks for all expressions in this list. */
1221
+ and?: OrgPermissionDefaultPermissionFilter[];
1222
+ /** Checks for any expressions in this list. */
1223
+ or?: OrgPermissionDefaultPermissionFilter[];
1224
+ /** Negates the expression. */
1225
+ not?: OrgPermissionDefaultPermissionFilter;
1226
+ /** Filter by the object’s `permission` relation. */
1227
+ permission?: OrgPermissionFilter;
1228
+ }
1229
+ export interface OrgPermissionDefaultGrantFilter {
1230
+ /** Filter by the object’s `id` field. */
1231
+ id?: UUIDFilter;
1232
+ /** Filter by the object’s `permissionId` field. */
1233
+ permissionId?: UUIDFilter;
1234
+ /** Filter by the object’s `isGrant` field. */
1235
+ isGrant?: BooleanFilter;
1236
+ /** Filter by the object’s `grantorId` field. */
1237
+ grantorId?: UUIDFilter;
1238
+ /** Filter by the object’s `entityId` field. */
1239
+ entityId?: UUIDFilter;
1240
+ /** Filter by the object’s `createdAt` field. */
1241
+ createdAt?: DatetimeFilter;
1242
+ /** Filter by the object’s `updatedAt` field. */
1243
+ updatedAt?: DatetimeFilter;
1244
+ /** Checks for all expressions in this list. */
1245
+ and?: OrgPermissionDefaultGrantFilter[];
1246
+ /** Checks for any expressions in this list. */
1247
+ or?: OrgPermissionDefaultGrantFilter[];
1248
+ /** Negates the expression. */
1249
+ not?: OrgPermissionDefaultGrantFilter;
1250
+ /** Filter by the object’s `permission` relation. */
1251
+ permission?: OrgPermissionFilter;
1033
1252
  }
1034
1253
  export interface OrgMemberFilter {
1035
1254
  /** Filter by the object’s `id` field. */
@@ -1073,6 +1292,24 @@ export interface OrgPermissionDefaultFilter {
1073
1292
  /** Negates the expression. */
1074
1293
  not?: OrgPermissionDefaultFilter;
1075
1294
  }
1295
+ export interface AppPermissionDefaultPermissionFilter {
1296
+ /** Filter by the object’s `id` field. */
1297
+ id?: UUIDFilter;
1298
+ /** Filter by the object’s `permissionId` field. */
1299
+ permissionId?: UUIDFilter;
1300
+ /** Filter by the object’s `createdAt` field. */
1301
+ createdAt?: DatetimeFilter;
1302
+ /** Filter by the object’s `updatedAt` field. */
1303
+ updatedAt?: DatetimeFilter;
1304
+ /** Checks for all expressions in this list. */
1305
+ and?: AppPermissionDefaultPermissionFilter[];
1306
+ /** Checks for any expressions in this list. */
1307
+ or?: AppPermissionDefaultPermissionFilter[];
1308
+ /** Negates the expression. */
1309
+ not?: AppPermissionDefaultPermissionFilter;
1310
+ /** Filter by the object’s `permission` relation. */
1311
+ permission?: AppPermissionFilter;
1312
+ }
1076
1313
  export interface AppAdminGrantFilter {
1077
1314
  /** Filter by the object’s `id` field. */
1078
1315
  id?: UUIDFilter;
@@ -1431,38 +1668,6 @@ export interface AppMembershipFilter {
1431
1668
  /** Negates the expression. */
1432
1669
  not?: AppMembershipFilter;
1433
1670
  }
1434
- export interface AppInviteFilter {
1435
- /** Filter by the object’s `id` field. */
1436
- id?: UUIDFilter;
1437
- /** Filter by the object’s `email` field. */
1438
- email?: ConstructiveInternalTypeEmailFilter;
1439
- /** Filter by the object’s `senderId` field. */
1440
- senderId?: UUIDFilter;
1441
- /** Filter by the object’s `inviteToken` field. */
1442
- inviteToken?: StringFilter;
1443
- /** Filter by the object’s `inviteValid` field. */
1444
- inviteValid?: BooleanFilter;
1445
- /** Filter by the object’s `inviteLimit` field. */
1446
- inviteLimit?: IntFilter;
1447
- /** Filter by the object’s `inviteCount` field. */
1448
- inviteCount?: IntFilter;
1449
- /** Filter by the object’s `multiple` field. */
1450
- multiple?: BooleanFilter;
1451
- /** Filter by the object’s `profileId` field. */
1452
- profileId?: UUIDFilter;
1453
- /** Filter by the object’s `expiresAt` field. */
1454
- expiresAt?: DatetimeFilter;
1455
- /** Filter by the object’s `createdAt` field. */
1456
- createdAt?: DatetimeFilter;
1457
- /** Filter by the object’s `updatedAt` field. */
1458
- updatedAt?: DatetimeFilter;
1459
- /** Checks for all expressions in this list. */
1460
- and?: AppInviteFilter[];
1461
- /** Checks for any expressions in this list. */
1462
- or?: AppInviteFilter[];
1463
- /** Negates the expression. */
1464
- not?: AppInviteFilter;
1465
- }
1466
1671
  export interface OrgMembershipFilter {
1467
1672
  /** Filter by the object’s `id` field. */
1468
1673
  id?: UUIDFilter;
@@ -1543,15 +1748,17 @@ export interface OrgMemberProfileFilter {
1543
1748
  /** Filter by the object’s `membership` relation. */
1544
1749
  membership?: OrgMembershipFilter;
1545
1750
  }
1546
- export interface OrgInviteFilter {
1751
+ export interface AppInviteFilter {
1547
1752
  /** Filter by the object’s `id` field. */
1548
1753
  id?: UUIDFilter;
1754
+ /** Filter by the object’s `channel` field. */
1755
+ channel?: StringFilter;
1549
1756
  /** Filter by the object’s `email` field. */
1550
1757
  email?: ConstructiveInternalTypeEmailFilter;
1758
+ /** Filter by the object’s `phone` field. */
1759
+ phone?: StringFilter;
1551
1760
  /** Filter by the object’s `senderId` field. */
1552
1761
  senderId?: UUIDFilter;
1553
- /** Filter by the object’s `receiverId` field. */
1554
- receiverId?: UUIDFilter;
1555
1762
  /** Filter by the object’s `inviteToken` field. */
1556
1763
  inviteToken?: StringFilter;
1557
1764
  /** Filter by the object’s `inviteValid` field. */
@@ -1564,37 +1771,79 @@ export interface OrgInviteFilter {
1564
1771
  multiple?: BooleanFilter;
1565
1772
  /** Filter by the object’s `profileId` field. */
1566
1773
  profileId?: UUIDFilter;
1567
- /** Filter by the object’s `isReadOnly` field. */
1568
- isReadOnly?: BooleanFilter;
1569
1774
  /** Filter by the object’s `expiresAt` field. */
1570
1775
  expiresAt?: DatetimeFilter;
1571
1776
  /** Filter by the object’s `createdAt` field. */
1572
1777
  createdAt?: DatetimeFilter;
1573
1778
  /** Filter by the object’s `updatedAt` field. */
1574
1779
  updatedAt?: DatetimeFilter;
1575
- /** Filter by the object’s `entityId` field. */
1576
- entityId?: UUIDFilter;
1577
1780
  /** Checks for all expressions in this list. */
1578
- and?: OrgInviteFilter[];
1781
+ and?: AppInviteFilter[];
1579
1782
  /** Checks for any expressions in this list. */
1580
- or?: OrgInviteFilter[];
1783
+ or?: AppInviteFilter[];
1581
1784
  /** Negates the expression. */
1582
- not?: OrgInviteFilter;
1785
+ not?: AppInviteFilter;
1583
1786
  }
1584
- export type OrgGetManagersRecordsOrderBy = 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'NATURAL' | 'USER_ID_ASC' | 'USER_ID_DESC' | 'DEPTH_ASC' | 'DEPTH_DESC';
1585
- export type OrgGetSubordinatesRecordsOrderBy = 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'NATURAL' | 'USER_ID_ASC' | 'USER_ID_DESC' | 'DEPTH_ASC' | 'DEPTH_DESC';
1586
- export type AppPermissionOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'BITNUM_ASC' | 'BITNUM_DESC' | 'BITSTR_ASC' | 'BITSTR_DESC' | 'DESCRIPTION_ASC' | 'DESCRIPTION_DESC';
1587
- export type OrgPermissionOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'BITNUM_ASC' | 'BITNUM_DESC' | 'BITSTR_ASC' | 'BITSTR_DESC' | 'DESCRIPTION_ASC' | 'DESCRIPTION_DESC';
1588
- export type OrgMemberOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'IS_ADMIN_ASC' | 'IS_ADMIN_DESC' | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC';
1589
- export type AppPermissionDefaultOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'PERMISSIONS_ASC' | 'PERMISSIONS_DESC';
1590
- export type OrgPermissionDefaultOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'PERMISSIONS_ASC' | 'PERMISSIONS_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC';
1591
- export type AppAdminGrantOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'IS_GRANT_ASC' | 'IS_GRANT_DESC' | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' | 'GRANTOR_ID_ASC' | 'GRANTOR_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC';
1592
- export type AppOwnerGrantOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'IS_GRANT_ASC' | 'IS_GRANT_DESC' | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' | 'GRANTOR_ID_ASC' | 'GRANTOR_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC';
1593
- export type OrgAdminGrantOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'IS_GRANT_ASC' | 'IS_GRANT_DESC' | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC' | 'GRANTOR_ID_ASC' | 'GRANTOR_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC';
1594
- export type OrgOwnerGrantOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'IS_GRANT_ASC' | 'IS_GRANT_DESC' | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC' | 'GRANTOR_ID_ASC' | 'GRANTOR_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC';
1595
- export type OrgChartEdgeGrantOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC' | 'CHILD_ID_ASC' | 'CHILD_ID_DESC' | 'PARENT_ID_ASC' | 'PARENT_ID_DESC' | 'GRANTOR_ID_ASC' | 'GRANTOR_ID_DESC' | 'IS_GRANT_ASC' | 'IS_GRANT_DESC' | 'POSITION_TITLE_ASC' | 'POSITION_TITLE_DESC' | 'POSITION_LEVEL_ASC' | 'POSITION_LEVEL_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC';
1596
- export type AppClaimedInviteOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'DATA_ASC' | 'DATA_DESC' | 'SENDER_ID_ASC' | 'SENDER_ID_DESC' | 'RECEIVER_ID_ASC' | 'RECEIVER_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC';
1597
- export type MembershipTypeOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'DESCRIPTION_ASC' | 'DESCRIPTION_DESC' | 'SCOPE_ASC' | 'SCOPE_DESC' | 'PARENT_MEMBERSHIP_TYPE_ASC' | 'PARENT_MEMBERSHIP_TYPE_DESC' | 'HAS_USERS_TABLE_ENTRY_ASC' | 'HAS_USERS_TABLE_ENTRY_DESC';
1787
+ export interface OrgInviteFilter {
1788
+ /** Filter by the object’s `id` field. */
1789
+ id?: UUIDFilter;
1790
+ /** Filter by the object’s `channel` field. */
1791
+ channel?: StringFilter;
1792
+ /** Filter by the object’s `email` field. */
1793
+ email?: ConstructiveInternalTypeEmailFilter;
1794
+ /** Filter by the object’s `phone` field. */
1795
+ phone?: StringFilter;
1796
+ /** Filter by the object’s `senderId` field. */
1797
+ senderId?: UUIDFilter;
1798
+ /** Filter by the object’s `receiverId` field. */
1799
+ receiverId?: UUIDFilter;
1800
+ /** Filter by the object’s `inviteToken` field. */
1801
+ inviteToken?: StringFilter;
1802
+ /** Filter by the object’s `inviteValid` field. */
1803
+ inviteValid?: BooleanFilter;
1804
+ /** Filter by the object’s `inviteLimit` field. */
1805
+ inviteLimit?: IntFilter;
1806
+ /** Filter by the object’s `inviteCount` field. */
1807
+ inviteCount?: IntFilter;
1808
+ /** Filter by the object’s `multiple` field. */
1809
+ multiple?: BooleanFilter;
1810
+ /** Filter by the object’s `profileId` field. */
1811
+ profileId?: UUIDFilter;
1812
+ /** Filter by the object’s `isReadOnly` field. */
1813
+ isReadOnly?: BooleanFilter;
1814
+ /** Filter by the object’s `expiresAt` field. */
1815
+ expiresAt?: DatetimeFilter;
1816
+ /** Filter by the object’s `createdAt` field. */
1817
+ createdAt?: DatetimeFilter;
1818
+ /** Filter by the object’s `updatedAt` field. */
1819
+ updatedAt?: DatetimeFilter;
1820
+ /** Filter by the object’s `entityId` field. */
1821
+ entityId?: UUIDFilter;
1822
+ /** Checks for all expressions in this list. */
1823
+ and?: OrgInviteFilter[];
1824
+ /** Checks for any expressions in this list. */
1825
+ or?: OrgInviteFilter[];
1826
+ /** Negates the expression. */
1827
+ not?: OrgInviteFilter;
1828
+ }
1829
+ export type OrgGetManagersRecordsOrderBy = 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'NATURAL' | 'USER_ID_ASC' | 'USER_ID_DESC' | 'DEPTH_ASC' | 'DEPTH_DESC';
1830
+ export type OrgGetSubordinatesRecordsOrderBy = 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'NATURAL' | 'USER_ID_ASC' | 'USER_ID_DESC' | 'DEPTH_ASC' | 'DEPTH_DESC';
1831
+ export type AppPermissionOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'BITNUM_ASC' | 'BITNUM_DESC' | 'BITSTR_ASC' | 'BITSTR_DESC' | 'DESCRIPTION_ASC' | 'DESCRIPTION_DESC';
1832
+ export type AppPermissionDefaultGrantOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'PERMISSION_ID_ASC' | 'PERMISSION_ID_DESC' | 'IS_GRANT_ASC' | 'IS_GRANT_DESC' | 'GRANTOR_ID_ASC' | 'GRANTOR_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC';
1833
+ export type OrgPermissionOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'BITNUM_ASC' | 'BITNUM_DESC' | 'BITSTR_ASC' | 'BITSTR_DESC' | 'DESCRIPTION_ASC' | 'DESCRIPTION_DESC';
1834
+ export type OrgPermissionDefaultPermissionOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'PERMISSION_ID_ASC' | 'PERMISSION_ID_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC';
1835
+ export type OrgPermissionDefaultGrantOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'PERMISSION_ID_ASC' | 'PERMISSION_ID_DESC' | 'IS_GRANT_ASC' | 'IS_GRANT_DESC' | 'GRANTOR_ID_ASC' | 'GRANTOR_ID_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC';
1836
+ export type OrgMemberOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'IS_ADMIN_ASC' | 'IS_ADMIN_DESC' | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC';
1837
+ export type AppPermissionDefaultOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'PERMISSIONS_ASC' | 'PERMISSIONS_DESC';
1838
+ export type OrgPermissionDefaultOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'PERMISSIONS_ASC' | 'PERMISSIONS_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC';
1839
+ export type AppPermissionDefaultPermissionOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'PERMISSION_ID_ASC' | 'PERMISSION_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC';
1840
+ export type AppAdminGrantOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'IS_GRANT_ASC' | 'IS_GRANT_DESC' | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' | 'GRANTOR_ID_ASC' | 'GRANTOR_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC';
1841
+ export type AppOwnerGrantOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'IS_GRANT_ASC' | 'IS_GRANT_DESC' | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' | 'GRANTOR_ID_ASC' | 'GRANTOR_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC';
1842
+ export type OrgAdminGrantOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'IS_GRANT_ASC' | 'IS_GRANT_DESC' | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC' | 'GRANTOR_ID_ASC' | 'GRANTOR_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC';
1843
+ export type OrgOwnerGrantOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'IS_GRANT_ASC' | 'IS_GRANT_DESC' | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC' | 'GRANTOR_ID_ASC' | 'GRANTOR_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC';
1844
+ export type OrgChartEdgeGrantOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC' | 'CHILD_ID_ASC' | 'CHILD_ID_DESC' | 'PARENT_ID_ASC' | 'PARENT_ID_DESC' | 'GRANTOR_ID_ASC' | 'GRANTOR_ID_DESC' | 'IS_GRANT_ASC' | 'IS_GRANT_DESC' | 'POSITION_TITLE_ASC' | 'POSITION_TITLE_DESC' | 'POSITION_LEVEL_ASC' | 'POSITION_LEVEL_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC';
1845
+ export type AppClaimedInviteOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'DATA_ASC' | 'DATA_DESC' | 'SENDER_ID_ASC' | 'SENDER_ID_DESC' | 'RECEIVER_ID_ASC' | 'RECEIVER_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC';
1846
+ export type MembershipTypeOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'DESCRIPTION_ASC' | 'DESCRIPTION_DESC' | 'SCOPE_ASC' | 'SCOPE_DESC' | 'PARENT_MEMBERSHIP_TYPE_ASC' | 'PARENT_MEMBERSHIP_TYPE_DESC' | 'HAS_USERS_TABLE_ENTRY_ASC' | 'HAS_USERS_TABLE_ENTRY_DESC';
1598
1847
  export type AppGrantOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'PERMISSIONS_ASC' | 'PERMISSIONS_DESC' | 'IS_GRANT_ASC' | 'IS_GRANT_DESC' | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' | 'GRANTOR_ID_ASC' | 'GRANTOR_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC';
1599
1848
  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';
1600
1849
  export type OrgMembershipDefaultOrderBy = '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' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC';
@@ -1603,10 +1852,10 @@ export type OrgGrantOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC'
1603
1852
  export type OrgChartEdgeOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC' | 'CHILD_ID_ASC' | 'CHILD_ID_DESC' | 'PARENT_ID_ASC' | 'PARENT_ID_DESC' | 'POSITION_TITLE_ASC' | 'POSITION_TITLE_DESC' | 'POSITION_LEVEL_ASC' | 'POSITION_LEVEL_DESC';
1604
1853
  export type OrgMembershipSettingOrderBy = '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' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC' | 'DELETE_MEMBER_CASCADE_CHILDREN_ASC' | 'DELETE_MEMBER_CASCADE_CHILDREN_DESC' | 'CREATE_CHILD_CASCADE_OWNERS_ASC' | 'CREATE_CHILD_CASCADE_OWNERS_DESC' | 'CREATE_CHILD_CASCADE_ADMINS_ASC' | 'CREATE_CHILD_CASCADE_ADMINS_DESC' | 'CREATE_CHILD_CASCADE_MEMBERS_ASC' | 'CREATE_CHILD_CASCADE_MEMBERS_DESC' | 'ALLOW_EXTERNAL_MEMBERS_ASC' | 'ALLOW_EXTERNAL_MEMBERS_DESC' | 'INVITE_PROFILE_ASSIGNMENT_MODE_ASC' | 'INVITE_PROFILE_ASSIGNMENT_MODE_DESC' | 'POPULATE_MEMBER_EMAIL_ASC' | 'POPULATE_MEMBER_EMAIL_DESC' | 'LIMIT_ALLOCATION_MODE_ASC' | 'LIMIT_ALLOCATION_MODE_DESC';
1605
1854
  export type AppMembershipOrderBy = '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_BANNED_ASC' | 'IS_BANNED_DESC' | 'IS_DISABLED_ASC' | 'IS_DISABLED_DESC' | 'IS_VERIFIED_ASC' | 'IS_VERIFIED_DESC' | 'IS_ACTIVE_ASC' | 'IS_ACTIVE_DESC' | 'IS_OWNER_ASC' | 'IS_OWNER_DESC' | 'IS_ADMIN_ASC' | 'IS_ADMIN_DESC' | 'PERMISSIONS_ASC' | 'PERMISSIONS_DESC' | 'GRANTED_ASC' | 'GRANTED_DESC' | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' | 'PROFILE_ID_ASC' | 'PROFILE_ID_DESC';
1606
- export type AppInviteOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'EMAIL_ASC' | 'EMAIL_DESC' | 'SENDER_ID_ASC' | 'SENDER_ID_DESC' | 'INVITE_TOKEN_ASC' | 'INVITE_TOKEN_DESC' | 'INVITE_VALID_ASC' | 'INVITE_VALID_DESC' | 'INVITE_LIMIT_ASC' | 'INVITE_LIMIT_DESC' | 'INVITE_COUNT_ASC' | 'INVITE_COUNT_DESC' | 'MULTIPLE_ASC' | 'MULTIPLE_DESC' | 'DATA_ASC' | 'DATA_DESC' | 'PROFILE_ID_ASC' | 'PROFILE_ID_DESC' | 'EXPIRES_AT_ASC' | 'EXPIRES_AT_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC';
1607
1855
  export type OrgMembershipOrderBy = '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_BANNED_ASC' | 'IS_BANNED_DESC' | 'IS_DISABLED_ASC' | 'IS_DISABLED_DESC' | 'IS_ACTIVE_ASC' | 'IS_ACTIVE_DESC' | 'IS_EXTERNAL_ASC' | 'IS_EXTERNAL_DESC' | 'IS_OWNER_ASC' | 'IS_OWNER_DESC' | 'IS_ADMIN_ASC' | 'IS_ADMIN_DESC' | 'PERMISSIONS_ASC' | 'PERMISSIONS_DESC' | 'GRANTED_ASC' | 'GRANTED_DESC' | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC' | 'IS_READ_ONLY_ASC' | 'IS_READ_ONLY_DESC' | 'PROFILE_ID_ASC' | 'PROFILE_ID_DESC';
1608
1856
  export type OrgMemberProfileOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'MEMBERSHIP_ID_ASC' | 'MEMBERSHIP_ID_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC' | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' | 'DISPLAY_NAME_ASC' | 'DISPLAY_NAME_DESC' | 'EMAIL_ASC' | 'EMAIL_DESC' | 'TITLE_ASC' | 'TITLE_DESC' | 'BIO_ASC' | 'BIO_DESC' | 'PROFILE_PICTURE_ASC' | 'PROFILE_PICTURE_DESC';
1609
- export type OrgInviteOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'EMAIL_ASC' | 'EMAIL_DESC' | 'SENDER_ID_ASC' | 'SENDER_ID_DESC' | 'RECEIVER_ID_ASC' | 'RECEIVER_ID_DESC' | 'INVITE_TOKEN_ASC' | 'INVITE_TOKEN_DESC' | 'INVITE_VALID_ASC' | 'INVITE_VALID_DESC' | 'INVITE_LIMIT_ASC' | 'INVITE_LIMIT_DESC' | 'INVITE_COUNT_ASC' | 'INVITE_COUNT_DESC' | 'MULTIPLE_ASC' | 'MULTIPLE_DESC' | 'DATA_ASC' | 'DATA_DESC' | 'PROFILE_ID_ASC' | 'PROFILE_ID_DESC' | 'IS_READ_ONLY_ASC' | 'IS_READ_ONLY_DESC' | 'EXPIRES_AT_ASC' | 'EXPIRES_AT_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC';
1857
+ export type AppInviteOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'CHANNEL_ASC' | 'CHANNEL_DESC' | 'EMAIL_ASC' | 'EMAIL_DESC' | 'PHONE_ASC' | 'PHONE_DESC' | 'SENDER_ID_ASC' | 'SENDER_ID_DESC' | 'INVITE_TOKEN_ASC' | 'INVITE_TOKEN_DESC' | 'INVITE_VALID_ASC' | 'INVITE_VALID_DESC' | 'INVITE_LIMIT_ASC' | 'INVITE_LIMIT_DESC' | 'INVITE_COUNT_ASC' | 'INVITE_COUNT_DESC' | 'MULTIPLE_ASC' | 'MULTIPLE_DESC' | 'DATA_ASC' | 'DATA_DESC' | 'PROFILE_ID_ASC' | 'PROFILE_ID_DESC' | 'EXPIRES_AT_ASC' | 'EXPIRES_AT_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC';
1858
+ export type OrgInviteOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'CHANNEL_ASC' | 'CHANNEL_DESC' | 'EMAIL_ASC' | 'EMAIL_DESC' | 'PHONE_ASC' | 'PHONE_DESC' | 'SENDER_ID_ASC' | 'SENDER_ID_DESC' | 'RECEIVER_ID_ASC' | 'RECEIVER_ID_DESC' | 'INVITE_TOKEN_ASC' | 'INVITE_TOKEN_DESC' | 'INVITE_VALID_ASC' | 'INVITE_VALID_DESC' | 'INVITE_LIMIT_ASC' | 'INVITE_LIMIT_DESC' | 'INVITE_COUNT_ASC' | 'INVITE_COUNT_DESC' | 'MULTIPLE_ASC' | 'MULTIPLE_DESC' | 'DATA_ASC' | 'DATA_DESC' | 'PROFILE_ID_ASC' | 'PROFILE_ID_DESC' | 'IS_READ_ONLY_ASC' | 'IS_READ_ONLY_DESC' | 'EXPIRES_AT_ASC' | 'EXPIRES_AT_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC';
1610
1859
  export interface CreateOrgGetManagersRecordInput {
1611
1860
  clientMutationId?: string;
1612
1861
  orgGetManagersRecord: {
@@ -1671,6 +1920,28 @@ export interface DeleteAppPermissionInput {
1671
1920
  clientMutationId?: string;
1672
1921
  id: string;
1673
1922
  }
1923
+ export interface CreateAppPermissionDefaultGrantInput {
1924
+ clientMutationId?: string;
1925
+ appPermissionDefaultGrant: {
1926
+ permissionId: string;
1927
+ isGrant?: boolean;
1928
+ grantorId?: string;
1929
+ };
1930
+ }
1931
+ export interface AppPermissionDefaultGrantPatch {
1932
+ permissionId?: string | null;
1933
+ isGrant?: boolean | null;
1934
+ grantorId?: string | null;
1935
+ }
1936
+ export interface UpdateAppPermissionDefaultGrantInput {
1937
+ clientMutationId?: string;
1938
+ id: string;
1939
+ appPermissionDefaultGrantPatch: AppPermissionDefaultGrantPatch;
1940
+ }
1941
+ export interface DeleteAppPermissionDefaultGrantInput {
1942
+ clientMutationId?: string;
1943
+ id: string;
1944
+ }
1674
1945
  export interface CreateOrgPermissionInput {
1675
1946
  clientMutationId?: string;
1676
1947
  orgPermission: {
@@ -1695,6 +1966,50 @@ export interface DeleteOrgPermissionInput {
1695
1966
  clientMutationId?: string;
1696
1967
  id: string;
1697
1968
  }
1969
+ export interface CreateOrgPermissionDefaultPermissionInput {
1970
+ clientMutationId?: string;
1971
+ orgPermissionDefaultPermission: {
1972
+ permissionId: string;
1973
+ entityId: string;
1974
+ };
1975
+ }
1976
+ export interface OrgPermissionDefaultPermissionPatch {
1977
+ permissionId?: string | null;
1978
+ entityId?: string | null;
1979
+ }
1980
+ export interface UpdateOrgPermissionDefaultPermissionInput {
1981
+ clientMutationId?: string;
1982
+ id: string;
1983
+ orgPermissionDefaultPermissionPatch: OrgPermissionDefaultPermissionPatch;
1984
+ }
1985
+ export interface DeleteOrgPermissionDefaultPermissionInput {
1986
+ clientMutationId?: string;
1987
+ id: string;
1988
+ }
1989
+ export interface CreateOrgPermissionDefaultGrantInput {
1990
+ clientMutationId?: string;
1991
+ orgPermissionDefaultGrant: {
1992
+ permissionId: string;
1993
+ isGrant?: boolean;
1994
+ grantorId?: string;
1995
+ entityId: string;
1996
+ };
1997
+ }
1998
+ export interface OrgPermissionDefaultGrantPatch {
1999
+ permissionId?: string | null;
2000
+ isGrant?: boolean | null;
2001
+ grantorId?: string | null;
2002
+ entityId?: string | null;
2003
+ }
2004
+ export interface UpdateOrgPermissionDefaultGrantInput {
2005
+ clientMutationId?: string;
2006
+ id: string;
2007
+ orgPermissionDefaultGrantPatch: OrgPermissionDefaultGrantPatch;
2008
+ }
2009
+ export interface DeleteOrgPermissionDefaultGrantInput {
2010
+ clientMutationId?: string;
2011
+ id: string;
2012
+ }
1698
2013
  export interface CreateOrgMemberInput {
1699
2014
  clientMutationId?: string;
1700
2015
  orgMember: {
@@ -1755,11 +2070,29 @@ export interface DeleteOrgPermissionDefaultInput {
1755
2070
  clientMutationId?: string;
1756
2071
  id: string;
1757
2072
  }
2073
+ export interface CreateAppPermissionDefaultPermissionInput {
2074
+ clientMutationId?: string;
2075
+ appPermissionDefaultPermission: {
2076
+ permissionId: string;
2077
+ };
2078
+ }
2079
+ export interface AppPermissionDefaultPermissionPatch {
2080
+ permissionId?: string | null;
2081
+ }
2082
+ export interface UpdateAppPermissionDefaultPermissionInput {
2083
+ clientMutationId?: string;
2084
+ id: string;
2085
+ appPermissionDefaultPermissionPatch: AppPermissionDefaultPermissionPatch;
2086
+ }
2087
+ export interface DeleteAppPermissionDefaultPermissionInput {
2088
+ clientMutationId?: string;
2089
+ id: string;
2090
+ }
1758
2091
  export interface CreateAppAdminGrantInput {
1759
2092
  clientMutationId?: string;
1760
2093
  appAdminGrant: {
1761
2094
  isGrant?: boolean;
1762
- actorId: string;
2095
+ actorId?: string;
1763
2096
  grantorId?: string;
1764
2097
  };
1765
2098
  }
@@ -1781,7 +2114,7 @@ export interface CreateAppOwnerGrantInput {
1781
2114
  clientMutationId?: string;
1782
2115
  appOwnerGrant: {
1783
2116
  isGrant?: boolean;
1784
- actorId: string;
2117
+ actorId?: string;
1785
2118
  grantorId?: string;
1786
2119
  };
1787
2120
  }
@@ -1803,7 +2136,7 @@ export interface CreateOrgAdminGrantInput {
1803
2136
  clientMutationId?: string;
1804
2137
  orgAdminGrant: {
1805
2138
  isGrant?: boolean;
1806
- actorId: string;
2139
+ actorId?: string;
1807
2140
  entityId: string;
1808
2141
  grantorId?: string;
1809
2142
  };
@@ -1827,7 +2160,7 @@ export interface CreateOrgOwnerGrantInput {
1827
2160
  clientMutationId?: string;
1828
2161
  orgOwnerGrant: {
1829
2162
  isGrant?: boolean;
1830
- actorId: string;
2163
+ actorId?: string;
1831
2164
  entityId: string;
1832
2165
  grantorId?: string;
1833
2166
  };
@@ -1930,7 +2263,7 @@ export interface CreateAppGrantInput {
1930
2263
  appGrant: {
1931
2264
  permissions?: string;
1932
2265
  isGrant?: boolean;
1933
- actorId: string;
2266
+ actorId?: string;
1934
2267
  grantorId?: string;
1935
2268
  };
1936
2269
  }
@@ -2026,7 +2359,7 @@ export interface CreateOrgGrantInput {
2026
2359
  orgGrant: {
2027
2360
  permissions?: string;
2028
2361
  isGrant?: boolean;
2029
- actorId: string;
2362
+ actorId?: string;
2030
2363
  entityId: string;
2031
2364
  grantorId?: string;
2032
2365
  };
@@ -2153,42 +2486,6 @@ export interface DeleteAppMembershipInput {
2153
2486
  clientMutationId?: string;
2154
2487
  id: string;
2155
2488
  }
2156
- export interface CreateAppInviteInput {
2157
- clientMutationId?: string;
2158
- appInvite: {
2159
- email?: ConstructiveInternalTypeEmail;
2160
- senderId?: string;
2161
- inviteToken?: string;
2162
- inviteValid?: boolean;
2163
- inviteLimit?: number;
2164
- inviteCount?: number;
2165
- multiple?: boolean;
2166
- data?: Record<string, unknown>;
2167
- profileId?: string;
2168
- expiresAt?: string;
2169
- };
2170
- }
2171
- export interface AppInvitePatch {
2172
- email?: ConstructiveInternalTypeEmail | null;
2173
- senderId?: string | null;
2174
- inviteToken?: string | null;
2175
- inviteValid?: boolean | null;
2176
- inviteLimit?: number | null;
2177
- inviteCount?: number | null;
2178
- multiple?: boolean | null;
2179
- data?: Record<string, unknown> | null;
2180
- profileId?: string | null;
2181
- expiresAt?: string | null;
2182
- }
2183
- export interface UpdateAppInviteInput {
2184
- clientMutationId?: string;
2185
- id: string;
2186
- appInvitePatch: AppInvitePatch;
2187
- }
2188
- export interface DeleteAppInviteInput {
2189
- clientMutationId?: string;
2190
- id: string;
2191
- }
2192
2489
  export interface CreateOrgMembershipInput {
2193
2490
  clientMutationId?: string;
2194
2491
  orgMembership: {
@@ -2268,10 +2565,52 @@ export interface DeleteOrgMemberProfileInput {
2268
2565
  clientMutationId?: string;
2269
2566
  id: string;
2270
2567
  }
2568
+ export interface CreateAppInviteInput {
2569
+ clientMutationId?: string;
2570
+ appInvite: {
2571
+ channel?: string;
2572
+ email?: ConstructiveInternalTypeEmail;
2573
+ phone?: string;
2574
+ senderId?: string;
2575
+ inviteToken?: string;
2576
+ inviteValid?: boolean;
2577
+ inviteLimit?: number;
2578
+ inviteCount?: number;
2579
+ multiple?: boolean;
2580
+ data?: Record<string, unknown>;
2581
+ profileId?: string;
2582
+ expiresAt?: string;
2583
+ };
2584
+ }
2585
+ export interface AppInvitePatch {
2586
+ channel?: string | null;
2587
+ email?: ConstructiveInternalTypeEmail | null;
2588
+ phone?: string | null;
2589
+ senderId?: string | null;
2590
+ inviteToken?: string | null;
2591
+ inviteValid?: boolean | null;
2592
+ inviteLimit?: number | null;
2593
+ inviteCount?: number | null;
2594
+ multiple?: boolean | null;
2595
+ data?: Record<string, unknown> | null;
2596
+ profileId?: string | null;
2597
+ expiresAt?: string | null;
2598
+ }
2599
+ export interface UpdateAppInviteInput {
2600
+ clientMutationId?: string;
2601
+ id: string;
2602
+ appInvitePatch: AppInvitePatch;
2603
+ }
2604
+ export interface DeleteAppInviteInput {
2605
+ clientMutationId?: string;
2606
+ id: string;
2607
+ }
2271
2608
  export interface CreateOrgInviteInput {
2272
2609
  clientMutationId?: string;
2273
2610
  orgInvite: {
2611
+ channel?: string;
2274
2612
  email?: ConstructiveInternalTypeEmail;
2613
+ phone?: string;
2275
2614
  senderId?: string;
2276
2615
  receiverId?: string;
2277
2616
  inviteToken?: string;
@@ -2287,7 +2626,9 @@ export interface CreateOrgInviteInput {
2287
2626
  };
2288
2627
  }
2289
2628
  export interface OrgInvitePatch {
2629
+ channel?: string | null;
2290
2630
  email?: ConstructiveInternalTypeEmail | null;
2631
+ phone?: string | null;
2291
2632
  senderId?: string | null;
2292
2633
  receiverId?: string | null;
2293
2634
  inviteToken?: string | null;
@@ -2328,6 +2669,68 @@ export interface ProvisionBucketInput {
2328
2669
  */
2329
2670
  ownerId?: string;
2330
2671
  }
2672
+ /** A filter to be used against many `AppPermissionDefaultGrant` object types. All fields are combined with a logical ‘and.’ */
2673
+ export interface AppPermissionToManyAppPermissionDefaultGrantFilter {
2674
+ /** Filters to entities where at least one related entity matches. */
2675
+ some?: AppPermissionDefaultGrantFilter;
2676
+ /** Filters to entities where every related entity matches. */
2677
+ every?: AppPermissionDefaultGrantFilter;
2678
+ /** Filters to entities where no related entity matches. */
2679
+ none?: AppPermissionDefaultGrantFilter;
2680
+ }
2681
+ /** A filter to be used against many `OrgPermissionDefaultPermission` object types. All fields are combined with a logical ‘and.’ */
2682
+ export interface OrgPermissionToManyOrgPermissionDefaultPermissionFilter {
2683
+ /** Filters to entities where at least one related entity matches. */
2684
+ some?: OrgPermissionDefaultPermissionFilter;
2685
+ /** Filters to entities where every related entity matches. */
2686
+ every?: OrgPermissionDefaultPermissionFilter;
2687
+ /** Filters to entities where no related entity matches. */
2688
+ none?: OrgPermissionDefaultPermissionFilter;
2689
+ }
2690
+ /** A filter to be used against many `OrgPermissionDefaultGrant` object types. All fields are combined with a logical ‘and.’ */
2691
+ export interface OrgPermissionToManyOrgPermissionDefaultGrantFilter {
2692
+ /** Filters to entities where at least one related entity matches. */
2693
+ some?: OrgPermissionDefaultGrantFilter;
2694
+ /** Filters to entities where every related entity matches. */
2695
+ every?: OrgPermissionDefaultGrantFilter;
2696
+ /** Filters to entities where no related entity matches. */
2697
+ none?: OrgPermissionDefaultGrantFilter;
2698
+ }
2699
+ /** A filter to be used against ConstructiveInternalTypeImage fields. All fields are combined with a logical ‘and.’ */
2700
+ export interface ConstructiveInternalTypeImageFilter {
2701
+ /** Is null (if `true` is specified) or is not null (if `false` is specified). */
2702
+ isNull?: boolean;
2703
+ /** Equal to the specified value. */
2704
+ equalTo?: ConstructiveInternalTypeImage;
2705
+ /** Not equal to the specified value. */
2706
+ notEqualTo?: ConstructiveInternalTypeImage;
2707
+ /** Not equal to the specified value, treating null like an ordinary value. */
2708
+ distinctFrom?: ConstructiveInternalTypeImage;
2709
+ /** Equal to the specified value, treating null like an ordinary value. */
2710
+ notDistinctFrom?: ConstructiveInternalTypeImage;
2711
+ /** Included in the specified list. */
2712
+ in?: ConstructiveInternalTypeImage[];
2713
+ /** Not included in the specified list. */
2714
+ notIn?: ConstructiveInternalTypeImage[];
2715
+ /** Less than the specified value. */
2716
+ lessThan?: ConstructiveInternalTypeImage;
2717
+ /** Less than or equal to the specified value. */
2718
+ lessThanOrEqualTo?: ConstructiveInternalTypeImage;
2719
+ /** Greater than the specified value. */
2720
+ greaterThan?: ConstructiveInternalTypeImage;
2721
+ /** Greater than or equal to the specified value. */
2722
+ greaterThanOrEqualTo?: ConstructiveInternalTypeImage;
2723
+ /** Contains the specified JSON. */
2724
+ contains?: ConstructiveInternalTypeImage;
2725
+ /** Contains the specified key. */
2726
+ containsKey?: string;
2727
+ /** Contains all of the specified keys. */
2728
+ containsAllKeys?: string[];
2729
+ /** Contains any of the specified keys. */
2730
+ containsAnyKeys?: string[];
2731
+ /** Contained by the specified JSON. */
2732
+ containedBy?: ConstructiveInternalTypeImage;
2733
+ }
2331
2734
  /** A filter to be used against ConstructiveInternalTypeEmail fields. All fields are combined with a logical ‘and.’ */
2332
2735
  export interface ConstructiveInternalTypeEmailFilter {
2333
2736
  /** Is null (if `true` is specified) or is not null (if `false` is specified). */
@@ -2405,40 +2808,790 @@ export interface ConstructiveInternalTypeEmailFilter {
2405
2808
  /** Greater than or equal to the specified value (case-insensitive). */
2406
2809
  greaterThanOrEqualToInsensitive?: ConstructiveInternalTypeEmail;
2407
2810
  }
2408
- /** A filter to be used against ConstructiveInternalTypeImage fields. All fields are combined with a logical ‘and.’ */
2409
- export interface ConstructiveInternalTypeImageFilter {
2811
+ /** An input for mutations affecting `AppPermission` */
2812
+ export interface AppPermissionInput {
2813
+ id?: string;
2814
+ /** Human-readable permission name (e.g. read, write, manage) */
2815
+ name?: string;
2816
+ /** Position of this permission in the bitmask (1-indexed), must be unique per permission set */
2817
+ bitnum?: number;
2818
+ /** Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations */
2819
+ bitstr?: string;
2820
+ /** Human-readable description of what this permission allows */
2821
+ description?: string;
2822
+ }
2823
+ /** An input for mutations affecting `AppPermissionDefaultGrant` */
2824
+ export interface AppPermissionDefaultGrantInput {
2825
+ id?: string;
2826
+ /** References the permission being added to or removed from defaults */
2827
+ permissionId: string;
2828
+ /** True to add the permission to defaults, false to remove it */
2829
+ isGrant?: boolean;
2830
+ grantorId?: string;
2831
+ createdAt?: string;
2832
+ updatedAt?: string;
2833
+ }
2834
+ /** An input for mutations affecting `OrgPermission` */
2835
+ export interface OrgPermissionInput {
2836
+ id?: string;
2837
+ /** Human-readable permission name (e.g. read, write, manage) */
2838
+ name?: string;
2839
+ /** Position of this permission in the bitmask (1-indexed), must be unique per permission set */
2840
+ bitnum?: number;
2841
+ /** Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations */
2842
+ bitstr?: string;
2843
+ /** Human-readable description of what this permission allows */
2844
+ description?: string;
2845
+ }
2846
+ /** An input for mutations affecting `OrgPermissionDefaultPermission` */
2847
+ export interface OrgPermissionDefaultPermissionInput {
2848
+ id?: string;
2849
+ /** References the permission included in the defaults bundle */
2850
+ permissionId: string;
2851
+ /** Scopes this default permission to a specific entity */
2852
+ entityId: string;
2853
+ createdAt?: string;
2854
+ updatedAt?: string;
2855
+ }
2856
+ /** An input for mutations affecting `OrgPermissionDefaultGrant` */
2857
+ export interface OrgPermissionDefaultGrantInput {
2858
+ id?: string;
2859
+ /** References the permission being added to or removed from defaults */
2860
+ permissionId: string;
2861
+ /** True to add the permission to defaults, false to remove it */
2862
+ isGrant?: boolean;
2863
+ grantorId?: string;
2864
+ /** Scopes this audit entry to a specific entity */
2865
+ entityId: string;
2866
+ createdAt?: string;
2867
+ updatedAt?: string;
2868
+ }
2869
+ /** An input for mutations affecting `OrgMember` */
2870
+ export interface OrgMemberInput {
2871
+ id?: string;
2872
+ /** Whether this member has admin privileges */
2873
+ isAdmin?: boolean;
2874
+ /** References the user who is a member */
2875
+ actorId: string;
2876
+ /** References the entity (org or group) this member belongs to */
2877
+ entityId: string;
2878
+ }
2879
+ /** An input for mutations affecting `AppPermissionDefault` */
2880
+ export interface AppPermissionDefaultInput {
2881
+ id?: string;
2882
+ /** Default permission bitmask applied to new members */
2883
+ permissions?: string;
2884
+ }
2885
+ /** An input for mutations affecting `OrgPermissionDefault` */
2886
+ export interface OrgPermissionDefaultInput {
2887
+ id?: string;
2888
+ /** Default permission bitmask applied to new members */
2889
+ permissions?: string;
2890
+ /** References the entity these default permissions apply to */
2891
+ entityId: string;
2892
+ }
2893
+ /** An input for mutations affecting `AppPermissionDefaultPermission` */
2894
+ export interface AppPermissionDefaultPermissionInput {
2895
+ id?: string;
2896
+ /** References the permission included in the defaults bundle */
2897
+ permissionId: string;
2898
+ createdAt?: string;
2899
+ updatedAt?: string;
2900
+ }
2901
+ /** An input for mutations affecting `AppAdminGrant` */
2902
+ export interface AppAdminGrantInput {
2903
+ id?: string;
2904
+ /** True to grant admin, false to revoke admin */
2905
+ isGrant?: boolean;
2906
+ /** The member receiving or losing the admin grant; NULL if user was deleted */
2907
+ actorId?: string;
2908
+ grantorId?: string;
2909
+ createdAt?: string;
2910
+ updatedAt?: string;
2911
+ }
2912
+ /** An input for mutations affecting `AppOwnerGrant` */
2913
+ export interface AppOwnerGrantInput {
2914
+ id?: string;
2915
+ /** True to grant ownership, false to revoke ownership */
2916
+ isGrant?: boolean;
2917
+ /** The member receiving or losing the ownership grant; NULL if user was deleted */
2918
+ actorId?: string;
2919
+ grantorId?: string;
2920
+ createdAt?: string;
2921
+ updatedAt?: string;
2922
+ }
2923
+ /** An input for mutations affecting `OrgAdminGrant` */
2924
+ export interface OrgAdminGrantInput {
2925
+ id?: string;
2926
+ /** True to grant admin, false to revoke admin */
2927
+ isGrant?: boolean;
2928
+ /** The member receiving or losing the admin grant; NULL if user was deleted */
2929
+ actorId?: string;
2930
+ /** The entity (org or group) this admin grant applies to */
2931
+ entityId: string;
2932
+ grantorId?: string;
2933
+ createdAt?: string;
2934
+ updatedAt?: string;
2935
+ }
2936
+ /** An input for mutations affecting `OrgOwnerGrant` */
2937
+ export interface OrgOwnerGrantInput {
2938
+ id?: string;
2939
+ /** True to grant ownership, false to revoke ownership */
2940
+ isGrant?: boolean;
2941
+ /** The member receiving or losing the ownership grant; NULL if user was deleted */
2942
+ actorId?: string;
2943
+ /** The entity (org or group) this ownership grant applies to */
2944
+ entityId: string;
2945
+ grantorId?: string;
2946
+ createdAt?: string;
2947
+ updatedAt?: string;
2948
+ }
2949
+ /** An input for mutations affecting `OrgChartEdgeGrant` */
2950
+ export interface OrgChartEdgeGrantInput {
2951
+ id?: string;
2952
+ /** Organization this grant applies to */
2953
+ entityId: string;
2954
+ /** User ID of the subordinate being placed in the hierarchy */
2955
+ childId: string;
2956
+ /** User ID of the manager being assigned; NULL for top-level positions */
2957
+ parentId?: string;
2958
+ /** User ID of the admin who performed this grant or revocation; NULL if grantor was deleted */
2959
+ grantorId?: string;
2960
+ /** TRUE to add/update the edge, FALSE to remove it */
2961
+ isGrant?: boolean;
2962
+ /** Job title or role name being assigned in this grant */
2963
+ positionTitle?: string;
2964
+ /** Numeric seniority level being assigned in this grant */
2965
+ positionLevel?: number;
2966
+ /** Timestamp when this grant or revocation was recorded */
2967
+ createdAt?: string;
2968
+ }
2969
+ /** An input for mutations affecting `AppClaimedInvite` */
2970
+ export interface AppClaimedInviteInput {
2971
+ id?: string;
2972
+ /** Optional JSON payload captured at the time the invite was claimed */
2973
+ data?: Record<string, unknown>;
2974
+ /** User ID of the original invitation sender */
2975
+ senderId?: string;
2976
+ /** User ID of the person who claimed and redeemed the invitation */
2977
+ receiverId?: string;
2978
+ createdAt?: string;
2979
+ updatedAt?: string;
2980
+ }
2981
+ /** An input for mutations affecting `MembershipType` */
2982
+ export interface MembershipTypeInput {
2983
+ /** Integer identifier for the membership type (1=App, 2=Organization, 3=Group) */
2984
+ id: number;
2985
+ /** Human-readable name of the membership type */
2986
+ name: string;
2987
+ /** Description of what this membership type represents */
2988
+ description: string;
2989
+ /** Scope identifier for this membership type, used to resolve scope on module config tables */
2990
+ scope: string;
2991
+ /** Parent membership type ID for SPRT cascade chain (e.g. type 2 parent=1, type 3 parent=2) */
2992
+ parentMembershipType?: number;
2993
+ /** When true, entities of this membership type get a one-to-one ID in the users table and a corresponding role_type entry, enabling them to own resources via owner_id FKs */
2994
+ hasUsersTableEntry?: boolean;
2995
+ }
2996
+ /** An input for mutations affecting `AppGrant` */
2997
+ export interface AppGrantInput {
2998
+ id?: string;
2999
+ /** Bitmask of permissions being granted or revoked */
3000
+ permissions?: string;
3001
+ /** True to grant the permissions, false to revoke them */
3002
+ isGrant?: boolean;
3003
+ /** The member receiving or losing the permission grant; NULL if user was deleted */
3004
+ actorId?: string;
3005
+ grantorId?: string;
3006
+ createdAt?: string;
3007
+ updatedAt?: string;
3008
+ }
3009
+ /** An input for mutations affecting `AppMembershipDefault` */
3010
+ export interface AppMembershipDefaultInput {
3011
+ id?: string;
3012
+ createdAt?: string;
3013
+ updatedAt?: string;
3014
+ createdBy?: string;
3015
+ updatedBy?: string;
3016
+ /** Whether new members are automatically approved upon joining */
3017
+ isApproved?: boolean;
3018
+ /** Whether new members are automatically verified upon joining */
3019
+ isVerified?: boolean;
3020
+ }
3021
+ /** An input for mutations affecting `OrgMembershipDefault` */
3022
+ export interface OrgMembershipDefaultInput {
3023
+ id?: string;
3024
+ createdAt?: string;
3025
+ updatedAt?: string;
3026
+ createdBy?: string;
3027
+ updatedBy?: string;
3028
+ /** Whether new members are automatically approved upon joining */
3029
+ isApproved?: boolean;
3030
+ /** References the entity these membership defaults apply to */
3031
+ entityId: string;
3032
+ }
3033
+ /** An input for mutations affecting `OrgClaimedInvite` */
3034
+ export interface OrgClaimedInviteInput {
3035
+ id?: string;
3036
+ /** Optional JSON payload captured at the time the invite was claimed */
3037
+ data?: Record<string, unknown>;
3038
+ /** User ID of the original invitation sender */
3039
+ senderId?: string;
3040
+ /** User ID of the person who claimed and redeemed the invitation */
3041
+ receiverId?: string;
3042
+ createdAt?: string;
3043
+ updatedAt?: string;
3044
+ entityId: string;
3045
+ }
3046
+ /** An input for mutations affecting `OrgGrant` */
3047
+ export interface OrgGrantInput {
3048
+ id?: string;
3049
+ /** Bitmask of permissions being granted or revoked */
3050
+ permissions?: string;
3051
+ /** True to grant the permissions, false to revoke them */
3052
+ isGrant?: boolean;
3053
+ /** The member receiving or losing the permission grant; NULL if user was deleted */
3054
+ actorId?: string;
3055
+ /** The entity (org or group) this permission grant applies to */
3056
+ entityId: string;
3057
+ grantorId?: string;
3058
+ createdAt?: string;
3059
+ updatedAt?: string;
3060
+ }
3061
+ /** An input for mutations affecting `OrgChartEdge` */
3062
+ export interface OrgChartEdgeInput {
3063
+ id?: string;
3064
+ createdAt?: string;
3065
+ updatedAt?: string;
3066
+ /** Organization this hierarchy edge belongs to */
3067
+ entityId: string;
3068
+ /** User ID of the subordinate (employee) in this reporting relationship */
3069
+ childId: string;
3070
+ /** User ID of the manager; NULL indicates a top-level position with no direct report */
3071
+ parentId?: string;
3072
+ /** Job title or role name for this position in the org chart */
3073
+ positionTitle?: string;
3074
+ /** Numeric seniority level for this position (higher = more senior) */
3075
+ positionLevel?: number;
3076
+ }
3077
+ /** An input for mutations affecting `OrgMembershipSetting` */
3078
+ export interface OrgMembershipSettingInput {
3079
+ id?: string;
3080
+ createdAt?: string;
3081
+ updatedAt?: string;
3082
+ createdBy?: string;
3083
+ updatedBy?: string;
3084
+ /** References the entity these settings apply to */
3085
+ entityId: string;
3086
+ /** When a member is deleted, whether to cascade-remove their descendant-entity memberships */
3087
+ deleteMemberCascadeChildren?: boolean;
3088
+ /** When a child entity is created, whether to auto-add existing org-level owners as child-entity owners */
3089
+ createChildCascadeOwners?: boolean;
3090
+ /** When a child entity is created, whether to auto-add existing org-level admins as child-entity admins */
3091
+ createChildCascadeAdmins?: boolean;
3092
+ /** When a child entity is created, whether to auto-add existing org-level members (non-admin, non-owner) as child-entity members */
3093
+ createChildCascadeMembers?: boolean;
3094
+ /** Whether descendants of this org may admit members who are not already org members (outside-collaborators toggle) */
3095
+ allowExternalMembers?: boolean;
3096
+ /** Controls how profile assignment on invites is validated: strict (permission + subset check), permission_only (permission only), or subset_only (subset check only) */
3097
+ inviteProfileAssignmentMode?: string;
3098
+ /** Whether member_profiles.email is snapshot on join and kept synced with the user's primary email. When FALSE, the email field is left blank and never synced from the user's primary email. */
3099
+ populateMemberEmail?: boolean;
3100
+ /** Allocation mode for sub-entity limits: pooled (shared parent cap, no per-entity budgets) or budgeted (explicit per-entity allocations, transfer enabled) */
3101
+ limitAllocationMode?: string;
3102
+ }
3103
+ /** An input for mutations affecting `AppMembership` */
3104
+ export interface AppMembershipInput {
3105
+ id?: string;
3106
+ createdAt?: string;
3107
+ updatedAt?: string;
3108
+ createdBy?: string;
3109
+ updatedBy?: string;
3110
+ /** Whether this membership has been approved by an admin */
3111
+ isApproved?: boolean;
3112
+ /** Whether this member has been banned from the entity */
3113
+ isBanned?: boolean;
3114
+ /** Whether this membership is temporarily disabled */
3115
+ isDisabled?: boolean;
3116
+ /** Whether this member has been verified (e.g. email confirmation) */
3117
+ isVerified?: boolean;
3118
+ /** Computed field indicating the membership is approved, verified, not banned, and not disabled */
3119
+ isActive?: boolean;
3120
+ /** Whether the actor is the owner of this entity */
3121
+ isOwner?: boolean;
3122
+ /** Whether the actor has admin privileges on this entity */
3123
+ isAdmin?: boolean;
3124
+ /** Aggregated permission bitmask combining profile-based and directly granted permissions */
3125
+ permissions?: string;
3126
+ /** Bitmask of permissions directly granted to this member (not from profiles) */
3127
+ granted?: string;
3128
+ /** References the user who holds this membership */
3129
+ actorId: string;
3130
+ profileId?: string;
3131
+ }
3132
+ /** An input for mutations affecting `OrgMembership` */
3133
+ export interface OrgMembershipInput {
3134
+ id?: string;
3135
+ createdAt?: string;
3136
+ updatedAt?: string;
3137
+ createdBy?: string;
3138
+ updatedBy?: string;
3139
+ /** Whether this membership has been approved by an admin */
3140
+ isApproved?: boolean;
3141
+ /** Whether this member has been banned from the entity */
3142
+ isBanned?: boolean;
3143
+ /** Whether this membership is temporarily disabled */
3144
+ isDisabled?: boolean;
3145
+ /** Computed field indicating the membership is approved, verified, not banned, and not disabled */
3146
+ isActive?: boolean;
3147
+ /** Whether this member is external (not a member of the parent scope). External members may have restricted permissions. */
3148
+ isExternal?: boolean;
3149
+ /** Whether the actor is the owner of this entity */
3150
+ isOwner?: boolean;
3151
+ /** Whether the actor has admin privileges on this entity */
3152
+ isAdmin?: boolean;
3153
+ /** Aggregated permission bitmask combining profile-based and directly granted permissions */
3154
+ permissions?: string;
3155
+ /** Bitmask of permissions directly granted to this member (not from profiles) */
3156
+ granted?: string;
3157
+ /** References the user who holds this membership */
3158
+ actorId: string;
3159
+ /** References the entity (org or group) this membership belongs to */
3160
+ entityId: string;
3161
+ /** Whether this member has read-only access (blocks mutations when true) */
3162
+ isReadOnly?: boolean;
3163
+ profileId?: string;
3164
+ }
3165
+ /** An input for mutations affecting `OrgMemberProfile` */
3166
+ export interface OrgMemberProfileInput {
3167
+ id?: string;
3168
+ createdAt?: string;
3169
+ updatedAt?: string;
3170
+ /** References the membership this profile belongs to (1:1) */
3171
+ membershipId: string;
3172
+ /** References the entity this profile belongs to (used for RLS lookups) */
3173
+ entityId: string;
3174
+ /** References the user who owns this profile (for self-edit RLS) */
3175
+ actorId: string;
3176
+ /** Display name shown to other entity members */
3177
+ displayName?: string;
3178
+ /** Email address visible to other entity members (auto-populated from verified primary email) */
3179
+ email?: string;
3180
+ /** Job title or role description visible to other entity members */
3181
+ title?: string;
3182
+ /** Short biography visible to other entity members */
3183
+ bio?: string;
3184
+ /** Profile picture visible to other entity members */
3185
+ profilePicture?: ConstructiveInternalTypeImage;
3186
+ }
3187
+ /** An input for mutations affecting `AppInvite` */
3188
+ export interface AppInviteInput {
3189
+ id?: string;
3190
+ /** Delivery channel for this invitation: email, sms, or link */
3191
+ channel?: string;
3192
+ /** Email address of the invited recipient (required when channel=email) */
3193
+ email?: ConstructiveInternalTypeEmail;
3194
+ /** Phone number of the invited recipient in E.164 format (required when channel=sms) */
3195
+ phone?: string;
3196
+ /** User ID of the member who sent this invitation */
3197
+ senderId?: string;
3198
+ /** Unique random hex token used to redeem this invitation */
3199
+ inviteToken?: string;
3200
+ /** Whether this invitation is still valid and can be redeemed */
3201
+ inviteValid?: boolean;
3202
+ /** Maximum number of times this invite can be claimed; -1 means unlimited */
3203
+ inviteLimit?: number;
3204
+ /** Running count of how many times this invite has been claimed */
3205
+ inviteCount?: number;
3206
+ /** Whether this invite can be claimed by multiple recipients */
3207
+ multiple?: boolean;
3208
+ /** Optional JSON payload of additional invite metadata */
3209
+ data?: Record<string, unknown>;
3210
+ /** Optional profile (role) to assign to the member when they claim this invite. Only allowed on email invites. */
3211
+ profileId?: string;
3212
+ /** Timestamp after which this invitation can no longer be redeemed */
3213
+ expiresAt?: string;
3214
+ createdAt?: string;
3215
+ updatedAt?: string;
3216
+ }
3217
+ /** An input for mutations affecting `OrgInvite` */
3218
+ export interface OrgInviteInput {
3219
+ id?: string;
3220
+ /** Delivery channel for this invitation: email, sms, or link */
3221
+ channel?: string;
3222
+ /** Email address of the invited recipient (required when channel=email) */
3223
+ email?: ConstructiveInternalTypeEmail;
3224
+ /** Phone number of the invited recipient in E.164 format (required when channel=sms) */
3225
+ phone?: string;
3226
+ /** User ID of the member who sent this invitation */
3227
+ senderId?: string;
3228
+ /** User ID of the intended recipient, if targeting a specific user */
3229
+ receiverId?: string;
3230
+ /** Unique random hex token used to redeem this invitation */
3231
+ inviteToken?: string;
3232
+ /** Whether this invitation is still valid and can be redeemed */
3233
+ inviteValid?: boolean;
3234
+ /** Maximum number of times this invite can be claimed; -1 means unlimited */
3235
+ inviteLimit?: number;
3236
+ /** Running count of how many times this invite has been claimed */
3237
+ inviteCount?: number;
3238
+ /** Whether this invite can be claimed by multiple recipients */
3239
+ multiple?: boolean;
3240
+ /** Optional JSON payload of additional invite metadata */
3241
+ data?: Record<string, unknown>;
3242
+ /** Optional profile (role) to assign to the member when they claim this invite. Only allowed on email invites. */
3243
+ profileId?: string;
3244
+ /** Whether the resulting membership should be read-only when this invite is claimed */
3245
+ isReadOnly?: boolean;
3246
+ /** Timestamp after which this invitation can no longer be redeemed */
3247
+ expiresAt?: string;
3248
+ createdAt?: string;
3249
+ updatedAt?: string;
3250
+ entityId: string;
3251
+ }
3252
+ /** A filter to be used against `AppPermissionDefaultGrant` object types. All fields are combined with a logical ‘and.’ */
3253
+ export interface AppPermissionDefaultGrantFilter {
3254
+ /** Filter by the object’s `id` field. */
3255
+ id?: UUIDFilter;
3256
+ /** Filter by the object’s `permissionId` field. */
3257
+ permissionId?: UUIDFilter;
3258
+ /** Filter by the object’s `isGrant` field. */
3259
+ isGrant?: BooleanFilter;
3260
+ /** Filter by the object’s `grantorId` field. */
3261
+ grantorId?: UUIDFilter;
3262
+ /** Filter by the object’s `createdAt` field. */
3263
+ createdAt?: DatetimeFilter;
3264
+ /** Filter by the object’s `updatedAt` field. */
3265
+ updatedAt?: DatetimeFilter;
3266
+ /** Checks for all expressions in this list. */
3267
+ and?: AppPermissionDefaultGrantFilter[];
3268
+ /** Checks for any expressions in this list. */
3269
+ or?: AppPermissionDefaultGrantFilter[];
3270
+ /** Negates the expression. */
3271
+ not?: AppPermissionDefaultGrantFilter;
3272
+ /** Filter by the object’s `permission` relation. */
3273
+ permission?: AppPermissionFilter;
3274
+ }
3275
+ /** A filter to be used against `OrgPermissionDefaultPermission` object types. All fields are combined with a logical ‘and.’ */
3276
+ export interface OrgPermissionDefaultPermissionFilter {
3277
+ /** Filter by the object’s `id` field. */
3278
+ id?: UUIDFilter;
3279
+ /** Filter by the object’s `permissionId` field. */
3280
+ permissionId?: UUIDFilter;
3281
+ /** Filter by the object’s `entityId` field. */
3282
+ entityId?: UUIDFilter;
3283
+ /** Filter by the object’s `createdAt` field. */
3284
+ createdAt?: DatetimeFilter;
3285
+ /** Filter by the object’s `updatedAt` field. */
3286
+ updatedAt?: DatetimeFilter;
3287
+ /** Checks for all expressions in this list. */
3288
+ and?: OrgPermissionDefaultPermissionFilter[];
3289
+ /** Checks for any expressions in this list. */
3290
+ or?: OrgPermissionDefaultPermissionFilter[];
3291
+ /** Negates the expression. */
3292
+ not?: OrgPermissionDefaultPermissionFilter;
3293
+ /** Filter by the object’s `permission` relation. */
3294
+ permission?: OrgPermissionFilter;
3295
+ }
3296
+ /** A filter to be used against `OrgPermissionDefaultGrant` object types. All fields are combined with a logical ‘and.’ */
3297
+ export interface OrgPermissionDefaultGrantFilter {
3298
+ /** Filter by the object’s `id` field. */
3299
+ id?: UUIDFilter;
3300
+ /** Filter by the object’s `permissionId` field. */
3301
+ permissionId?: UUIDFilter;
3302
+ /** Filter by the object’s `isGrant` field. */
3303
+ isGrant?: BooleanFilter;
3304
+ /** Filter by the object’s `grantorId` field. */
3305
+ grantorId?: UUIDFilter;
3306
+ /** Filter by the object’s `entityId` field. */
3307
+ entityId?: UUIDFilter;
3308
+ /** Filter by the object’s `createdAt` field. */
3309
+ createdAt?: DatetimeFilter;
3310
+ /** Filter by the object’s `updatedAt` field. */
3311
+ updatedAt?: DatetimeFilter;
3312
+ /** Checks for all expressions in this list. */
3313
+ and?: OrgPermissionDefaultGrantFilter[];
3314
+ /** Checks for any expressions in this list. */
3315
+ or?: OrgPermissionDefaultGrantFilter[];
3316
+ /** Negates the expression. */
3317
+ not?: OrgPermissionDefaultGrantFilter;
3318
+ /** Filter by the object’s `permission` relation. */
3319
+ permission?: OrgPermissionFilter;
3320
+ }
3321
+ /** A filter to be used against UUID fields. All fields are combined with a logical ‘and.’ */
3322
+ export interface UUIDFilter {
3323
+ /** Is null (if `true` is specified) or is not null (if `false` is specified). */
3324
+ isNull?: boolean;
3325
+ /** Equal to the specified value. */
3326
+ equalTo?: string;
3327
+ /** Not equal to the specified value. */
3328
+ notEqualTo?: string;
3329
+ /** Not equal to the specified value, treating null like an ordinary value. */
3330
+ distinctFrom?: string;
3331
+ /** Equal to the specified value, treating null like an ordinary value. */
3332
+ notDistinctFrom?: string;
3333
+ /** Included in the specified list. */
3334
+ in?: string[];
3335
+ /** Not included in the specified list. */
3336
+ notIn?: string[];
3337
+ /** Less than the specified value. */
3338
+ lessThan?: string;
3339
+ /** Less than or equal to the specified value. */
3340
+ lessThanOrEqualTo?: string;
3341
+ /** Greater than the specified value. */
3342
+ greaterThan?: string;
3343
+ /** Greater than or equal to the specified value. */
3344
+ greaterThanOrEqualTo?: string;
3345
+ }
3346
+ /** A filter to be used against Boolean fields. All fields are combined with a logical ‘and.’ */
3347
+ export interface BooleanFilter {
3348
+ /** Is null (if `true` is specified) or is not null (if `false` is specified). */
3349
+ isNull?: boolean;
3350
+ /** Equal to the specified value. */
3351
+ equalTo?: boolean;
3352
+ /** Not equal to the specified value. */
3353
+ notEqualTo?: boolean;
3354
+ /** Not equal to the specified value, treating null like an ordinary value. */
3355
+ distinctFrom?: boolean;
3356
+ /** Equal to the specified value, treating null like an ordinary value. */
3357
+ notDistinctFrom?: boolean;
3358
+ /** Included in the specified list. */
3359
+ in?: boolean[];
3360
+ /** Not included in the specified list. */
3361
+ notIn?: boolean[];
3362
+ /** Less than the specified value. */
3363
+ lessThan?: boolean;
3364
+ /** Less than or equal to the specified value. */
3365
+ lessThanOrEqualTo?: boolean;
3366
+ /** Greater than the specified value. */
3367
+ greaterThan?: boolean;
3368
+ /** Greater than or equal to the specified value. */
3369
+ greaterThanOrEqualTo?: boolean;
3370
+ }
3371
+ /** A filter to be used against Datetime fields. All fields are combined with a logical ‘and.’ */
3372
+ export interface DatetimeFilter {
3373
+ /** Is null (if `true` is specified) or is not null (if `false` is specified). */
3374
+ isNull?: boolean;
3375
+ /** Equal to the specified value. */
3376
+ equalTo?: string;
3377
+ /** Not equal to the specified value. */
3378
+ notEqualTo?: string;
3379
+ /** Not equal to the specified value, treating null like an ordinary value. */
3380
+ distinctFrom?: string;
3381
+ /** Equal to the specified value, treating null like an ordinary value. */
3382
+ notDistinctFrom?: string;
3383
+ /** Included in the specified list. */
3384
+ in?: string[];
3385
+ /** Not included in the specified list. */
3386
+ notIn?: string[];
3387
+ /** Less than the specified value. */
3388
+ lessThan?: string;
3389
+ /** Less than or equal to the specified value. */
3390
+ lessThanOrEqualTo?: string;
3391
+ /** Greater than the specified value. */
3392
+ greaterThan?: string;
3393
+ /** Greater than or equal to the specified value. */
3394
+ greaterThanOrEqualTo?: string;
3395
+ }
3396
+ /** A filter to be used against `AppPermission` object types. All fields are combined with a logical ‘and.’ */
3397
+ export interface AppPermissionFilter {
3398
+ /** Filter by the object’s `id` field. */
3399
+ id?: UUIDFilter;
3400
+ /** Filter by the object’s `name` field. */
3401
+ name?: StringFilter;
3402
+ /** Filter by the object’s `bitnum` field. */
3403
+ bitnum?: IntFilter;
3404
+ /** Filter by the object’s `bitstr` field. */
3405
+ bitstr?: BitStringFilter;
3406
+ /** Filter by the object’s `description` field. */
3407
+ description?: StringFilter;
3408
+ /** Checks for all expressions in this list. */
3409
+ and?: AppPermissionFilter[];
3410
+ /** Checks for any expressions in this list. */
3411
+ or?: AppPermissionFilter[];
3412
+ /** Negates the expression. */
3413
+ not?: AppPermissionFilter;
3414
+ /** Filter by the object’s `appPermissionDefaultPermissionByPermissionId` relation. */
3415
+ appPermissionDefaultPermissionByPermissionId?: AppPermissionDefaultPermissionFilter;
3416
+ /** A related `appPermissionDefaultPermissionByPermissionId` exists. */
3417
+ appPermissionDefaultPermissionByPermissionIdExists?: boolean;
3418
+ /** Filter by the object’s `appPermissionDefaultGrantsByPermissionId` relation. */
3419
+ appPermissionDefaultGrantsByPermissionId?: AppPermissionToManyAppPermissionDefaultGrantFilter;
3420
+ /** `appPermissionDefaultGrantsByPermissionId` exist. */
3421
+ appPermissionDefaultGrantsByPermissionIdExist?: boolean;
3422
+ }
3423
+ /** A filter to be used against `OrgPermission` object types. All fields are combined with a logical ‘and.’ */
3424
+ export interface OrgPermissionFilter {
3425
+ /** Filter by the object’s `id` field. */
3426
+ id?: UUIDFilter;
3427
+ /** Filter by the object’s `name` field. */
3428
+ name?: StringFilter;
3429
+ /** Filter by the object’s `bitnum` field. */
3430
+ bitnum?: IntFilter;
3431
+ /** Filter by the object’s `bitstr` field. */
3432
+ bitstr?: BitStringFilter;
3433
+ /** Filter by the object’s `description` field. */
3434
+ description?: StringFilter;
3435
+ /** Checks for all expressions in this list. */
3436
+ and?: OrgPermissionFilter[];
3437
+ /** Checks for any expressions in this list. */
3438
+ or?: OrgPermissionFilter[];
3439
+ /** Negates the expression. */
3440
+ not?: OrgPermissionFilter;
3441
+ /** Filter by the object’s `orgPermissionDefaultPermissionsByPermissionId` relation. */
3442
+ orgPermissionDefaultPermissionsByPermissionId?: OrgPermissionToManyOrgPermissionDefaultPermissionFilter;
3443
+ /** `orgPermissionDefaultPermissionsByPermissionId` exist. */
3444
+ orgPermissionDefaultPermissionsByPermissionIdExist?: boolean;
3445
+ /** Filter by the object’s `orgPermissionDefaultGrantsByPermissionId` relation. */
3446
+ orgPermissionDefaultGrantsByPermissionId?: OrgPermissionToManyOrgPermissionDefaultGrantFilter;
3447
+ /** `orgPermissionDefaultGrantsByPermissionId` exist. */
3448
+ orgPermissionDefaultGrantsByPermissionIdExist?: boolean;
3449
+ }
3450
+ /** A filter to be used against String fields. All fields are combined with a logical ‘and.’ */
3451
+ export interface StringFilter {
3452
+ /** Is null (if `true` is specified) or is not null (if `false` is specified). */
3453
+ isNull?: boolean;
3454
+ /** Equal to the specified value. */
3455
+ equalTo?: string;
3456
+ /** Not equal to the specified value. */
3457
+ notEqualTo?: string;
3458
+ /** Not equal to the specified value, treating null like an ordinary value. */
3459
+ distinctFrom?: string;
3460
+ /** Equal to the specified value, treating null like an ordinary value. */
3461
+ notDistinctFrom?: string;
3462
+ /** Included in the specified list. */
3463
+ in?: string[];
3464
+ /** Not included in the specified list. */
3465
+ notIn?: string[];
3466
+ /** Less than the specified value. */
3467
+ lessThan?: string;
3468
+ /** Less than or equal to the specified value. */
3469
+ lessThanOrEqualTo?: string;
3470
+ /** Greater than the specified value. */
3471
+ greaterThan?: string;
3472
+ /** Greater than or equal to the specified value. */
3473
+ greaterThanOrEqualTo?: string;
3474
+ /** Contains the specified string (case-sensitive). */
3475
+ includes?: string;
3476
+ /** Does not contain the specified string (case-sensitive). */
3477
+ notIncludes?: string;
3478
+ /** Contains the specified string (case-insensitive). */
3479
+ includesInsensitive?: string;
3480
+ /** Does not contain the specified string (case-insensitive). */
3481
+ notIncludesInsensitive?: string;
3482
+ /** Starts with the specified string (case-sensitive). */
3483
+ startsWith?: string;
3484
+ /** Does not start with the specified string (case-sensitive). */
3485
+ notStartsWith?: string;
3486
+ /** Starts with the specified string (case-insensitive). */
3487
+ startsWithInsensitive?: string;
3488
+ /** Does not start with the specified string (case-insensitive). */
3489
+ notStartsWithInsensitive?: string;
3490
+ /** Ends with the specified string (case-sensitive). */
3491
+ endsWith?: string;
3492
+ /** Does not end with the specified string (case-sensitive). */
3493
+ notEndsWith?: string;
3494
+ /** Ends with the specified string (case-insensitive). */
3495
+ endsWithInsensitive?: string;
3496
+ /** Does not end with the specified string (case-insensitive). */
3497
+ notEndsWithInsensitive?: string;
3498
+ /** Matches the specified pattern (case-sensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */
3499
+ like?: string;
3500
+ /** Does not match the specified pattern (case-sensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */
3501
+ notLike?: string;
3502
+ /** Matches the specified pattern (case-insensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */
3503
+ likeInsensitive?: string;
3504
+ /** Does not match the specified pattern (case-insensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. */
3505
+ notLikeInsensitive?: string;
3506
+ /** Equal to the specified value (case-insensitive). */
3507
+ equalToInsensitive?: string;
3508
+ /** Not equal to the specified value (case-insensitive). */
3509
+ notEqualToInsensitive?: string;
3510
+ /** Not equal to the specified value, treating null like an ordinary value (case-insensitive). */
3511
+ distinctFromInsensitive?: string;
3512
+ /** Equal to the specified value, treating null like an ordinary value (case-insensitive). */
3513
+ notDistinctFromInsensitive?: string;
3514
+ /** Included in the specified list (case-insensitive). */
3515
+ inInsensitive?: string[];
3516
+ /** Not included in the specified list (case-insensitive). */
3517
+ notInInsensitive?: string[];
3518
+ /** Less than the specified value (case-insensitive). */
3519
+ lessThanInsensitive?: string;
3520
+ /** Less than or equal to the specified value (case-insensitive). */
3521
+ lessThanOrEqualToInsensitive?: string;
3522
+ /** Greater than the specified value (case-insensitive). */
3523
+ greaterThanInsensitive?: string;
3524
+ /** Greater than or equal to the specified value (case-insensitive). */
3525
+ greaterThanOrEqualToInsensitive?: string;
3526
+ }
3527
+ /** A filter to be used against Int fields. All fields are combined with a logical ‘and.’ */
3528
+ export interface IntFilter {
3529
+ /** Is null (if `true` is specified) or is not null (if `false` is specified). */
3530
+ isNull?: boolean;
3531
+ /** Equal to the specified value. */
3532
+ equalTo?: number;
3533
+ /** Not equal to the specified value. */
3534
+ notEqualTo?: number;
3535
+ /** Not equal to the specified value, treating null like an ordinary value. */
3536
+ distinctFrom?: number;
3537
+ /** Equal to the specified value, treating null like an ordinary value. */
3538
+ notDistinctFrom?: number;
3539
+ /** Included in the specified list. */
3540
+ in?: number[];
3541
+ /** Not included in the specified list. */
3542
+ notIn?: number[];
3543
+ /** Less than the specified value. */
3544
+ lessThan?: number;
3545
+ /** Less than or equal to the specified value. */
3546
+ lessThanOrEqualTo?: number;
3547
+ /** Greater than the specified value. */
3548
+ greaterThan?: number;
3549
+ /** Greater than or equal to the specified value. */
3550
+ greaterThanOrEqualTo?: number;
3551
+ }
3552
+ /** A filter to be used against BitString fields. All fields are combined with a logical ‘and.’ */
3553
+ export interface BitStringFilter {
2410
3554
  /** Is null (if `true` is specified) or is not null (if `false` is specified). */
2411
3555
  isNull?: boolean;
2412
3556
  /** Equal to the specified value. */
2413
- equalTo?: ConstructiveInternalTypeImage;
3557
+ equalTo?: string;
2414
3558
  /** Not equal to the specified value. */
2415
- notEqualTo?: ConstructiveInternalTypeImage;
3559
+ notEqualTo?: string;
2416
3560
  /** Not equal to the specified value, treating null like an ordinary value. */
2417
- distinctFrom?: ConstructiveInternalTypeImage;
3561
+ distinctFrom?: string;
2418
3562
  /** Equal to the specified value, treating null like an ordinary value. */
2419
- notDistinctFrom?: ConstructiveInternalTypeImage;
3563
+ notDistinctFrom?: string;
2420
3564
  /** Included in the specified list. */
2421
- in?: ConstructiveInternalTypeImage[];
3565
+ in?: string[];
2422
3566
  /** Not included in the specified list. */
2423
- notIn?: ConstructiveInternalTypeImage[];
3567
+ notIn?: string[];
2424
3568
  /** Less than the specified value. */
2425
- lessThan?: ConstructiveInternalTypeImage;
3569
+ lessThan?: string;
2426
3570
  /** Less than or equal to the specified value. */
2427
- lessThanOrEqualTo?: ConstructiveInternalTypeImage;
3571
+ lessThanOrEqualTo?: string;
2428
3572
  /** Greater than the specified value. */
2429
- greaterThan?: ConstructiveInternalTypeImage;
3573
+ greaterThan?: string;
2430
3574
  /** Greater than or equal to the specified value. */
2431
- greaterThanOrEqualTo?: ConstructiveInternalTypeImage;
2432
- /** Contains the specified JSON. */
2433
- contains?: ConstructiveInternalTypeImage;
2434
- /** Contains the specified key. */
2435
- containsKey?: string;
2436
- /** Contains all of the specified keys. */
2437
- containsAllKeys?: string[];
2438
- /** Contains any of the specified keys. */
2439
- containsAnyKeys?: string[];
2440
- /** Contained by the specified JSON. */
2441
- containedBy?: ConstructiveInternalTypeImage;
3575
+ greaterThanOrEqualTo?: string;
3576
+ }
3577
+ /** A filter to be used against `AppPermissionDefaultPermission` object types. All fields are combined with a logical ‘and.’ */
3578
+ export interface AppPermissionDefaultPermissionFilter {
3579
+ /** Filter by the object’s `id` field. */
3580
+ id?: UUIDFilter;
3581
+ /** Filter by the object’s `permissionId` field. */
3582
+ permissionId?: UUIDFilter;
3583
+ /** Filter by the object’s `createdAt` field. */
3584
+ createdAt?: DatetimeFilter;
3585
+ /** Filter by the object’s `updatedAt` field. */
3586
+ updatedAt?: DatetimeFilter;
3587
+ /** Checks for all expressions in this list. */
3588
+ and?: AppPermissionDefaultPermissionFilter[];
3589
+ /** Checks for any expressions in this list. */
3590
+ or?: AppPermissionDefaultPermissionFilter[];
3591
+ /** Negates the expression. */
3592
+ not?: AppPermissionDefaultPermissionFilter;
3593
+ /** Filter by the object’s `permission` relation. */
3594
+ permission?: AppPermissionFilter;
2442
3595
  }
2443
3596
  /** A connection to a list of `AppPermission` values. */
2444
3597
  export interface AppPermissionConnection {
@@ -2561,6 +3714,51 @@ export type DeleteAppPermissionPayloadSelect = {
2561
3714
  select: AppPermissionEdgeSelect;
2562
3715
  };
2563
3716
  };
3717
+ export interface CreateAppPermissionDefaultGrantPayload {
3718
+ clientMutationId?: string | null;
3719
+ /** The `AppPermissionDefaultGrant` that was created by this mutation. */
3720
+ appPermissionDefaultGrant?: AppPermissionDefaultGrant | null;
3721
+ appPermissionDefaultGrantEdge?: AppPermissionDefaultGrantEdge | null;
3722
+ }
3723
+ export type CreateAppPermissionDefaultGrantPayloadSelect = {
3724
+ clientMutationId?: boolean;
3725
+ appPermissionDefaultGrant?: {
3726
+ select: AppPermissionDefaultGrantSelect;
3727
+ };
3728
+ appPermissionDefaultGrantEdge?: {
3729
+ select: AppPermissionDefaultGrantEdgeSelect;
3730
+ };
3731
+ };
3732
+ export interface UpdateAppPermissionDefaultGrantPayload {
3733
+ clientMutationId?: string | null;
3734
+ /** The `AppPermissionDefaultGrant` that was updated by this mutation. */
3735
+ appPermissionDefaultGrant?: AppPermissionDefaultGrant | null;
3736
+ appPermissionDefaultGrantEdge?: AppPermissionDefaultGrantEdge | null;
3737
+ }
3738
+ export type UpdateAppPermissionDefaultGrantPayloadSelect = {
3739
+ clientMutationId?: boolean;
3740
+ appPermissionDefaultGrant?: {
3741
+ select: AppPermissionDefaultGrantSelect;
3742
+ };
3743
+ appPermissionDefaultGrantEdge?: {
3744
+ select: AppPermissionDefaultGrantEdgeSelect;
3745
+ };
3746
+ };
3747
+ export interface DeleteAppPermissionDefaultGrantPayload {
3748
+ clientMutationId?: string | null;
3749
+ /** The `AppPermissionDefaultGrant` that was deleted by this mutation. */
3750
+ appPermissionDefaultGrant?: AppPermissionDefaultGrant | null;
3751
+ appPermissionDefaultGrantEdge?: AppPermissionDefaultGrantEdge | null;
3752
+ }
3753
+ export type DeleteAppPermissionDefaultGrantPayloadSelect = {
3754
+ clientMutationId?: boolean;
3755
+ appPermissionDefaultGrant?: {
3756
+ select: AppPermissionDefaultGrantSelect;
3757
+ };
3758
+ appPermissionDefaultGrantEdge?: {
3759
+ select: AppPermissionDefaultGrantEdgeSelect;
3760
+ };
3761
+ };
2564
3762
  export interface CreateOrgPermissionPayload {
2565
3763
  clientMutationId?: string | null;
2566
3764
  /** The `OrgPermission` that was created by this mutation. */
@@ -2606,6 +3804,96 @@ export type DeleteOrgPermissionPayloadSelect = {
2606
3804
  select: OrgPermissionEdgeSelect;
2607
3805
  };
2608
3806
  };
3807
+ export interface CreateOrgPermissionDefaultPermissionPayload {
3808
+ clientMutationId?: string | null;
3809
+ /** The `OrgPermissionDefaultPermission` that was created by this mutation. */
3810
+ orgPermissionDefaultPermission?: OrgPermissionDefaultPermission | null;
3811
+ orgPermissionDefaultPermissionEdge?: OrgPermissionDefaultPermissionEdge | null;
3812
+ }
3813
+ export type CreateOrgPermissionDefaultPermissionPayloadSelect = {
3814
+ clientMutationId?: boolean;
3815
+ orgPermissionDefaultPermission?: {
3816
+ select: OrgPermissionDefaultPermissionSelect;
3817
+ };
3818
+ orgPermissionDefaultPermissionEdge?: {
3819
+ select: OrgPermissionDefaultPermissionEdgeSelect;
3820
+ };
3821
+ };
3822
+ export interface UpdateOrgPermissionDefaultPermissionPayload {
3823
+ clientMutationId?: string | null;
3824
+ /** The `OrgPermissionDefaultPermission` that was updated by this mutation. */
3825
+ orgPermissionDefaultPermission?: OrgPermissionDefaultPermission | null;
3826
+ orgPermissionDefaultPermissionEdge?: OrgPermissionDefaultPermissionEdge | null;
3827
+ }
3828
+ export type UpdateOrgPermissionDefaultPermissionPayloadSelect = {
3829
+ clientMutationId?: boolean;
3830
+ orgPermissionDefaultPermission?: {
3831
+ select: OrgPermissionDefaultPermissionSelect;
3832
+ };
3833
+ orgPermissionDefaultPermissionEdge?: {
3834
+ select: OrgPermissionDefaultPermissionEdgeSelect;
3835
+ };
3836
+ };
3837
+ export interface DeleteOrgPermissionDefaultPermissionPayload {
3838
+ clientMutationId?: string | null;
3839
+ /** The `OrgPermissionDefaultPermission` that was deleted by this mutation. */
3840
+ orgPermissionDefaultPermission?: OrgPermissionDefaultPermission | null;
3841
+ orgPermissionDefaultPermissionEdge?: OrgPermissionDefaultPermissionEdge | null;
3842
+ }
3843
+ export type DeleteOrgPermissionDefaultPermissionPayloadSelect = {
3844
+ clientMutationId?: boolean;
3845
+ orgPermissionDefaultPermission?: {
3846
+ select: OrgPermissionDefaultPermissionSelect;
3847
+ };
3848
+ orgPermissionDefaultPermissionEdge?: {
3849
+ select: OrgPermissionDefaultPermissionEdgeSelect;
3850
+ };
3851
+ };
3852
+ export interface CreateOrgPermissionDefaultGrantPayload {
3853
+ clientMutationId?: string | null;
3854
+ /** The `OrgPermissionDefaultGrant` that was created by this mutation. */
3855
+ orgPermissionDefaultGrant?: OrgPermissionDefaultGrant | null;
3856
+ orgPermissionDefaultGrantEdge?: OrgPermissionDefaultGrantEdge | null;
3857
+ }
3858
+ export type CreateOrgPermissionDefaultGrantPayloadSelect = {
3859
+ clientMutationId?: boolean;
3860
+ orgPermissionDefaultGrant?: {
3861
+ select: OrgPermissionDefaultGrantSelect;
3862
+ };
3863
+ orgPermissionDefaultGrantEdge?: {
3864
+ select: OrgPermissionDefaultGrantEdgeSelect;
3865
+ };
3866
+ };
3867
+ export interface UpdateOrgPermissionDefaultGrantPayload {
3868
+ clientMutationId?: string | null;
3869
+ /** The `OrgPermissionDefaultGrant` that was updated by this mutation. */
3870
+ orgPermissionDefaultGrant?: OrgPermissionDefaultGrant | null;
3871
+ orgPermissionDefaultGrantEdge?: OrgPermissionDefaultGrantEdge | null;
3872
+ }
3873
+ export type UpdateOrgPermissionDefaultGrantPayloadSelect = {
3874
+ clientMutationId?: boolean;
3875
+ orgPermissionDefaultGrant?: {
3876
+ select: OrgPermissionDefaultGrantSelect;
3877
+ };
3878
+ orgPermissionDefaultGrantEdge?: {
3879
+ select: OrgPermissionDefaultGrantEdgeSelect;
3880
+ };
3881
+ };
3882
+ export interface DeleteOrgPermissionDefaultGrantPayload {
3883
+ clientMutationId?: string | null;
3884
+ /** The `OrgPermissionDefaultGrant` that was deleted by this mutation. */
3885
+ orgPermissionDefaultGrant?: OrgPermissionDefaultGrant | null;
3886
+ orgPermissionDefaultGrantEdge?: OrgPermissionDefaultGrantEdge | null;
3887
+ }
3888
+ export type DeleteOrgPermissionDefaultGrantPayloadSelect = {
3889
+ clientMutationId?: boolean;
3890
+ orgPermissionDefaultGrant?: {
3891
+ select: OrgPermissionDefaultGrantSelect;
3892
+ };
3893
+ orgPermissionDefaultGrantEdge?: {
3894
+ select: OrgPermissionDefaultGrantEdgeSelect;
3895
+ };
3896
+ };
2609
3897
  export interface CreateOrgMemberPayload {
2610
3898
  clientMutationId?: string | null;
2611
3899
  /** The `OrgMember` that was created by this mutation. */
@@ -2741,6 +4029,51 @@ export type DeleteOrgPermissionDefaultPayloadSelect = {
2741
4029
  select: OrgPermissionDefaultEdgeSelect;
2742
4030
  };
2743
4031
  };
4032
+ export interface CreateAppPermissionDefaultPermissionPayload {
4033
+ clientMutationId?: string | null;
4034
+ /** The `AppPermissionDefaultPermission` that was created by this mutation. */
4035
+ appPermissionDefaultPermission?: AppPermissionDefaultPermission | null;
4036
+ appPermissionDefaultPermissionEdge?: AppPermissionDefaultPermissionEdge | null;
4037
+ }
4038
+ export type CreateAppPermissionDefaultPermissionPayloadSelect = {
4039
+ clientMutationId?: boolean;
4040
+ appPermissionDefaultPermission?: {
4041
+ select: AppPermissionDefaultPermissionSelect;
4042
+ };
4043
+ appPermissionDefaultPermissionEdge?: {
4044
+ select: AppPermissionDefaultPermissionEdgeSelect;
4045
+ };
4046
+ };
4047
+ export interface UpdateAppPermissionDefaultPermissionPayload {
4048
+ clientMutationId?: string | null;
4049
+ /** The `AppPermissionDefaultPermission` that was updated by this mutation. */
4050
+ appPermissionDefaultPermission?: AppPermissionDefaultPermission | null;
4051
+ appPermissionDefaultPermissionEdge?: AppPermissionDefaultPermissionEdge | null;
4052
+ }
4053
+ export type UpdateAppPermissionDefaultPermissionPayloadSelect = {
4054
+ clientMutationId?: boolean;
4055
+ appPermissionDefaultPermission?: {
4056
+ select: AppPermissionDefaultPermissionSelect;
4057
+ };
4058
+ appPermissionDefaultPermissionEdge?: {
4059
+ select: AppPermissionDefaultPermissionEdgeSelect;
4060
+ };
4061
+ };
4062
+ export interface DeleteAppPermissionDefaultPermissionPayload {
4063
+ clientMutationId?: string | null;
4064
+ /** The `AppPermissionDefaultPermission` that was deleted by this mutation. */
4065
+ appPermissionDefaultPermission?: AppPermissionDefaultPermission | null;
4066
+ appPermissionDefaultPermissionEdge?: AppPermissionDefaultPermissionEdge | null;
4067
+ }
4068
+ export type DeleteAppPermissionDefaultPermissionPayloadSelect = {
4069
+ clientMutationId?: boolean;
4070
+ appPermissionDefaultPermission?: {
4071
+ select: AppPermissionDefaultPermissionSelect;
4072
+ };
4073
+ appPermissionDefaultPermissionEdge?: {
4074
+ select: AppPermissionDefaultPermissionEdgeSelect;
4075
+ };
4076
+ };
2744
4077
  export interface CreateAppAdminGrantPayload {
2745
4078
  clientMutationId?: string | null;
2746
4079
  /** The `AppAdminGrant` that was created by this mutation. */
@@ -3416,51 +4749,6 @@ export type DeleteAppMembershipPayloadSelect = {
3416
4749
  select: AppMembershipEdgeSelect;
3417
4750
  };
3418
4751
  };
3419
- export interface CreateAppInvitePayload {
3420
- clientMutationId?: string | null;
3421
- /** The `AppInvite` that was created by this mutation. */
3422
- appInvite?: AppInvite | null;
3423
- appInviteEdge?: AppInviteEdge | null;
3424
- }
3425
- export type CreateAppInvitePayloadSelect = {
3426
- clientMutationId?: boolean;
3427
- appInvite?: {
3428
- select: AppInviteSelect;
3429
- };
3430
- appInviteEdge?: {
3431
- select: AppInviteEdgeSelect;
3432
- };
3433
- };
3434
- export interface UpdateAppInvitePayload {
3435
- clientMutationId?: string | null;
3436
- /** The `AppInvite` that was updated by this mutation. */
3437
- appInvite?: AppInvite | null;
3438
- appInviteEdge?: AppInviteEdge | null;
3439
- }
3440
- export type UpdateAppInvitePayloadSelect = {
3441
- clientMutationId?: boolean;
3442
- appInvite?: {
3443
- select: AppInviteSelect;
3444
- };
3445
- appInviteEdge?: {
3446
- select: AppInviteEdgeSelect;
3447
- };
3448
- };
3449
- export interface DeleteAppInvitePayload {
3450
- clientMutationId?: string | null;
3451
- /** The `AppInvite` that was deleted by this mutation. */
3452
- appInvite?: AppInvite | null;
3453
- appInviteEdge?: AppInviteEdge | null;
3454
- }
3455
- export type DeleteAppInvitePayloadSelect = {
3456
- clientMutationId?: boolean;
3457
- appInvite?: {
3458
- select: AppInviteSelect;
3459
- };
3460
- appInviteEdge?: {
3461
- select: AppInviteEdgeSelect;
3462
- };
3463
- };
3464
4752
  export interface CreateOrgMembershipPayload {
3465
4753
  clientMutationId?: string | null;
3466
4754
  /** The `OrgMembership` that was created by this mutation. */
@@ -3551,6 +4839,51 @@ export type DeleteOrgMemberProfilePayloadSelect = {
3551
4839
  select: OrgMemberProfileEdgeSelect;
3552
4840
  };
3553
4841
  };
4842
+ export interface CreateAppInvitePayload {
4843
+ clientMutationId?: string | null;
4844
+ /** The `AppInvite` that was created by this mutation. */
4845
+ appInvite?: AppInvite | null;
4846
+ appInviteEdge?: AppInviteEdge | null;
4847
+ }
4848
+ export type CreateAppInvitePayloadSelect = {
4849
+ clientMutationId?: boolean;
4850
+ appInvite?: {
4851
+ select: AppInviteSelect;
4852
+ };
4853
+ appInviteEdge?: {
4854
+ select: AppInviteEdgeSelect;
4855
+ };
4856
+ };
4857
+ export interface UpdateAppInvitePayload {
4858
+ clientMutationId?: string | null;
4859
+ /** The `AppInvite` that was updated by this mutation. */
4860
+ appInvite?: AppInvite | null;
4861
+ appInviteEdge?: AppInviteEdge | null;
4862
+ }
4863
+ export type UpdateAppInvitePayloadSelect = {
4864
+ clientMutationId?: boolean;
4865
+ appInvite?: {
4866
+ select: AppInviteSelect;
4867
+ };
4868
+ appInviteEdge?: {
4869
+ select: AppInviteEdgeSelect;
4870
+ };
4871
+ };
4872
+ export interface DeleteAppInvitePayload {
4873
+ clientMutationId?: string | null;
4874
+ /** The `AppInvite` that was deleted by this mutation. */
4875
+ appInvite?: AppInvite | null;
4876
+ appInviteEdge?: AppInviteEdge | null;
4877
+ }
4878
+ export type DeleteAppInvitePayloadSelect = {
4879
+ clientMutationId?: boolean;
4880
+ appInvite?: {
4881
+ select: AppInviteSelect;
4882
+ };
4883
+ appInviteEdge?: {
4884
+ select: AppInviteEdgeSelect;
4885
+ };
4886
+ };
3554
4887
  export interface CreateOrgInvitePayload {
3555
4888
  clientMutationId?: string | null;
3556
4889
  /** The `OrgInvite` that was created by this mutation. */
@@ -3637,6 +4970,42 @@ export type OrgPermissionEdgeSelect = {
3637
4970
  select: OrgPermissionSelect;
3638
4971
  };
3639
4972
  };
4973
+ /** A `AppPermissionDefaultGrant` edge in the connection. */
4974
+ export interface AppPermissionDefaultGrantEdge {
4975
+ cursor?: string | null;
4976
+ /** The `AppPermissionDefaultGrant` at the end of the edge. */
4977
+ node?: AppPermissionDefaultGrant | null;
4978
+ }
4979
+ export type AppPermissionDefaultGrantEdgeSelect = {
4980
+ cursor?: boolean;
4981
+ node?: {
4982
+ select: AppPermissionDefaultGrantSelect;
4983
+ };
4984
+ };
4985
+ /** A `OrgPermissionDefaultPermission` edge in the connection. */
4986
+ export interface OrgPermissionDefaultPermissionEdge {
4987
+ cursor?: string | null;
4988
+ /** The `OrgPermissionDefaultPermission` at the end of the edge. */
4989
+ node?: OrgPermissionDefaultPermission | null;
4990
+ }
4991
+ export type OrgPermissionDefaultPermissionEdgeSelect = {
4992
+ cursor?: boolean;
4993
+ node?: {
4994
+ select: OrgPermissionDefaultPermissionSelect;
4995
+ };
4996
+ };
4997
+ /** A `OrgPermissionDefaultGrant` edge in the connection. */
4998
+ export interface OrgPermissionDefaultGrantEdge {
4999
+ cursor?: string | null;
5000
+ /** The `OrgPermissionDefaultGrant` at the end of the edge. */
5001
+ node?: OrgPermissionDefaultGrant | null;
5002
+ }
5003
+ export type OrgPermissionDefaultGrantEdgeSelect = {
5004
+ cursor?: boolean;
5005
+ node?: {
5006
+ select: OrgPermissionDefaultGrantSelect;
5007
+ };
5008
+ };
3640
5009
  /** A `OrgMember` edge in the connection. */
3641
5010
  export interface OrgMemberEdge {
3642
5011
  cursor?: string | null;
@@ -3673,6 +5042,18 @@ export type OrgPermissionDefaultEdgeSelect = {
3673
5042
  select: OrgPermissionDefaultSelect;
3674
5043
  };
3675
5044
  };
5045
+ /** A `AppPermissionDefaultPermission` edge in the connection. */
5046
+ export interface AppPermissionDefaultPermissionEdge {
5047
+ cursor?: string | null;
5048
+ /** The `AppPermissionDefaultPermission` at the end of the edge. */
5049
+ node?: AppPermissionDefaultPermission | null;
5050
+ }
5051
+ export type AppPermissionDefaultPermissionEdgeSelect = {
5052
+ cursor?: boolean;
5053
+ node?: {
5054
+ select: AppPermissionDefaultPermissionSelect;
5055
+ };
5056
+ };
3676
5057
  /** A `AppAdminGrant` edge in the connection. */
3677
5058
  export interface AppAdminGrantEdge {
3678
5059
  cursor?: string | null;
@@ -3853,18 +5234,6 @@ export type AppMembershipEdgeSelect = {
3853
5234
  select: AppMembershipSelect;
3854
5235
  };
3855
5236
  };
3856
- /** A `AppInvite` edge in the connection. */
3857
- export interface AppInviteEdge {
3858
- cursor?: string | null;
3859
- /** The `AppInvite` at the end of the edge. */
3860
- node?: AppInvite | null;
3861
- }
3862
- export type AppInviteEdgeSelect = {
3863
- cursor?: boolean;
3864
- node?: {
3865
- select: AppInviteSelect;
3866
- };
3867
- };
3868
5237
  /** A `OrgMembership` edge in the connection. */
3869
5238
  export interface OrgMembershipEdge {
3870
5239
  cursor?: string | null;
@@ -3889,6 +5258,18 @@ export type OrgMemberProfileEdgeSelect = {
3889
5258
  select: OrgMemberProfileSelect;
3890
5259
  };
3891
5260
  };
5261
+ /** A `AppInvite` edge in the connection. */
5262
+ export interface AppInviteEdge {
5263
+ cursor?: string | null;
5264
+ /** The `AppInvite` at the end of the edge. */
5265
+ node?: AppInvite | null;
5266
+ }
5267
+ export type AppInviteEdgeSelect = {
5268
+ cursor?: boolean;
5269
+ node?: {
5270
+ select: AppInviteSelect;
5271
+ };
5272
+ };
3892
5273
  /** A `OrgInvite` edge in the connection. */
3893
5274
  export interface OrgInviteEdge {
3894
5275
  cursor?: string | null;