@constructive-io/sdk 0.0.4 → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -58,6 +58,25 @@ export interface ProvisionDatabaseWithUserVariables {
58
58
  export interface SignInOneTimeTokenVariables {
59
59
  input: SignInOneTimeTokenInput;
60
60
  }
61
+ /**
62
+ * Variables for createUserDatabase
63
+ * Creates a new user database with all required modules, permissions, and RLS policies.
64
+
65
+ Parameters:
66
+ - database_name: Name for the new database (required)
67
+ - owner_id: UUID of the owner user (required)
68
+ - include_invites: Include invite system (default: true)
69
+ - include_groups: Include group-level memberships (default: false)
70
+ - include_levels: Include levels/achievements (default: false)
71
+ - bitlen: Bit length for permission masks (default: 64)
72
+ - tokens_expiration: Token expiration interval (default: 30 days)
73
+
74
+ Returns the database_id UUID of the newly created database.
75
+
76
+ Example usage:
77
+ SELECT metaschema_public.create_user_database('my_app', 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'::uuid);
78
+ SELECT metaschema_public.create_user_database('my_app', 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'::uuid, true, true); -- with invites and groups
79
+ */
61
80
  export interface CreateUserDatabaseVariables {
62
81
  input: CreateUserDatabaseInput;
63
82
  }
@@ -36,29 +36,53 @@ export interface OrgPermissionsGetMaskByNamesVariables {
36
36
  }
37
37
  export interface AppPermissionsGetByMaskVariables {
38
38
  mask?: string;
39
+ /** Only read the first `n` values of the set. */
39
40
  first?: number;
41
+ /**
42
+ * Skip the first `n` values from our `after` cursor, an alternative to cursor
43
+ * based pagination. May not be used with `last`.
44
+ */
40
45
  offset?: number;
46
+ /** Read all values in the set after (below) this cursor. */
41
47
  after?: string;
42
48
  }
43
49
  export interface OrgPermissionsGetByMaskVariables {
44
50
  mask?: string;
51
+ /** Only read the first `n` values of the set. */
45
52
  first?: number;
53
+ /**
54
+ * Skip the first `n` values from our `after` cursor, an alternative to cursor
55
+ * based pagination. May not be used with `last`.
56
+ */
46
57
  offset?: number;
58
+ /** Read all values in the set after (below) this cursor. */
47
59
  after?: string;
48
60
  }
49
61
  export interface GetAllObjectsFromRootVariables {
50
62
  databaseId?: string;
51
63
  id?: string;
64
+ /** Only read the first `n` values of the set. */
52
65
  first?: number;
66
+ /**
67
+ * Skip the first `n` values from our `after` cursor, an alternative to cursor
68
+ * based pagination. May not be used with `last`.
69
+ */
53
70
  offset?: number;
71
+ /** Read all values in the set after (below) this cursor. */
54
72
  after?: string;
55
73
  }
56
74
  export interface GetPathObjectsFromRootVariables {
57
75
  databaseId?: string;
58
76
  id?: string;
59
77
  path?: string[];
78
+ /** Only read the first `n` values of the set. */
60
79
  first?: number;
80
+ /**
81
+ * Skip the first `n` values from our `after` cursor, an alternative to cursor
82
+ * based pagination. May not be used with `last`.
83
+ */
61
84
  offset?: number;
85
+ /** Read all values in the set after (below) this cursor. */
62
86
  after?: string;
63
87
  }
64
88
  export interface GetObjectAtPathVariables {
@@ -70,8 +94,14 @@ export interface GetObjectAtPathVariables {
70
94
  export interface StepsRequiredVariables {
71
95
  vlevel?: string;
72
96
  vroleId?: string;
97
+ /** Only read the first `n` values of the set. */
73
98
  first?: number;
99
+ /**
100
+ * Skip the first `n` values from our `after` cursor, an alternative to cursor
101
+ * based pagination. May not be used with `last`.
102
+ */
74
103
  offset?: number;
104
+ /** Read all values in the set after (below) this cursor. */
75
105
  after?: string;
76
106
  }
77
107
  export declare function createQueryOperations(client: OrmClient): {