@constructive-sdk/cli 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.
@@ -20,6 +20,7 @@ const fieldSchema = {
20
20
  multiple: 'boolean',
21
21
  data: 'json',
22
22
  profileId: 'uuid',
23
+ isReadOnly: 'boolean',
23
24
  expiresAt: 'string',
24
25
  createdAt: 'string',
25
26
  updatedAt: 'string',
@@ -78,6 +79,7 @@ async function handleList(argv, _prompter) {
78
79
  multiple: true,
79
80
  data: true,
80
81
  profileId: true,
82
+ isReadOnly: true,
81
83
  expiresAt: true,
82
84
  createdAt: true,
83
85
  updatedAt: true,
@@ -110,6 +112,7 @@ async function handleFindFirst(argv, _prompter) {
110
112
  multiple: true,
111
113
  data: true,
112
114
  profileId: true,
115
+ isReadOnly: true,
113
116
  expiresAt: true,
114
117
  createdAt: true,
115
118
  updatedAt: true,
@@ -154,6 +157,7 @@ async function handleGet(argv, prompter) {
154
157
  multiple: true,
155
158
  data: true,
156
159
  profileId: true,
160
+ isReadOnly: true,
157
161
  expiresAt: true,
158
162
  createdAt: true,
159
163
  updatedAt: true,
@@ -244,6 +248,13 @@ async function handleCreate(argv, prompter) {
244
248
  required: false,
245
249
  skipPrompt: true,
246
250
  },
251
+ {
252
+ type: 'boolean',
253
+ name: 'isReadOnly',
254
+ message: 'isReadOnly',
255
+ required: false,
256
+ skipPrompt: true,
257
+ },
247
258
  {
248
259
  type: 'text',
249
260
  name: 'expiresAt',
@@ -274,6 +285,7 @@ async function handleCreate(argv, prompter) {
274
285
  multiple: cleanedData.multiple,
275
286
  data: cleanedData.data,
276
287
  profileId: cleanedData.profileId,
288
+ isReadOnly: cleanedData.isReadOnly,
277
289
  expiresAt: cleanedData.expiresAt,
278
290
  entityId: cleanedData.entityId,
279
291
  },
@@ -289,6 +301,7 @@ async function handleCreate(argv, prompter) {
289
301
  multiple: true,
290
302
  data: true,
291
303
  profileId: true,
304
+ isReadOnly: true,
292
305
  expiresAt: true,
293
306
  createdAt: true,
294
307
  updatedAt: true,
@@ -385,6 +398,13 @@ async function handleUpdate(argv, prompter) {
385
398
  required: false,
386
399
  skipPrompt: true,
387
400
  },
401
+ {
402
+ type: 'boolean',
403
+ name: 'isReadOnly',
404
+ message: 'isReadOnly',
405
+ required: false,
406
+ skipPrompt: true,
407
+ },
388
408
  {
389
409
  type: 'text',
390
410
  name: 'expiresAt',
@@ -418,6 +438,7 @@ async function handleUpdate(argv, prompter) {
418
438
  multiple: cleanedData.multiple,
419
439
  data: cleanedData.data,
420
440
  profileId: cleanedData.profileId,
441
+ isReadOnly: cleanedData.isReadOnly,
421
442
  expiresAt: cleanedData.expiresAt,
422
443
  entityId: cleanedData.entityId,
423
444
  },
@@ -433,6 +454,7 @@ async function handleUpdate(argv, prompter) {
433
454
  multiple: true,
434
455
  data: true,
435
456
  profileId: true,
457
+ isReadOnly: true,
436
458
  expiresAt: true,
437
459
  createdAt: true,
438
460
  updatedAt: true,
@@ -56,8 +56,8 @@ const app_invite_1 = __importDefault(require("./commands/app-invite"));
56
56
  const org_membership_setting_1 = __importDefault(require("./commands/org-membership-setting"));
57
57
  const org_limit_aggregate_1 = __importDefault(require("./commands/org-limit-aggregate"));
58
58
  const org_limit_1 = __importDefault(require("./commands/org-limit"));
59
- const org_invite_1 = __importDefault(require("./commands/org-invite"));
60
59
  const app_membership_1 = __importDefault(require("./commands/app-membership"));
60
+ const org_invite_1 = __importDefault(require("./commands/org-invite"));
61
61
  const org_membership_1 = __importDefault(require("./commands/org-membership"));
62
62
  const app_permissions_get_padded_mask_1 = __importDefault(require("./commands/app-permissions-get-padded-mask"));
63
63
  const org_permissions_get_padded_mask_1 = __importDefault(require("./commands/org-permissions-get-padded-mask"));
@@ -120,8 +120,8 @@ const createCommandMap = () => ({
120
120
  'org-membership-setting': org_membership_setting_1.default,
121
121
  'org-limit-aggregate': org_limit_aggregate_1.default,
122
122
  'org-limit': org_limit_1.default,
123
- 'org-invite': org_invite_1.default,
124
123
  'app-membership': app_membership_1.default,
124
+ 'org-invite': org_invite_1.default,
125
125
  'org-membership': org_membership_1.default,
126
126
  'app-permissions-get-padded-mask': app_permissions_get_padded_mask_1.default,
127
127
  'org-permissions-get-padded-mask': org_permissions_get_padded_mask_1.default,
@@ -138,7 +138,7 @@ const createCommandMap = () => ({
138
138
  'submit-org-invite-code': submit_org_invite_code_1.default,
139
139
  'provision-bucket': provision_bucket_1.default,
140
140
  });
141
- const usage = '\ncsdk <command>\n\nCommands:\n context Manage API contexts\n auth Manage authentication\n org-get-managers-record orgGetManagersRecord CRUD operations\n org-get-subordinates-record orgGetSubordinatesRecord CRUD operations\n app-permission appPermission CRUD operations\n org-permission orgPermission CRUD operations\n app-level-requirement appLevelRequirement CRUD operations\n app-limit-credit-redemption appLimitCreditRedemption CRUD operations\n app-limit-credit-code-item appLimitCreditCodeItem CRUD operations\n app-limit-credit appLimitCredit CRUD operations\n org-member orgMember CRUD operations\n app-permission-default appPermissionDefault CRUD operations\n app-limit-credit-code appLimitCreditCode CRUD operations\n org-permission-default orgPermissionDefault CRUD operations\n app-admin-grant appAdminGrant CRUD operations\n app-owner-grant appOwnerGrant CRUD operations\n app-achievement appAchievement CRUD operations\n app-step appStep CRUD operations\n app-limit-caps-default appLimitCapsDefault CRUD operations\n org-limit-caps-default orgLimitCapsDefault CRUD operations\n app-limit-cap appLimitCap CRUD operations\n org-limit-cap orgLimitCap CRUD operations\n org-admin-grant orgAdminGrant CRUD operations\n org-owner-grant orgOwnerGrant CRUD operations\n membership-type membershipType CRUD operations\n app-limit-default appLimitDefault CRUD operations\n org-limit-default orgLimitDefault CRUD operations\n org-limit-credit orgLimitCredit CRUD operations\n org-chart-edge-grant orgChartEdgeGrant CRUD operations\n app-claimed-invite appClaimedInvite CRUD operations\n app-grant appGrant CRUD operations\n app-membership-default appMembershipDefault CRUD operations\n org-membership-default orgMembershipDefault CRUD operations\n org-claimed-invite orgClaimedInvite CRUD operations\n app-limit-event appLimitEvent CRUD operations\n org-limit-event orgLimitEvent CRUD operations\n org-grant orgGrant CRUD operations\n org-chart-edge orgChartEdge CRUD operations\n usage-snapshot usageSnapshot CRUD operations\n org-member-profile orgMemberProfile CRUD operations\n app-level appLevel CRUD operations\n app-limit appLimit CRUD operations\n app-invite appInvite CRUD operations\n org-membership-setting orgMembershipSetting CRUD operations\n org-limit-aggregate orgLimitAggregate CRUD operations\n org-limit orgLimit CRUD operations\n org-invite orgInvite CRUD operations\n app-membership appMembership CRUD operations\n org-membership orgMembership CRUD operations\n app-permissions-get-padded-mask appPermissionsGetPaddedMask\n org-permissions-get-padded-mask orgPermissionsGetPaddedMask\n org-is-manager-of orgIsManagerOf\n app-permissions-get-mask appPermissionsGetMask\n org-permissions-get-mask orgPermissionsGetMask\n steps-achieved stepsAchieved\n app-permissions-get-mask-by-names appPermissionsGetMaskByNames\n org-permissions-get-mask-by-names orgPermissionsGetMaskByNames\n app-permissions-get-by-mask Reads and enables pagination through a set of `AppPermission`.\n org-permissions-get-by-mask Reads and enables pagination through a set of `OrgPermission`.\n steps-required Reads and enables pagination through a set of `AppLevelRequirement`.\n submit-app-invite-code submitAppInviteCode\n submit-org-invite-code submitOrgInviteCode\n provision-bucket Provision an S3 bucket for a logical bucket in the database.\nReads the bucket config via RLS, then creates and configures\nthe S3 bucket with the appropriate privacy policies, CORS rules,\nand lifecycle settings.\n\n --help, -h Show this help message\n --version, -v Show version\n';
141
+ const usage = '\ncsdk <command>\n\nCommands:\n context Manage API contexts\n auth Manage authentication\n org-get-managers-record orgGetManagersRecord CRUD operations\n org-get-subordinates-record orgGetSubordinatesRecord CRUD operations\n app-permission appPermission CRUD operations\n org-permission orgPermission CRUD operations\n app-level-requirement appLevelRequirement CRUD operations\n app-limit-credit-redemption appLimitCreditRedemption CRUD operations\n app-limit-credit-code-item appLimitCreditCodeItem CRUD operations\n app-limit-credit appLimitCredit CRUD operations\n org-member orgMember CRUD operations\n app-permission-default appPermissionDefault CRUD operations\n app-limit-credit-code appLimitCreditCode CRUD operations\n org-permission-default orgPermissionDefault CRUD operations\n app-admin-grant appAdminGrant CRUD operations\n app-owner-grant appOwnerGrant CRUD operations\n app-achievement appAchievement CRUD operations\n app-step appStep CRUD operations\n app-limit-caps-default appLimitCapsDefault CRUD operations\n org-limit-caps-default orgLimitCapsDefault CRUD operations\n app-limit-cap appLimitCap CRUD operations\n org-limit-cap orgLimitCap CRUD operations\n org-admin-grant orgAdminGrant CRUD operations\n org-owner-grant orgOwnerGrant CRUD operations\n membership-type membershipType CRUD operations\n app-limit-default appLimitDefault CRUD operations\n org-limit-default orgLimitDefault CRUD operations\n org-limit-credit orgLimitCredit CRUD operations\n org-chart-edge-grant orgChartEdgeGrant CRUD operations\n app-claimed-invite appClaimedInvite CRUD operations\n app-grant appGrant CRUD operations\n app-membership-default appMembershipDefault CRUD operations\n org-membership-default orgMembershipDefault CRUD operations\n org-claimed-invite orgClaimedInvite CRUD operations\n app-limit-event appLimitEvent CRUD operations\n org-limit-event orgLimitEvent CRUD operations\n org-grant orgGrant CRUD operations\n org-chart-edge orgChartEdge CRUD operations\n usage-snapshot usageSnapshot CRUD operations\n org-member-profile orgMemberProfile CRUD operations\n app-level appLevel CRUD operations\n app-limit appLimit CRUD operations\n app-invite appInvite CRUD operations\n org-membership-setting orgMembershipSetting CRUD operations\n org-limit-aggregate orgLimitAggregate CRUD operations\n org-limit orgLimit CRUD operations\n app-membership appMembership CRUD operations\n org-invite orgInvite CRUD operations\n org-membership orgMembership CRUD operations\n app-permissions-get-padded-mask appPermissionsGetPaddedMask\n org-permissions-get-padded-mask orgPermissionsGetPaddedMask\n org-is-manager-of orgIsManagerOf\n app-permissions-get-mask appPermissionsGetMask\n org-permissions-get-mask orgPermissionsGetMask\n steps-achieved stepsAchieved\n app-permissions-get-mask-by-names appPermissionsGetMaskByNames\n org-permissions-get-mask-by-names orgPermissionsGetMaskByNames\n app-permissions-get-by-mask Reads and enables pagination through a set of `AppPermission`.\n org-permissions-get-by-mask Reads and enables pagination through a set of `OrgPermission`.\n steps-required Reads and enables pagination through a set of `AppLevelRequirement`.\n submit-app-invite-code submitAppInviteCode\n submit-org-invite-code submitOrgInviteCode\n provision-bucket Provision an S3 bucket for a logical bucket in the database.\nReads the bucket config via RLS, then creates and configures\nthe S3 bucket with the appropriate privacy policies, CORS rules,\nand lifecycle settings.\n\n --help, -h Show this help message\n --version, -v Show version\n';
142
142
  const commands = async (argv, prompter, options) => {
143
143
  if (argv.help || argv.h) {
144
144
  console.log(usage);
@@ -44,8 +44,8 @@ export declare function getClient(contextName?: string): {
44
44
  orgMembershipSetting: import("../orm").OrgMembershipSettingModel;
45
45
  orgLimitAggregate: import("../orm").OrgLimitAggregateModel;
46
46
  orgLimit: import("../orm").OrgLimitModel;
47
- orgInvite: import("../orm").OrgInviteModel;
48
47
  appMembership: import("../orm").AppMembershipModel;
48
+ orgInvite: import("../orm").OrgInviteModel;
49
49
  orgMembership: import("../orm").OrgMembershipModel;
50
50
  query: {
51
51
  appPermissionsGetPaddedMask: (args: import("../orm/query").AppPermissionsGetPaddedMaskVariables, options?: {
@@ -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';
@@ -122,8 +122,8 @@ export declare function createClient(config: OrmClientConfig): {
122
122
  orgMembershipSetting: OrgMembershipSettingModel;
123
123
  orgLimitAggregate: OrgLimitAggregateModel;
124
124
  orgLimit: OrgLimitModel;
125
- orgInvite: OrgInviteModel;
126
125
  appMembership: AppMembershipModel;
126
+ orgInvite: OrgInviteModel;
127
127
  orgMembership: OrgMembershipModel;
128
128
  query: {
129
129
  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");
@@ -153,8 +153,8 @@ function createClient(config) {
153
153
  orgMembershipSetting: new orgMembershipSetting_1.OrgMembershipSettingModel(client),
154
154
  orgLimitAggregate: new orgLimitAggregate_1.OrgLimitAggregateModel(client),
155
155
  orgLimit: new orgLimit_1.OrgLimitModel(client),
156
- orgInvite: new orgInvite_1.OrgInviteModel(client),
157
156
  appMembership: new appMembership_1.AppMembershipModel(client),
157
+ orgInvite: new orgInvite_1.OrgInviteModel(client),
158
158
  orgMembership: new orgMembership_1.OrgMembershipModel(client),
159
159
  query: (0, query_1.createQueryOperations)(client),
160
160
  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';