@constructive-io/sdk 0.21.5 → 0.21.6

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.
@@ -43,8 +43,8 @@ import { AppInviteModel } from './models/appInvite';
43
43
  import { OrgMembershipSettingModel } from './models/orgMembershipSetting';
44
44
  import { OrgLimitAggregateModel } from './models/orgLimitAggregate';
45
45
  import { OrgLimitModel } from './models/orgLimit';
46
- import { OrgInviteModel } from './models/orgInvite';
47
46
  import { AppMembershipModel } from './models/appMembership';
47
+ import { OrgInviteModel } from './models/orgInvite';
48
48
  import { OrgMembershipModel } from './models/orgMembership';
49
49
  export type { OrmClientConfig, QueryResult, GraphQLError, GraphQLAdapter } from './client';
50
50
  export { GraphQLRequestError } from './client';
@@ -121,8 +121,8 @@ export declare function createClient(config: OrmClientConfig): {
121
121
  orgMembershipSetting: OrgMembershipSettingModel;
122
122
  orgLimitAggregate: OrgLimitAggregateModel;
123
123
  orgLimit: OrgLimitModel;
124
- orgInvite: OrgInviteModel;
125
124
  appMembership: AppMembershipModel;
125
+ orgInvite: OrgInviteModel;
126
126
  orgMembership: OrgMembershipModel;
127
127
  query: {
128
128
  appPermissionsGetPaddedMask: (args: import("./query").AppPermissionsGetPaddedMaskVariables, options?: {
@@ -66,8 +66,8 @@ const appInvite_1 = require("./models/appInvite");
66
66
  const orgMembershipSetting_1 = require("./models/orgMembershipSetting");
67
67
  const orgLimitAggregate_1 = require("./models/orgLimitAggregate");
68
68
  const orgLimit_1 = require("./models/orgLimit");
69
- const orgInvite_1 = require("./models/orgInvite");
70
69
  const appMembership_1 = require("./models/appMembership");
70
+ const orgInvite_1 = require("./models/orgInvite");
71
71
  const orgMembership_1 = require("./models/orgMembership");
72
72
  const query_1 = require("./query");
73
73
  const mutation_1 = require("./mutation");
@@ -151,8 +151,8 @@ function createClient(config) {
151
151
  orgMembershipSetting: new orgMembershipSetting_1.OrgMembershipSettingModel(client),
152
152
  orgLimitAggregate: new orgLimitAggregate_1.OrgLimitAggregateModel(client),
153
153
  orgLimit: new orgLimit_1.OrgLimitModel(client),
154
- orgInvite: new orgInvite_1.OrgInviteModel(client),
155
154
  appMembership: new appMembership_1.AppMembershipModel(client),
155
+ orgInvite: new orgInvite_1.OrgInviteModel(client),
156
156
  orgMembership: new orgMembership_1.OrgMembershipModel(client),
157
157
  query: (0, query_1.createQueryOperations)(client),
158
158
  mutation: (0, mutation_1.createMutationOperations)(client),
@@ -838,35 +838,6 @@ export interface OrgLimit {
838
838
  periodCredits?: string | null;
839
839
  entityId?: string | null;
840
840
  }
841
- /** Invitation records sent to prospective members via email, with token-based redemption and expiration */
842
- export interface OrgInvite {
843
- id: string;
844
- /** Email address of the invited recipient */
845
- email?: ConstructiveInternalTypeEmail | null;
846
- /** User ID of the member who sent this invitation */
847
- senderId?: string | null;
848
- /** User ID of the intended recipient, if targeting a specific user */
849
- receiverId?: string | null;
850
- /** Unique random hex token used to redeem this invitation */
851
- inviteToken?: string | null;
852
- /** Whether this invitation is still valid and can be redeemed */
853
- inviteValid?: boolean | null;
854
- /** Maximum number of times this invite can be claimed; -1 means unlimited */
855
- inviteLimit?: number | null;
856
- /** Running count of how many times this invite has been claimed */
857
- inviteCount?: number | null;
858
- /** Whether this invite can be claimed by multiple recipients */
859
- multiple?: boolean | null;
860
- /** Optional JSON payload of additional invite metadata */
861
- data?: Record<string, unknown> | null;
862
- /** Optional profile (role) to assign to the member when they claim this invite. Only allowed on email invites. */
863
- profileId?: string | null;
864
- /** Timestamp after which this invitation can no longer be redeemed */
865
- expiresAt?: string | null;
866
- createdAt?: string | null;
867
- updatedAt?: string | null;
868
- entityId?: string | null;
869
- }
870
841
  /** Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status */
871
842
  export interface AppMembership {
872
843
  id: string;
@@ -896,6 +867,37 @@ export interface AppMembership {
896
867
  actorId?: string | null;
897
868
  profileId?: string | null;
898
869
  }
870
+ /** Invitation records sent to prospective members via email, with token-based redemption and expiration */
871
+ export interface OrgInvite {
872
+ id: string;
873
+ /** Email address of the invited recipient */
874
+ email?: ConstructiveInternalTypeEmail | null;
875
+ /** User ID of the member who sent this invitation */
876
+ senderId?: string | null;
877
+ /** User ID of the intended recipient, if targeting a specific user */
878
+ receiverId?: string | null;
879
+ /** Unique random hex token used to redeem this invitation */
880
+ inviteToken?: string | null;
881
+ /** Whether this invitation is still valid and can be redeemed */
882
+ inviteValid?: boolean | null;
883
+ /** Maximum number of times this invite can be claimed; -1 means unlimited */
884
+ inviteLimit?: number | null;
885
+ /** Running count of how many times this invite has been claimed */
886
+ inviteCount?: number | null;
887
+ /** Whether this invite can be claimed by multiple recipients */
888
+ multiple?: boolean | null;
889
+ /** Optional JSON payload of additional invite metadata */
890
+ data?: Record<string, unknown> | null;
891
+ /** Optional profile (role) to assign to the member when they claim this invite. Only allowed on email invites. */
892
+ profileId?: string | null;
893
+ /** Whether the resulting membership should be read-only when this invite is claimed */
894
+ isReadOnly?: boolean | null;
895
+ /** Timestamp after which this invitation can no longer be redeemed */
896
+ expiresAt?: string | null;
897
+ createdAt?: string | null;
898
+ updatedAt?: string | null;
899
+ entityId?: string | null;
900
+ }
899
901
  /** Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status */
900
902
  export interface OrgMembership {
901
903
  id: string;
@@ -1039,10 +1041,10 @@ export interface OrgLimitAggregateRelations {
1039
1041
  }
1040
1042
  export interface OrgLimitRelations {
1041
1043
  }
1042
- export interface OrgInviteRelations {
1043
- }
1044
1044
  export interface AppMembershipRelations {
1045
1045
  }
1046
+ export interface OrgInviteRelations {
1047
+ }
1046
1048
  export interface OrgMembershipRelations {
1047
1049
  orgMemberProfileByMembershipId?: OrgMemberProfile | null;
1048
1050
  }
@@ -1090,8 +1092,8 @@ export type AppInviteWithRelations = AppInvite & AppInviteRelations;
1090
1092
  export type OrgMembershipSettingWithRelations = OrgMembershipSetting & OrgMembershipSettingRelations;
1091
1093
  export type OrgLimitAggregateWithRelations = OrgLimitAggregate & OrgLimitAggregateRelations;
1092
1094
  export type OrgLimitWithRelations = OrgLimit & OrgLimitRelations;
1093
- export type OrgInviteWithRelations = OrgInvite & OrgInviteRelations;
1094
1095
  export type AppMembershipWithRelations = AppMembership & AppMembershipRelations;
1096
+ export type OrgInviteWithRelations = OrgInvite & OrgInviteRelations;
1095
1097
  export type OrgMembershipWithRelations = OrgMembership & OrgMembershipRelations;
1096
1098
  export type OrgGetManagersRecordSelect = {
1097
1099
  userId?: boolean;
@@ -1515,23 +1517,6 @@ export type OrgLimitSelect = {
1515
1517
  periodCredits?: boolean;
1516
1518
  entityId?: boolean;
1517
1519
  };
1518
- export type OrgInviteSelect = {
1519
- id?: boolean;
1520
- email?: boolean;
1521
- senderId?: boolean;
1522
- receiverId?: boolean;
1523
- inviteToken?: boolean;
1524
- inviteValid?: boolean;
1525
- inviteLimit?: boolean;
1526
- inviteCount?: boolean;
1527
- multiple?: boolean;
1528
- data?: boolean;
1529
- profileId?: boolean;
1530
- expiresAt?: boolean;
1531
- createdAt?: boolean;
1532
- updatedAt?: boolean;
1533
- entityId?: boolean;
1534
- };
1535
1520
  export type AppMembershipSelect = {
1536
1521
  id?: boolean;
1537
1522
  createdAt?: boolean;
@@ -1550,6 +1535,24 @@ export type AppMembershipSelect = {
1550
1535
  actorId?: boolean;
1551
1536
  profileId?: boolean;
1552
1537
  };
1538
+ export type OrgInviteSelect = {
1539
+ id?: boolean;
1540
+ email?: boolean;
1541
+ senderId?: boolean;
1542
+ receiverId?: boolean;
1543
+ inviteToken?: boolean;
1544
+ inviteValid?: boolean;
1545
+ inviteLimit?: boolean;
1546
+ inviteCount?: boolean;
1547
+ multiple?: boolean;
1548
+ data?: boolean;
1549
+ profileId?: boolean;
1550
+ isReadOnly?: boolean;
1551
+ expiresAt?: boolean;
1552
+ createdAt?: boolean;
1553
+ updatedAt?: boolean;
1554
+ entityId?: boolean;
1555
+ };
1553
1556
  export type OrgMembershipSelect = {
1554
1557
  id?: boolean;
1555
1558
  createdAt?: boolean;
@@ -2513,42 +2516,6 @@ export interface OrgLimitFilter {
2513
2516
  /** Negates the expression. */
2514
2517
  not?: OrgLimitFilter;
2515
2518
  }
2516
- export interface OrgInviteFilter {
2517
- /** Filter by the object’s `id` field. */
2518
- id?: UUIDFilter;
2519
- /** Filter by the object’s `email` field. */
2520
- email?: ConstructiveInternalTypeEmailFilter;
2521
- /** Filter by the object’s `senderId` field. */
2522
- senderId?: UUIDFilter;
2523
- /** Filter by the object’s `receiverId` field. */
2524
- receiverId?: UUIDFilter;
2525
- /** Filter by the object’s `inviteToken` field. */
2526
- inviteToken?: StringFilter;
2527
- /** Filter by the object’s `inviteValid` field. */
2528
- inviteValid?: BooleanFilter;
2529
- /** Filter by the object’s `inviteLimit` field. */
2530
- inviteLimit?: IntFilter;
2531
- /** Filter by the object’s `inviteCount` field. */
2532
- inviteCount?: IntFilter;
2533
- /** Filter by the object’s `multiple` field. */
2534
- multiple?: BooleanFilter;
2535
- /** Filter by the object’s `profileId` field. */
2536
- profileId?: UUIDFilter;
2537
- /** Filter by the object’s `expiresAt` field. */
2538
- expiresAt?: DatetimeFilter;
2539
- /** Filter by the object’s `createdAt` field. */
2540
- createdAt?: DatetimeFilter;
2541
- /** Filter by the object’s `updatedAt` field. */
2542
- updatedAt?: DatetimeFilter;
2543
- /** Filter by the object’s `entityId` field. */
2544
- entityId?: UUIDFilter;
2545
- /** Checks for all expressions in this list. */
2546
- and?: OrgInviteFilter[];
2547
- /** Checks for any expressions in this list. */
2548
- or?: OrgInviteFilter[];
2549
- /** Negates the expression. */
2550
- not?: OrgInviteFilter;
2551
- }
2552
2519
  export interface AppMembershipFilter {
2553
2520
  /** Filter by the object’s `id` field. */
2554
2521
  id?: UUIDFilter;
@@ -2589,6 +2556,44 @@ export interface AppMembershipFilter {
2589
2556
  /** Negates the expression. */
2590
2557
  not?: AppMembershipFilter;
2591
2558
  }
2559
+ export interface OrgInviteFilter {
2560
+ /** Filter by the object’s `id` field. */
2561
+ id?: UUIDFilter;
2562
+ /** Filter by the object’s `email` field. */
2563
+ email?: ConstructiveInternalTypeEmailFilter;
2564
+ /** Filter by the object’s `senderId` field. */
2565
+ senderId?: UUIDFilter;
2566
+ /** Filter by the object’s `receiverId` field. */
2567
+ receiverId?: UUIDFilter;
2568
+ /** Filter by the object’s `inviteToken` field. */
2569
+ inviteToken?: StringFilter;
2570
+ /** Filter by the object’s `inviteValid` field. */
2571
+ inviteValid?: BooleanFilter;
2572
+ /** Filter by the object’s `inviteLimit` field. */
2573
+ inviteLimit?: IntFilter;
2574
+ /** Filter by the object’s `inviteCount` field. */
2575
+ inviteCount?: IntFilter;
2576
+ /** Filter by the object’s `multiple` field. */
2577
+ multiple?: BooleanFilter;
2578
+ /** Filter by the object’s `profileId` field. */
2579
+ profileId?: UUIDFilter;
2580
+ /** Filter by the object’s `isReadOnly` field. */
2581
+ isReadOnly?: BooleanFilter;
2582
+ /** Filter by the object’s `expiresAt` field. */
2583
+ expiresAt?: DatetimeFilter;
2584
+ /** Filter by the object’s `createdAt` field. */
2585
+ createdAt?: DatetimeFilter;
2586
+ /** Filter by the object’s `updatedAt` field. */
2587
+ updatedAt?: DatetimeFilter;
2588
+ /** Filter by the object’s `entityId` field. */
2589
+ entityId?: UUIDFilter;
2590
+ /** Checks for all expressions in this list. */
2591
+ and?: OrgInviteFilter[];
2592
+ /** Checks for any expressions in this list. */
2593
+ or?: OrgInviteFilter[];
2594
+ /** Negates the expression. */
2595
+ not?: OrgInviteFilter;
2596
+ }
2592
2597
  export interface OrgMembershipFilter {
2593
2598
  /** Filter by the object’s `id` field. */
2594
2599
  id?: UUIDFilter;
@@ -2681,8 +2686,8 @@ export type AppInviteOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC
2681
2686
  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';
2682
2687
  export type OrgLimitAggregateOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC' | 'NUM_ASC' | 'NUM_DESC' | 'MAX_ASC' | 'MAX_DESC' | 'SOFT_MAX_ASC' | 'SOFT_MAX_DESC' | 'WINDOW_START_ASC' | 'WINDOW_START_DESC' | 'WINDOW_DURATION_ASC' | 'WINDOW_DURATION_DESC' | 'PLAN_MAX_ASC' | 'PLAN_MAX_DESC' | 'PURCHASED_CREDITS_ASC' | 'PURCHASED_CREDITS_DESC' | 'PERIOD_CREDITS_ASC' | 'PERIOD_CREDITS_DESC' | 'RESERVED_ASC' | 'RESERVED_DESC';
2683
2688
  export type OrgLimitOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' | 'NUM_ASC' | 'NUM_DESC' | 'MAX_ASC' | 'MAX_DESC' | 'SOFT_MAX_ASC' | 'SOFT_MAX_DESC' | 'WINDOW_START_ASC' | 'WINDOW_START_DESC' | 'WINDOW_DURATION_ASC' | 'WINDOW_DURATION_DESC' | 'PLAN_MAX_ASC' | 'PLAN_MAX_DESC' | 'PURCHASED_CREDITS_ASC' | 'PURCHASED_CREDITS_DESC' | 'PERIOD_CREDITS_ASC' | 'PERIOD_CREDITS_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC';
2684
- 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' | 'EXPIRES_AT_ASC' | 'EXPIRES_AT_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC';
2685
2689
  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';
2690
+ 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';
2686
2691
  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';
2687
2692
  export interface CreateOrgGetManagersRecordInput {
2688
2693
  clientMutationId?: string;
@@ -3808,46 +3813,6 @@ export interface DeleteOrgLimitInput {
3808
3813
  clientMutationId?: string;
3809
3814
  id: string;
3810
3815
  }
3811
- export interface CreateOrgInviteInput {
3812
- clientMutationId?: string;
3813
- orgInvite: {
3814
- email?: ConstructiveInternalTypeEmail;
3815
- senderId?: string;
3816
- receiverId?: string;
3817
- inviteToken?: string;
3818
- inviteValid?: boolean;
3819
- inviteLimit?: number;
3820
- inviteCount?: number;
3821
- multiple?: boolean;
3822
- data?: Record<string, unknown>;
3823
- profileId?: string;
3824
- expiresAt?: string;
3825
- entityId: string;
3826
- };
3827
- }
3828
- export interface OrgInvitePatch {
3829
- email?: ConstructiveInternalTypeEmail | null;
3830
- senderId?: string | null;
3831
- receiverId?: string | null;
3832
- inviteToken?: string | null;
3833
- inviteValid?: boolean | null;
3834
- inviteLimit?: number | null;
3835
- inviteCount?: number | null;
3836
- multiple?: boolean | null;
3837
- data?: Record<string, unknown> | null;
3838
- profileId?: string | null;
3839
- expiresAt?: string | null;
3840
- entityId?: string | null;
3841
- }
3842
- export interface UpdateOrgInviteInput {
3843
- clientMutationId?: string;
3844
- id: string;
3845
- orgInvitePatch: OrgInvitePatch;
3846
- }
3847
- export interface DeleteOrgInviteInput {
3848
- clientMutationId?: string;
3849
- id: string;
3850
- }
3851
3816
  export interface CreateAppMembershipInput {
3852
3817
  clientMutationId?: string;
3853
3818
  appMembership: {
@@ -3890,6 +3855,48 @@ export interface DeleteAppMembershipInput {
3890
3855
  clientMutationId?: string;
3891
3856
  id: string;
3892
3857
  }
3858
+ export interface CreateOrgInviteInput {
3859
+ clientMutationId?: string;
3860
+ orgInvite: {
3861
+ email?: ConstructiveInternalTypeEmail;
3862
+ senderId?: string;
3863
+ receiverId?: string;
3864
+ inviteToken?: string;
3865
+ inviteValid?: boolean;
3866
+ inviteLimit?: number;
3867
+ inviteCount?: number;
3868
+ multiple?: boolean;
3869
+ data?: Record<string, unknown>;
3870
+ profileId?: string;
3871
+ isReadOnly?: boolean;
3872
+ expiresAt?: string;
3873
+ entityId: string;
3874
+ };
3875
+ }
3876
+ export interface OrgInvitePatch {
3877
+ email?: ConstructiveInternalTypeEmail | null;
3878
+ senderId?: string | null;
3879
+ receiverId?: string | null;
3880
+ inviteToken?: string | null;
3881
+ inviteValid?: boolean | null;
3882
+ inviteLimit?: number | null;
3883
+ inviteCount?: number | null;
3884
+ multiple?: boolean | null;
3885
+ data?: Record<string, unknown> | null;
3886
+ profileId?: string | null;
3887
+ isReadOnly?: boolean | null;
3888
+ expiresAt?: string | null;
3889
+ entityId?: string | null;
3890
+ }
3891
+ export interface UpdateOrgInviteInput {
3892
+ clientMutationId?: string;
3893
+ id: string;
3894
+ orgInvitePatch: OrgInvitePatch;
3895
+ }
3896
+ export interface DeleteOrgInviteInput {
3897
+ clientMutationId?: string;
3898
+ id: string;
3899
+ }
3893
3900
  export interface CreateOrgMembershipInput {
3894
3901
  clientMutationId?: string;
3895
3902
  orgMembership: {
@@ -6410,51 +6417,6 @@ export type DeleteOrgLimitPayloadSelect = {
6410
6417
  select: OrgLimitEdgeSelect;
6411
6418
  };
6412
6419
  };
6413
- export interface CreateOrgInvitePayload {
6414
- clientMutationId?: string | null;
6415
- /** The `OrgInvite` that was created by this mutation. */
6416
- orgInvite?: OrgInvite | null;
6417
- orgInviteEdge?: OrgInviteEdge | null;
6418
- }
6419
- export type CreateOrgInvitePayloadSelect = {
6420
- clientMutationId?: boolean;
6421
- orgInvite?: {
6422
- select: OrgInviteSelect;
6423
- };
6424
- orgInviteEdge?: {
6425
- select: OrgInviteEdgeSelect;
6426
- };
6427
- };
6428
- export interface UpdateOrgInvitePayload {
6429
- clientMutationId?: string | null;
6430
- /** The `OrgInvite` that was updated by this mutation. */
6431
- orgInvite?: OrgInvite | null;
6432
- orgInviteEdge?: OrgInviteEdge | null;
6433
- }
6434
- export type UpdateOrgInvitePayloadSelect = {
6435
- clientMutationId?: boolean;
6436
- orgInvite?: {
6437
- select: OrgInviteSelect;
6438
- };
6439
- orgInviteEdge?: {
6440
- select: OrgInviteEdgeSelect;
6441
- };
6442
- };
6443
- export interface DeleteOrgInvitePayload {
6444
- clientMutationId?: string | null;
6445
- /** The `OrgInvite` that was deleted by this mutation. */
6446
- orgInvite?: OrgInvite | null;
6447
- orgInviteEdge?: OrgInviteEdge | null;
6448
- }
6449
- export type DeleteOrgInvitePayloadSelect = {
6450
- clientMutationId?: boolean;
6451
- orgInvite?: {
6452
- select: OrgInviteSelect;
6453
- };
6454
- orgInviteEdge?: {
6455
- select: OrgInviteEdgeSelect;
6456
- };
6457
- };
6458
6420
  export interface CreateAppMembershipPayload {
6459
6421
  clientMutationId?: string | null;
6460
6422
  /** The `AppMembership` that was created by this mutation. */
@@ -6500,6 +6462,51 @@ export type DeleteAppMembershipPayloadSelect = {
6500
6462
  select: AppMembershipEdgeSelect;
6501
6463
  };
6502
6464
  };
6465
+ export interface CreateOrgInvitePayload {
6466
+ clientMutationId?: string | null;
6467
+ /** The `OrgInvite` that was created by this mutation. */
6468
+ orgInvite?: OrgInvite | null;
6469
+ orgInviteEdge?: OrgInviteEdge | null;
6470
+ }
6471
+ export type CreateOrgInvitePayloadSelect = {
6472
+ clientMutationId?: boolean;
6473
+ orgInvite?: {
6474
+ select: OrgInviteSelect;
6475
+ };
6476
+ orgInviteEdge?: {
6477
+ select: OrgInviteEdgeSelect;
6478
+ };
6479
+ };
6480
+ export interface UpdateOrgInvitePayload {
6481
+ clientMutationId?: string | null;
6482
+ /** The `OrgInvite` that was updated by this mutation. */
6483
+ orgInvite?: OrgInvite | null;
6484
+ orgInviteEdge?: OrgInviteEdge | null;
6485
+ }
6486
+ export type UpdateOrgInvitePayloadSelect = {
6487
+ clientMutationId?: boolean;
6488
+ orgInvite?: {
6489
+ select: OrgInviteSelect;
6490
+ };
6491
+ orgInviteEdge?: {
6492
+ select: OrgInviteEdgeSelect;
6493
+ };
6494
+ };
6495
+ export interface DeleteOrgInvitePayload {
6496
+ clientMutationId?: string | null;
6497
+ /** The `OrgInvite` that was deleted by this mutation. */
6498
+ orgInvite?: OrgInvite | null;
6499
+ orgInviteEdge?: OrgInviteEdge | null;
6500
+ }
6501
+ export type DeleteOrgInvitePayloadSelect = {
6502
+ clientMutationId?: boolean;
6503
+ orgInvite?: {
6504
+ select: OrgInviteSelect;
6505
+ };
6506
+ orgInviteEdge?: {
6507
+ select: OrgInviteEdgeSelect;
6508
+ };
6509
+ };
6503
6510
  export interface CreateOrgMembershipPayload {
6504
6511
  clientMutationId?: string | null;
6505
6512
  /** The `OrgMembership` that was created by this mutation. */
@@ -7042,18 +7049,6 @@ export type OrgLimitEdgeSelect = {
7042
7049
  select: OrgLimitSelect;
7043
7050
  };
7044
7051
  };
7045
- /** A `OrgInvite` edge in the connection. */
7046
- export interface OrgInviteEdge {
7047
- cursor?: string | null;
7048
- /** The `OrgInvite` at the end of the edge. */
7049
- node?: OrgInvite | null;
7050
- }
7051
- export type OrgInviteEdgeSelect = {
7052
- cursor?: boolean;
7053
- node?: {
7054
- select: OrgInviteSelect;
7055
- };
7056
- };
7057
7052
  /** A `AppMembership` edge in the connection. */
7058
7053
  export interface AppMembershipEdge {
7059
7054
  cursor?: string | null;
@@ -7066,6 +7061,18 @@ export type AppMembershipEdgeSelect = {
7066
7061
  select: AppMembershipSelect;
7067
7062
  };
7068
7063
  };
7064
+ /** A `OrgInvite` edge in the connection. */
7065
+ export interface OrgInviteEdge {
7066
+ cursor?: string | null;
7067
+ /** The `OrgInvite` at the end of the edge. */
7068
+ node?: OrgInvite | null;
7069
+ }
7070
+ export type OrgInviteEdgeSelect = {
7071
+ cursor?: boolean;
7072
+ node?: {
7073
+ select: OrgInviteSelect;
7074
+ };
7075
+ };
7069
7076
  /** A `OrgMembership` edge in the connection. */
7070
7077
  export interface OrgMembershipEdge {
7071
7078
  cursor?: string | null;
@@ -47,6 +47,6 @@ export { AppInviteModel } from './appInvite';
47
47
  export { OrgMembershipSettingModel } from './orgMembershipSetting';
48
48
  export { OrgLimitAggregateModel } from './orgLimitAggregate';
49
49
  export { OrgLimitModel } from './orgLimit';
50
- export { OrgInviteModel } from './orgInvite';
51
50
  export { AppMembershipModel } from './appMembership';
51
+ export { OrgInviteModel } from './orgInvite';
52
52
  export { OrgMembershipModel } from './orgMembership';
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.OrgMembershipModel = exports.AppMembershipModel = exports.OrgInviteModel = exports.OrgLimitModel = exports.OrgLimitAggregateModel = exports.OrgMembershipSettingModel = exports.AppInviteModel = exports.AppLimitModel = exports.AppLevelModel = exports.OrgMemberProfileModel = exports.UsageSnapshotModel = exports.OrgChartEdgeModel = exports.OrgGrantModel = exports.OrgLimitEventModel = exports.AppLimitEventModel = exports.OrgClaimedInviteModel = exports.OrgMembershipDefaultModel = exports.AppMembershipDefaultModel = exports.AppGrantModel = exports.AppClaimedInviteModel = exports.OrgChartEdgeGrantModel = exports.OrgLimitCreditModel = exports.OrgLimitDefaultModel = exports.AppLimitDefaultModel = exports.MembershipTypeModel = exports.OrgOwnerGrantModel = exports.OrgAdminGrantModel = exports.OrgLimitCapModel = exports.AppLimitCapModel = exports.OrgLimitCapsDefaultModel = exports.AppLimitCapsDefaultModel = exports.AppStepModel = exports.AppAchievementModel = exports.AppOwnerGrantModel = exports.AppAdminGrantModel = exports.OrgPermissionDefaultModel = exports.AppLimitCreditCodeModel = exports.AppPermissionDefaultModel = exports.OrgMemberModel = exports.AppLimitCreditModel = exports.AppLimitCreditCodeItemModel = exports.AppLimitCreditRedemptionModel = exports.AppLevelRequirementModel = exports.OrgPermissionModel = exports.AppPermissionModel = exports.OrgGetSubordinatesRecordModel = exports.OrgGetManagersRecordModel = void 0;
3
+ exports.OrgMembershipModel = exports.OrgInviteModel = exports.AppMembershipModel = exports.OrgLimitModel = exports.OrgLimitAggregateModel = exports.OrgMembershipSettingModel = exports.AppInviteModel = exports.AppLimitModel = exports.AppLevelModel = exports.OrgMemberProfileModel = exports.UsageSnapshotModel = exports.OrgChartEdgeModel = exports.OrgGrantModel = exports.OrgLimitEventModel = exports.AppLimitEventModel = exports.OrgClaimedInviteModel = exports.OrgMembershipDefaultModel = exports.AppMembershipDefaultModel = exports.AppGrantModel = exports.AppClaimedInviteModel = exports.OrgChartEdgeGrantModel = exports.OrgLimitCreditModel = exports.OrgLimitDefaultModel = exports.AppLimitDefaultModel = exports.MembershipTypeModel = exports.OrgOwnerGrantModel = exports.OrgAdminGrantModel = exports.OrgLimitCapModel = exports.AppLimitCapModel = exports.OrgLimitCapsDefaultModel = exports.AppLimitCapsDefaultModel = exports.AppStepModel = exports.AppAchievementModel = exports.AppOwnerGrantModel = exports.AppAdminGrantModel = exports.OrgPermissionDefaultModel = exports.AppLimitCreditCodeModel = exports.AppPermissionDefaultModel = exports.OrgMemberModel = exports.AppLimitCreditModel = exports.AppLimitCreditCodeItemModel = exports.AppLimitCreditRedemptionModel = exports.AppLevelRequirementModel = exports.OrgPermissionModel = exports.AppPermissionModel = exports.OrgGetSubordinatesRecordModel = exports.OrgGetManagersRecordModel = void 0;
4
4
  /**
5
5
  * Models barrel export
6
6
  * @generated by @constructive-io/graphql-codegen
@@ -94,9 +94,9 @@ var orgLimitAggregate_1 = require("./orgLimitAggregate");
94
94
  Object.defineProperty(exports, "OrgLimitAggregateModel", { enumerable: true, get: function () { return orgLimitAggregate_1.OrgLimitAggregateModel; } });
95
95
  var orgLimit_1 = require("./orgLimit");
96
96
  Object.defineProperty(exports, "OrgLimitModel", { enumerable: true, get: function () { return orgLimit_1.OrgLimitModel; } });
97
- var orgInvite_1 = require("./orgInvite");
98
- Object.defineProperty(exports, "OrgInviteModel", { enumerable: true, get: function () { return orgInvite_1.OrgInviteModel; } });
99
97
  var appMembership_1 = require("./appMembership");
100
98
  Object.defineProperty(exports, "AppMembershipModel", { enumerable: true, get: function () { return appMembership_1.AppMembershipModel; } });
99
+ var orgInvite_1 = require("./orgInvite");
100
+ Object.defineProperty(exports, "OrgInviteModel", { enumerable: true, get: function () { return orgInvite_1.OrgInviteModel; } });
101
101
  var orgMembership_1 = require("./orgMembership");
102
102
  Object.defineProperty(exports, "OrgMembershipModel", { enumerable: true, get: function () { return orgMembership_1.OrgMembershipModel; } });
@@ -43,8 +43,8 @@ import { AppInviteModel } from './models/appInvite';
43
43
  import { OrgMembershipSettingModel } from './models/orgMembershipSetting';
44
44
  import { OrgLimitAggregateModel } from './models/orgLimitAggregate';
45
45
  import { OrgLimitModel } from './models/orgLimit';
46
- import { OrgInviteModel } from './models/orgInvite';
47
46
  import { AppMembershipModel } from './models/appMembership';
47
+ import { OrgInviteModel } from './models/orgInvite';
48
48
  import { OrgMembershipModel } from './models/orgMembership';
49
49
  export type { OrmClientConfig, QueryResult, GraphQLError, GraphQLAdapter } from './client';
50
50
  export { GraphQLRequestError } from './client';
@@ -121,8 +121,8 @@ export declare function createClient(config: OrmClientConfig): {
121
121
  orgMembershipSetting: OrgMembershipSettingModel;
122
122
  orgLimitAggregate: OrgLimitAggregateModel;
123
123
  orgLimit: OrgLimitModel;
124
- orgInvite: OrgInviteModel;
125
124
  appMembership: AppMembershipModel;
125
+ orgInvite: OrgInviteModel;
126
126
  orgMembership: OrgMembershipModel;
127
127
  query: {
128
128
  appPermissionsGetPaddedMask: (args: import("./query").AppPermissionsGetPaddedMaskVariables, options?: {
@@ -48,8 +48,8 @@ import { AppInviteModel } from './models/appInvite';
48
48
  import { OrgMembershipSettingModel } from './models/orgMembershipSetting';
49
49
  import { OrgLimitAggregateModel } from './models/orgLimitAggregate';
50
50
  import { OrgLimitModel } from './models/orgLimit';
51
- import { OrgInviteModel } from './models/orgInvite';
52
51
  import { AppMembershipModel } from './models/appMembership';
52
+ import { OrgInviteModel } from './models/orgInvite';
53
53
  import { OrgMembershipModel } from './models/orgMembership';
54
54
  import { createQueryOperations } from './query';
55
55
  import { createMutationOperations } from './mutation';
@@ -129,8 +129,8 @@ export function createClient(config) {
129
129
  orgMembershipSetting: new OrgMembershipSettingModel(client),
130
130
  orgLimitAggregate: new OrgLimitAggregateModel(client),
131
131
  orgLimit: new OrgLimitModel(client),
132
- orgInvite: new OrgInviteModel(client),
133
132
  appMembership: new AppMembershipModel(client),
133
+ orgInvite: new OrgInviteModel(client),
134
134
  orgMembership: new OrgMembershipModel(client),
135
135
  query: createQueryOperations(client),
136
136
  mutation: createMutationOperations(client),
@@ -838,35 +838,6 @@ export interface OrgLimit {
838
838
  periodCredits?: string | null;
839
839
  entityId?: string | null;
840
840
  }
841
- /** Invitation records sent to prospective members via email, with token-based redemption and expiration */
842
- export interface OrgInvite {
843
- id: string;
844
- /** Email address of the invited recipient */
845
- email?: ConstructiveInternalTypeEmail | null;
846
- /** User ID of the member who sent this invitation */
847
- senderId?: string | null;
848
- /** User ID of the intended recipient, if targeting a specific user */
849
- receiverId?: string | null;
850
- /** Unique random hex token used to redeem this invitation */
851
- inviteToken?: string | null;
852
- /** Whether this invitation is still valid and can be redeemed */
853
- inviteValid?: boolean | null;
854
- /** Maximum number of times this invite can be claimed; -1 means unlimited */
855
- inviteLimit?: number | null;
856
- /** Running count of how many times this invite has been claimed */
857
- inviteCount?: number | null;
858
- /** Whether this invite can be claimed by multiple recipients */
859
- multiple?: boolean | null;
860
- /** Optional JSON payload of additional invite metadata */
861
- data?: Record<string, unknown> | null;
862
- /** Optional profile (role) to assign to the member when they claim this invite. Only allowed on email invites. */
863
- profileId?: string | null;
864
- /** Timestamp after which this invitation can no longer be redeemed */
865
- expiresAt?: string | null;
866
- createdAt?: string | null;
867
- updatedAt?: string | null;
868
- entityId?: string | null;
869
- }
870
841
  /** Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status */
871
842
  export interface AppMembership {
872
843
  id: string;
@@ -896,6 +867,37 @@ export interface AppMembership {
896
867
  actorId?: string | null;
897
868
  profileId?: string | null;
898
869
  }
870
+ /** Invitation records sent to prospective members via email, with token-based redemption and expiration */
871
+ export interface OrgInvite {
872
+ id: string;
873
+ /** Email address of the invited recipient */
874
+ email?: ConstructiveInternalTypeEmail | null;
875
+ /** User ID of the member who sent this invitation */
876
+ senderId?: string | null;
877
+ /** User ID of the intended recipient, if targeting a specific user */
878
+ receiverId?: string | null;
879
+ /** Unique random hex token used to redeem this invitation */
880
+ inviteToken?: string | null;
881
+ /** Whether this invitation is still valid and can be redeemed */
882
+ inviteValid?: boolean | null;
883
+ /** Maximum number of times this invite can be claimed; -1 means unlimited */
884
+ inviteLimit?: number | null;
885
+ /** Running count of how many times this invite has been claimed */
886
+ inviteCount?: number | null;
887
+ /** Whether this invite can be claimed by multiple recipients */
888
+ multiple?: boolean | null;
889
+ /** Optional JSON payload of additional invite metadata */
890
+ data?: Record<string, unknown> | null;
891
+ /** Optional profile (role) to assign to the member when they claim this invite. Only allowed on email invites. */
892
+ profileId?: string | null;
893
+ /** Whether the resulting membership should be read-only when this invite is claimed */
894
+ isReadOnly?: boolean | null;
895
+ /** Timestamp after which this invitation can no longer be redeemed */
896
+ expiresAt?: string | null;
897
+ createdAt?: string | null;
898
+ updatedAt?: string | null;
899
+ entityId?: string | null;
900
+ }
899
901
  /** Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status */
900
902
  export interface OrgMembership {
901
903
  id: string;
@@ -1039,10 +1041,10 @@ export interface OrgLimitAggregateRelations {
1039
1041
  }
1040
1042
  export interface OrgLimitRelations {
1041
1043
  }
1042
- export interface OrgInviteRelations {
1043
- }
1044
1044
  export interface AppMembershipRelations {
1045
1045
  }
1046
+ export interface OrgInviteRelations {
1047
+ }
1046
1048
  export interface OrgMembershipRelations {
1047
1049
  orgMemberProfileByMembershipId?: OrgMemberProfile | null;
1048
1050
  }
@@ -1090,8 +1092,8 @@ export type AppInviteWithRelations = AppInvite & AppInviteRelations;
1090
1092
  export type OrgMembershipSettingWithRelations = OrgMembershipSetting & OrgMembershipSettingRelations;
1091
1093
  export type OrgLimitAggregateWithRelations = OrgLimitAggregate & OrgLimitAggregateRelations;
1092
1094
  export type OrgLimitWithRelations = OrgLimit & OrgLimitRelations;
1093
- export type OrgInviteWithRelations = OrgInvite & OrgInviteRelations;
1094
1095
  export type AppMembershipWithRelations = AppMembership & AppMembershipRelations;
1096
+ export type OrgInviteWithRelations = OrgInvite & OrgInviteRelations;
1095
1097
  export type OrgMembershipWithRelations = OrgMembership & OrgMembershipRelations;
1096
1098
  export type OrgGetManagersRecordSelect = {
1097
1099
  userId?: boolean;
@@ -1515,23 +1517,6 @@ export type OrgLimitSelect = {
1515
1517
  periodCredits?: boolean;
1516
1518
  entityId?: boolean;
1517
1519
  };
1518
- export type OrgInviteSelect = {
1519
- id?: boolean;
1520
- email?: boolean;
1521
- senderId?: boolean;
1522
- receiverId?: boolean;
1523
- inviteToken?: boolean;
1524
- inviteValid?: boolean;
1525
- inviteLimit?: boolean;
1526
- inviteCount?: boolean;
1527
- multiple?: boolean;
1528
- data?: boolean;
1529
- profileId?: boolean;
1530
- expiresAt?: boolean;
1531
- createdAt?: boolean;
1532
- updatedAt?: boolean;
1533
- entityId?: boolean;
1534
- };
1535
1520
  export type AppMembershipSelect = {
1536
1521
  id?: boolean;
1537
1522
  createdAt?: boolean;
@@ -1550,6 +1535,24 @@ export type AppMembershipSelect = {
1550
1535
  actorId?: boolean;
1551
1536
  profileId?: boolean;
1552
1537
  };
1538
+ export type OrgInviteSelect = {
1539
+ id?: boolean;
1540
+ email?: boolean;
1541
+ senderId?: boolean;
1542
+ receiverId?: boolean;
1543
+ inviteToken?: boolean;
1544
+ inviteValid?: boolean;
1545
+ inviteLimit?: boolean;
1546
+ inviteCount?: boolean;
1547
+ multiple?: boolean;
1548
+ data?: boolean;
1549
+ profileId?: boolean;
1550
+ isReadOnly?: boolean;
1551
+ expiresAt?: boolean;
1552
+ createdAt?: boolean;
1553
+ updatedAt?: boolean;
1554
+ entityId?: boolean;
1555
+ };
1553
1556
  export type OrgMembershipSelect = {
1554
1557
  id?: boolean;
1555
1558
  createdAt?: boolean;
@@ -2513,42 +2516,6 @@ export interface OrgLimitFilter {
2513
2516
  /** Negates the expression. */
2514
2517
  not?: OrgLimitFilter;
2515
2518
  }
2516
- export interface OrgInviteFilter {
2517
- /** Filter by the object’s `id` field. */
2518
- id?: UUIDFilter;
2519
- /** Filter by the object’s `email` field. */
2520
- email?: ConstructiveInternalTypeEmailFilter;
2521
- /** Filter by the object’s `senderId` field. */
2522
- senderId?: UUIDFilter;
2523
- /** Filter by the object’s `receiverId` field. */
2524
- receiverId?: UUIDFilter;
2525
- /** Filter by the object’s `inviteToken` field. */
2526
- inviteToken?: StringFilter;
2527
- /** Filter by the object’s `inviteValid` field. */
2528
- inviteValid?: BooleanFilter;
2529
- /** Filter by the object’s `inviteLimit` field. */
2530
- inviteLimit?: IntFilter;
2531
- /** Filter by the object’s `inviteCount` field. */
2532
- inviteCount?: IntFilter;
2533
- /** Filter by the object’s `multiple` field. */
2534
- multiple?: BooleanFilter;
2535
- /** Filter by the object’s `profileId` field. */
2536
- profileId?: UUIDFilter;
2537
- /** Filter by the object’s `expiresAt` field. */
2538
- expiresAt?: DatetimeFilter;
2539
- /** Filter by the object’s `createdAt` field. */
2540
- createdAt?: DatetimeFilter;
2541
- /** Filter by the object’s `updatedAt` field. */
2542
- updatedAt?: DatetimeFilter;
2543
- /** Filter by the object’s `entityId` field. */
2544
- entityId?: UUIDFilter;
2545
- /** Checks for all expressions in this list. */
2546
- and?: OrgInviteFilter[];
2547
- /** Checks for any expressions in this list. */
2548
- or?: OrgInviteFilter[];
2549
- /** Negates the expression. */
2550
- not?: OrgInviteFilter;
2551
- }
2552
2519
  export interface AppMembershipFilter {
2553
2520
  /** Filter by the object’s `id` field. */
2554
2521
  id?: UUIDFilter;
@@ -2589,6 +2556,44 @@ export interface AppMembershipFilter {
2589
2556
  /** Negates the expression. */
2590
2557
  not?: AppMembershipFilter;
2591
2558
  }
2559
+ export interface OrgInviteFilter {
2560
+ /** Filter by the object’s `id` field. */
2561
+ id?: UUIDFilter;
2562
+ /** Filter by the object’s `email` field. */
2563
+ email?: ConstructiveInternalTypeEmailFilter;
2564
+ /** Filter by the object’s `senderId` field. */
2565
+ senderId?: UUIDFilter;
2566
+ /** Filter by the object’s `receiverId` field. */
2567
+ receiverId?: UUIDFilter;
2568
+ /** Filter by the object’s `inviteToken` field. */
2569
+ inviteToken?: StringFilter;
2570
+ /** Filter by the object’s `inviteValid` field. */
2571
+ inviteValid?: BooleanFilter;
2572
+ /** Filter by the object’s `inviteLimit` field. */
2573
+ inviteLimit?: IntFilter;
2574
+ /** Filter by the object’s `inviteCount` field. */
2575
+ inviteCount?: IntFilter;
2576
+ /** Filter by the object’s `multiple` field. */
2577
+ multiple?: BooleanFilter;
2578
+ /** Filter by the object’s `profileId` field. */
2579
+ profileId?: UUIDFilter;
2580
+ /** Filter by the object’s `isReadOnly` field. */
2581
+ isReadOnly?: BooleanFilter;
2582
+ /** Filter by the object’s `expiresAt` field. */
2583
+ expiresAt?: DatetimeFilter;
2584
+ /** Filter by the object’s `createdAt` field. */
2585
+ createdAt?: DatetimeFilter;
2586
+ /** Filter by the object’s `updatedAt` field. */
2587
+ updatedAt?: DatetimeFilter;
2588
+ /** Filter by the object’s `entityId` field. */
2589
+ entityId?: UUIDFilter;
2590
+ /** Checks for all expressions in this list. */
2591
+ and?: OrgInviteFilter[];
2592
+ /** Checks for any expressions in this list. */
2593
+ or?: OrgInviteFilter[];
2594
+ /** Negates the expression. */
2595
+ not?: OrgInviteFilter;
2596
+ }
2592
2597
  export interface OrgMembershipFilter {
2593
2598
  /** Filter by the object’s `id` field. */
2594
2599
  id?: UUIDFilter;
@@ -2681,8 +2686,8 @@ export type AppInviteOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC
2681
2686
  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';
2682
2687
  export type OrgLimitAggregateOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC' | 'NUM_ASC' | 'NUM_DESC' | 'MAX_ASC' | 'MAX_DESC' | 'SOFT_MAX_ASC' | 'SOFT_MAX_DESC' | 'WINDOW_START_ASC' | 'WINDOW_START_DESC' | 'WINDOW_DURATION_ASC' | 'WINDOW_DURATION_DESC' | 'PLAN_MAX_ASC' | 'PLAN_MAX_DESC' | 'PURCHASED_CREDITS_ASC' | 'PURCHASED_CREDITS_DESC' | 'PERIOD_CREDITS_ASC' | 'PERIOD_CREDITS_DESC' | 'RESERVED_ASC' | 'RESERVED_DESC';
2683
2688
  export type OrgLimitOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' | 'NUM_ASC' | 'NUM_DESC' | 'MAX_ASC' | 'MAX_DESC' | 'SOFT_MAX_ASC' | 'SOFT_MAX_DESC' | 'WINDOW_START_ASC' | 'WINDOW_START_DESC' | 'WINDOW_DURATION_ASC' | 'WINDOW_DURATION_DESC' | 'PLAN_MAX_ASC' | 'PLAN_MAX_DESC' | 'PURCHASED_CREDITS_ASC' | 'PURCHASED_CREDITS_DESC' | 'PERIOD_CREDITS_ASC' | 'PERIOD_CREDITS_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC';
2684
- 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' | 'EXPIRES_AT_ASC' | 'EXPIRES_AT_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC';
2685
2689
  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';
2690
+ 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';
2686
2691
  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';
2687
2692
  export interface CreateOrgGetManagersRecordInput {
2688
2693
  clientMutationId?: string;
@@ -3808,46 +3813,6 @@ export interface DeleteOrgLimitInput {
3808
3813
  clientMutationId?: string;
3809
3814
  id: string;
3810
3815
  }
3811
- export interface CreateOrgInviteInput {
3812
- clientMutationId?: string;
3813
- orgInvite: {
3814
- email?: ConstructiveInternalTypeEmail;
3815
- senderId?: string;
3816
- receiverId?: string;
3817
- inviteToken?: string;
3818
- inviteValid?: boolean;
3819
- inviteLimit?: number;
3820
- inviteCount?: number;
3821
- multiple?: boolean;
3822
- data?: Record<string, unknown>;
3823
- profileId?: string;
3824
- expiresAt?: string;
3825
- entityId: string;
3826
- };
3827
- }
3828
- export interface OrgInvitePatch {
3829
- email?: ConstructiveInternalTypeEmail | null;
3830
- senderId?: string | null;
3831
- receiverId?: string | null;
3832
- inviteToken?: string | null;
3833
- inviteValid?: boolean | null;
3834
- inviteLimit?: number | null;
3835
- inviteCount?: number | null;
3836
- multiple?: boolean | null;
3837
- data?: Record<string, unknown> | null;
3838
- profileId?: string | null;
3839
- expiresAt?: string | null;
3840
- entityId?: string | null;
3841
- }
3842
- export interface UpdateOrgInviteInput {
3843
- clientMutationId?: string;
3844
- id: string;
3845
- orgInvitePatch: OrgInvitePatch;
3846
- }
3847
- export interface DeleteOrgInviteInput {
3848
- clientMutationId?: string;
3849
- id: string;
3850
- }
3851
3816
  export interface CreateAppMembershipInput {
3852
3817
  clientMutationId?: string;
3853
3818
  appMembership: {
@@ -3890,6 +3855,48 @@ export interface DeleteAppMembershipInput {
3890
3855
  clientMutationId?: string;
3891
3856
  id: string;
3892
3857
  }
3858
+ export interface CreateOrgInviteInput {
3859
+ clientMutationId?: string;
3860
+ orgInvite: {
3861
+ email?: ConstructiveInternalTypeEmail;
3862
+ senderId?: string;
3863
+ receiverId?: string;
3864
+ inviteToken?: string;
3865
+ inviteValid?: boolean;
3866
+ inviteLimit?: number;
3867
+ inviteCount?: number;
3868
+ multiple?: boolean;
3869
+ data?: Record<string, unknown>;
3870
+ profileId?: string;
3871
+ isReadOnly?: boolean;
3872
+ expiresAt?: string;
3873
+ entityId: string;
3874
+ };
3875
+ }
3876
+ export interface OrgInvitePatch {
3877
+ email?: ConstructiveInternalTypeEmail | null;
3878
+ senderId?: string | null;
3879
+ receiverId?: string | null;
3880
+ inviteToken?: string | null;
3881
+ inviteValid?: boolean | null;
3882
+ inviteLimit?: number | null;
3883
+ inviteCount?: number | null;
3884
+ multiple?: boolean | null;
3885
+ data?: Record<string, unknown> | null;
3886
+ profileId?: string | null;
3887
+ isReadOnly?: boolean | null;
3888
+ expiresAt?: string | null;
3889
+ entityId?: string | null;
3890
+ }
3891
+ export interface UpdateOrgInviteInput {
3892
+ clientMutationId?: string;
3893
+ id: string;
3894
+ orgInvitePatch: OrgInvitePatch;
3895
+ }
3896
+ export interface DeleteOrgInviteInput {
3897
+ clientMutationId?: string;
3898
+ id: string;
3899
+ }
3893
3900
  export interface CreateOrgMembershipInput {
3894
3901
  clientMutationId?: string;
3895
3902
  orgMembership: {
@@ -6410,51 +6417,6 @@ export type DeleteOrgLimitPayloadSelect = {
6410
6417
  select: OrgLimitEdgeSelect;
6411
6418
  };
6412
6419
  };
6413
- export interface CreateOrgInvitePayload {
6414
- clientMutationId?: string | null;
6415
- /** The `OrgInvite` that was created by this mutation. */
6416
- orgInvite?: OrgInvite | null;
6417
- orgInviteEdge?: OrgInviteEdge | null;
6418
- }
6419
- export type CreateOrgInvitePayloadSelect = {
6420
- clientMutationId?: boolean;
6421
- orgInvite?: {
6422
- select: OrgInviteSelect;
6423
- };
6424
- orgInviteEdge?: {
6425
- select: OrgInviteEdgeSelect;
6426
- };
6427
- };
6428
- export interface UpdateOrgInvitePayload {
6429
- clientMutationId?: string | null;
6430
- /** The `OrgInvite` that was updated by this mutation. */
6431
- orgInvite?: OrgInvite | null;
6432
- orgInviteEdge?: OrgInviteEdge | null;
6433
- }
6434
- export type UpdateOrgInvitePayloadSelect = {
6435
- clientMutationId?: boolean;
6436
- orgInvite?: {
6437
- select: OrgInviteSelect;
6438
- };
6439
- orgInviteEdge?: {
6440
- select: OrgInviteEdgeSelect;
6441
- };
6442
- };
6443
- export interface DeleteOrgInvitePayload {
6444
- clientMutationId?: string | null;
6445
- /** The `OrgInvite` that was deleted by this mutation. */
6446
- orgInvite?: OrgInvite | null;
6447
- orgInviteEdge?: OrgInviteEdge | null;
6448
- }
6449
- export type DeleteOrgInvitePayloadSelect = {
6450
- clientMutationId?: boolean;
6451
- orgInvite?: {
6452
- select: OrgInviteSelect;
6453
- };
6454
- orgInviteEdge?: {
6455
- select: OrgInviteEdgeSelect;
6456
- };
6457
- };
6458
6420
  export interface CreateAppMembershipPayload {
6459
6421
  clientMutationId?: string | null;
6460
6422
  /** The `AppMembership` that was created by this mutation. */
@@ -6500,6 +6462,51 @@ export type DeleteAppMembershipPayloadSelect = {
6500
6462
  select: AppMembershipEdgeSelect;
6501
6463
  };
6502
6464
  };
6465
+ export interface CreateOrgInvitePayload {
6466
+ clientMutationId?: string | null;
6467
+ /** The `OrgInvite` that was created by this mutation. */
6468
+ orgInvite?: OrgInvite | null;
6469
+ orgInviteEdge?: OrgInviteEdge | null;
6470
+ }
6471
+ export type CreateOrgInvitePayloadSelect = {
6472
+ clientMutationId?: boolean;
6473
+ orgInvite?: {
6474
+ select: OrgInviteSelect;
6475
+ };
6476
+ orgInviteEdge?: {
6477
+ select: OrgInviteEdgeSelect;
6478
+ };
6479
+ };
6480
+ export interface UpdateOrgInvitePayload {
6481
+ clientMutationId?: string | null;
6482
+ /** The `OrgInvite` that was updated by this mutation. */
6483
+ orgInvite?: OrgInvite | null;
6484
+ orgInviteEdge?: OrgInviteEdge | null;
6485
+ }
6486
+ export type UpdateOrgInvitePayloadSelect = {
6487
+ clientMutationId?: boolean;
6488
+ orgInvite?: {
6489
+ select: OrgInviteSelect;
6490
+ };
6491
+ orgInviteEdge?: {
6492
+ select: OrgInviteEdgeSelect;
6493
+ };
6494
+ };
6495
+ export interface DeleteOrgInvitePayload {
6496
+ clientMutationId?: string | null;
6497
+ /** The `OrgInvite` that was deleted by this mutation. */
6498
+ orgInvite?: OrgInvite | null;
6499
+ orgInviteEdge?: OrgInviteEdge | null;
6500
+ }
6501
+ export type DeleteOrgInvitePayloadSelect = {
6502
+ clientMutationId?: boolean;
6503
+ orgInvite?: {
6504
+ select: OrgInviteSelect;
6505
+ };
6506
+ orgInviteEdge?: {
6507
+ select: OrgInviteEdgeSelect;
6508
+ };
6509
+ };
6503
6510
  export interface CreateOrgMembershipPayload {
6504
6511
  clientMutationId?: string | null;
6505
6512
  /** The `OrgMembership` that was created by this mutation. */
@@ -7042,18 +7049,6 @@ export type OrgLimitEdgeSelect = {
7042
7049
  select: OrgLimitSelect;
7043
7050
  };
7044
7051
  };
7045
- /** A `OrgInvite` edge in the connection. */
7046
- export interface OrgInviteEdge {
7047
- cursor?: string | null;
7048
- /** The `OrgInvite` at the end of the edge. */
7049
- node?: OrgInvite | null;
7050
- }
7051
- export type OrgInviteEdgeSelect = {
7052
- cursor?: boolean;
7053
- node?: {
7054
- select: OrgInviteSelect;
7055
- };
7056
- };
7057
7052
  /** A `AppMembership` edge in the connection. */
7058
7053
  export interface AppMembershipEdge {
7059
7054
  cursor?: string | null;
@@ -7066,6 +7061,18 @@ export type AppMembershipEdgeSelect = {
7066
7061
  select: AppMembershipSelect;
7067
7062
  };
7068
7063
  };
7064
+ /** A `OrgInvite` edge in the connection. */
7065
+ export interface OrgInviteEdge {
7066
+ cursor?: string | null;
7067
+ /** The `OrgInvite` at the end of the edge. */
7068
+ node?: OrgInvite | null;
7069
+ }
7070
+ export type OrgInviteEdgeSelect = {
7071
+ cursor?: boolean;
7072
+ node?: {
7073
+ select: OrgInviteSelect;
7074
+ };
7075
+ };
7069
7076
  /** A `OrgMembership` edge in the connection. */
7070
7077
  export interface OrgMembershipEdge {
7071
7078
  cursor?: string | null;
@@ -47,6 +47,6 @@ export { AppInviteModel } from './appInvite';
47
47
  export { OrgMembershipSettingModel } from './orgMembershipSetting';
48
48
  export { OrgLimitAggregateModel } from './orgLimitAggregate';
49
49
  export { OrgLimitModel } from './orgLimit';
50
- export { OrgInviteModel } from './orgInvite';
51
50
  export { AppMembershipModel } from './appMembership';
51
+ export { OrgInviteModel } from './orgInvite';
52
52
  export { OrgMembershipModel } from './orgMembership';
@@ -47,6 +47,6 @@ export { AppInviteModel } from './appInvite';
47
47
  export { OrgMembershipSettingModel } from './orgMembershipSetting';
48
48
  export { OrgLimitAggregateModel } from './orgLimitAggregate';
49
49
  export { OrgLimitModel } from './orgLimit';
50
- export { OrgInviteModel } from './orgInvite';
51
50
  export { AppMembershipModel } from './appMembership';
51
+ export { OrgInviteModel } from './orgInvite';
52
52
  export { OrgMembershipModel } from './orgMembership';
@@ -2218,6 +2218,8 @@ export interface OrgInvite {
2218
2218
  data?: Record<string, unknown> | null;
2219
2219
  /** Optional profile (role) to assign to the member when they claim this invite. Only allowed on email invites. */
2220
2220
  profileId?: string | null;
2221
+ /** Whether the resulting membership should be read-only when this invite is claimed */
2222
+ isReadOnly?: boolean | null;
2221
2223
  /** Timestamp after which this invitation can no longer be redeemed */
2222
2224
  expiresAt?: string | null;
2223
2225
  createdAt?: string | null;
@@ -7024,6 +7026,7 @@ export type OrgInviteSelect = {
7024
7026
  multiple?: boolean;
7025
7027
  data?: boolean;
7026
7028
  profileId?: boolean;
7029
+ isReadOnly?: boolean;
7027
7030
  expiresAt?: boolean;
7028
7031
  createdAt?: boolean;
7029
7032
  updatedAt?: boolean;
@@ -12512,6 +12515,8 @@ export interface OrgInviteFilter {
12512
12515
  multiple?: BooleanFilter;
12513
12516
  /** Filter by the object’s `profileId` field. */
12514
12517
  profileId?: UUIDFilter;
12518
+ /** Filter by the object’s `isReadOnly` field. */
12519
+ isReadOnly?: BooleanFilter;
12515
12520
  /** Filter by the object’s `expiresAt` field. */
12516
12521
  expiresAt?: DatetimeFilter;
12517
12522
  /** Filter by the object’s `createdAt` field. */
@@ -14235,7 +14240,7 @@ export type CryptoAddressOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_
14235
14240
  export type WebauthnCredentialOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'OWNER_ID_ASC' | 'OWNER_ID_DESC' | 'CREDENTIAL_ID_ASC' | 'CREDENTIAL_ID_DESC' | 'PUBLIC_KEY_ASC' | 'PUBLIC_KEY_DESC' | 'SIGN_COUNT_ASC' | 'SIGN_COUNT_DESC' | 'WEBAUTHN_USER_ID_ASC' | 'WEBAUTHN_USER_ID_DESC' | 'TRANSPORTS_ASC' | 'TRANSPORTS_DESC' | 'CREDENTIAL_DEVICE_TYPE_ASC' | 'CREDENTIAL_DEVICE_TYPE_DESC' | 'BACKUP_ELIGIBLE_ASC' | 'BACKUP_ELIGIBLE_DESC' | 'BACKUP_STATE_ASC' | 'BACKUP_STATE_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'LAST_USED_AT_ASC' | 'LAST_USED_AT_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC';
14236
14241
  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';
14237
14242
  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';
14238
- 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' | 'EXPIRES_AT_ASC' | 'EXPIRES_AT_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC';
14243
+ 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';
14239
14244
  export type OrgClaimedInviteOrderBy = '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' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC';
14240
14245
  export type AuditLogOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'EVENT_ASC' | 'EVENT_DESC' | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' | 'ORIGIN_ASC' | 'ORIGIN_DESC' | 'USER_AGENT_ASC' | 'USER_AGENT_DESC' | 'IP_ADDRESS_ASC' | 'IP_ADDRESS_DESC' | 'SUCCESS_ASC' | 'SUCCESS_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC';
14241
14246
  export type AgentThreadOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'TITLE_ASC' | 'TITLE_DESC' | 'MODE_ASC' | 'MODE_DESC' | 'MODEL_ASC' | 'MODEL_DESC' | 'SYSTEM_PROMPT_ASC' | 'SYSTEM_PROMPT_DESC' | 'ID_ASC' | 'ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'OWNER_ID_ASC' | 'OWNER_ID_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC' | 'STATUS_ASC' | 'STATUS_DESC';
@@ -17834,6 +17839,7 @@ export interface CreateOrgInviteInput {
17834
17839
  multiple?: boolean;
17835
17840
  data?: Record<string, unknown>;
17836
17841
  profileId?: string;
17842
+ isReadOnly?: boolean;
17837
17843
  expiresAt?: string;
17838
17844
  entityId: string;
17839
17845
  };
@@ -17849,6 +17855,7 @@ export interface OrgInvitePatch {
17849
17855
  multiple?: boolean | null;
17850
17856
  data?: Record<string, unknown> | null;
17851
17857
  profileId?: string | null;
17858
+ isReadOnly?: boolean | null;
17852
17859
  expiresAt?: string | null;
17853
17860
  entityId?: string | null;
17854
17861
  }
@@ -25925,6 +25932,8 @@ export interface OrgInviteFilter {
25925
25932
  multiple?: BooleanFilter;
25926
25933
  /** Filter by the object’s `profileId` field. */
25927
25934
  profileId?: UUIDFilter;
25935
+ /** Filter by the object’s `isReadOnly` field. */
25936
+ isReadOnly?: BooleanFilter;
25928
25937
  /** Filter by the object’s `expiresAt` field. */
25929
25938
  expiresAt?: DatetimeFilter;
25930
25939
  /** Filter by the object’s `createdAt` field. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@constructive-io/sdk",
3
- "version": "0.21.5",
3
+ "version": "0.21.6",
4
4
  "author": "Constructive <developers@constructive.io>",
5
5
  "description": "Constructive SDK - Auto-generated GraphQL types and ORM client",
6
6
  "main": "index.js",
@@ -42,17 +42,17 @@
42
42
  ],
43
43
  "dependencies": {
44
44
  "@0no-co/graphql.web": "^1.1.2",
45
- "@constructive-io/graphql-query": "^3.23.3",
45
+ "@constructive-io/graphql-query": "^3.23.4",
46
46
  "@constructive-io/graphql-types": "^3.9.1",
47
47
  "gql-ast": "^3.9.1",
48
48
  "graphql": "16.13.0"
49
49
  },
50
50
  "devDependencies": {
51
- "@constructive-io/graphql-codegen": "^4.40.5",
51
+ "@constructive-io/graphql-codegen": "^4.40.6",
52
52
  "@types/node": "^22.19.11",
53
53
  "makage": "^0.3.0",
54
54
  "tsx": "^4.19.0",
55
55
  "typescript": "^5.9.3"
56
56
  },
57
- "gitHead": "ea590e1b9e1ee38c267f8dbbb37aa3f83a5d3fb7"
57
+ "gitHead": "28b0b236e65b2a2228acad4fd840543c04b24825"
58
58
  }
@@ -2218,6 +2218,8 @@ export interface OrgInvite {
2218
2218
  data?: Record<string, unknown> | null;
2219
2219
  /** Optional profile (role) to assign to the member when they claim this invite. Only allowed on email invites. */
2220
2220
  profileId?: string | null;
2221
+ /** Whether the resulting membership should be read-only when this invite is claimed */
2222
+ isReadOnly?: boolean | null;
2221
2223
  /** Timestamp after which this invitation can no longer be redeemed */
2222
2224
  expiresAt?: string | null;
2223
2225
  createdAt?: string | null;
@@ -7024,6 +7026,7 @@ export type OrgInviteSelect = {
7024
7026
  multiple?: boolean;
7025
7027
  data?: boolean;
7026
7028
  profileId?: boolean;
7029
+ isReadOnly?: boolean;
7027
7030
  expiresAt?: boolean;
7028
7031
  createdAt?: boolean;
7029
7032
  updatedAt?: boolean;
@@ -12512,6 +12515,8 @@ export interface OrgInviteFilter {
12512
12515
  multiple?: BooleanFilter;
12513
12516
  /** Filter by the object’s `profileId` field. */
12514
12517
  profileId?: UUIDFilter;
12518
+ /** Filter by the object’s `isReadOnly` field. */
12519
+ isReadOnly?: BooleanFilter;
12515
12520
  /** Filter by the object’s `expiresAt` field. */
12516
12521
  expiresAt?: DatetimeFilter;
12517
12522
  /** Filter by the object’s `createdAt` field. */
@@ -14235,7 +14240,7 @@ export type CryptoAddressOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_
14235
14240
  export type WebauthnCredentialOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'OWNER_ID_ASC' | 'OWNER_ID_DESC' | 'CREDENTIAL_ID_ASC' | 'CREDENTIAL_ID_DESC' | 'PUBLIC_KEY_ASC' | 'PUBLIC_KEY_DESC' | 'SIGN_COUNT_ASC' | 'SIGN_COUNT_DESC' | 'WEBAUTHN_USER_ID_ASC' | 'WEBAUTHN_USER_ID_DESC' | 'TRANSPORTS_ASC' | 'TRANSPORTS_DESC' | 'CREDENTIAL_DEVICE_TYPE_ASC' | 'CREDENTIAL_DEVICE_TYPE_DESC' | 'BACKUP_ELIGIBLE_ASC' | 'BACKUP_ELIGIBLE_DESC' | 'BACKUP_STATE_ASC' | 'BACKUP_STATE_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'LAST_USED_AT_ASC' | 'LAST_USED_AT_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC';
14236
14241
  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';
14237
14242
  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';
14238
- 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' | 'EXPIRES_AT_ASC' | 'EXPIRES_AT_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC';
14243
+ 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';
14239
14244
  export type OrgClaimedInviteOrderBy = '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' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC';
14240
14245
  export type AuditLogOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'EVENT_ASC' | 'EVENT_DESC' | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' | 'ORIGIN_ASC' | 'ORIGIN_DESC' | 'USER_AGENT_ASC' | 'USER_AGENT_DESC' | 'IP_ADDRESS_ASC' | 'IP_ADDRESS_DESC' | 'SUCCESS_ASC' | 'SUCCESS_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC';
14241
14246
  export type AgentThreadOrderBy = 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'TITLE_ASC' | 'TITLE_DESC' | 'MODE_ASC' | 'MODE_DESC' | 'MODEL_ASC' | 'MODEL_DESC' | 'SYSTEM_PROMPT_ASC' | 'SYSTEM_PROMPT_DESC' | 'ID_ASC' | 'ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'OWNER_ID_ASC' | 'OWNER_ID_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC' | 'STATUS_ASC' | 'STATUS_DESC';
@@ -17834,6 +17839,7 @@ export interface CreateOrgInviteInput {
17834
17839
  multiple?: boolean;
17835
17840
  data?: Record<string, unknown>;
17836
17841
  profileId?: string;
17842
+ isReadOnly?: boolean;
17837
17843
  expiresAt?: string;
17838
17844
  entityId: string;
17839
17845
  };
@@ -17849,6 +17855,7 @@ export interface OrgInvitePatch {
17849
17855
  multiple?: boolean | null;
17850
17856
  data?: Record<string, unknown> | null;
17851
17857
  profileId?: string | null;
17858
+ isReadOnly?: boolean | null;
17852
17859
  expiresAt?: string | null;
17853
17860
  entityId?: string | null;
17854
17861
  }
@@ -25925,6 +25932,8 @@ export interface OrgInviteFilter {
25925
25932
  multiple?: BooleanFilter;
25926
25933
  /** Filter by the object’s `profileId` field. */
25927
25934
  profileId?: UUIDFilter;
25935
+ /** Filter by the object’s `isReadOnly` field. */
25936
+ isReadOnly?: BooleanFilter;
25928
25937
  /** Filter by the object’s `expiresAt` field. */
25929
25938
  expiresAt?: DatetimeFilter;
25930
25939
  /** Filter by the object’s `createdAt` field. */