@constructive-sdk/cli 0.25.8 → 0.25.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (229) hide show
  1. package/admin/cli/commands/app-admin-grant.js +3 -1
  2. package/admin/cli/commands/app-grant.js +3 -1
  3. package/admin/cli/commands/app-invite.js +44 -0
  4. package/admin/cli/commands/app-owner-grant.js +3 -1
  5. package/admin/cli/commands/app-permission-default-grant.d.ts +8 -0
  6. package/admin/cli/commands/app-permission-default-grant.js +286 -0
  7. package/admin/cli/commands/app-permission-default-permission.d.ts +8 -0
  8. package/admin/cli/commands/app-permission-default-permission.js +242 -0
  9. package/admin/cli/commands/org-admin-grant.js +3 -1
  10. package/admin/cli/commands/org-grant.js +3 -1
  11. package/admin/cli/commands/org-invite.js +44 -0
  12. package/admin/cli/commands/org-owner-grant.js +3 -1
  13. package/admin/cli/commands/org-permission-default-grant.d.ts +8 -0
  14. package/admin/cli/commands/org-permission-default-grant.js +306 -0
  15. package/admin/cli/commands/org-permission-default-permission.d.ts +8 -0
  16. package/admin/cli/commands/org-permission-default-permission.js +262 -0
  17. package/admin/cli/commands.js +11 -3
  18. package/admin/cli/executor.d.ts +5 -1
  19. package/admin/orm/index.d.ts +10 -2
  20. package/admin/orm/index.js +10 -2
  21. package/admin/orm/input-types.d.ts +1611 -230
  22. package/admin/orm/input-types.js +9 -1
  23. package/admin/orm/models/appPermissionDefaultGrant.d.ts +54 -0
  24. package/admin/orm/models/appPermissionDefaultGrant.js +104 -0
  25. package/admin/orm/models/appPermissionDefaultPermission.d.ts +54 -0
  26. package/admin/orm/models/appPermissionDefaultPermission.js +104 -0
  27. package/admin/orm/models/index.d.ts +5 -1
  28. package/admin/orm/models/index.js +11 -3
  29. package/admin/orm/models/orgPermissionDefaultGrant.d.ts +54 -0
  30. package/admin/orm/models/orgPermissionDefaultGrant.js +104 -0
  31. package/admin/orm/models/orgPermissionDefaultPermission.d.ts +54 -0
  32. package/admin/orm/models/orgPermissionDefaultPermission.js +104 -0
  33. package/agent/cli/commands/agent-message.js +34 -12
  34. package/agent/cli/commands/agent-task.js +12 -12
  35. package/agent/cli/embedder.d.ts +5 -0
  36. package/agent/cli/embedder.js +46 -9
  37. package/agent/orm/input-types.d.ts +289 -47
  38. package/agent/orm/input-types.js +1 -0
  39. package/api/cli/commands/check-constraint.js +0 -22
  40. package/api/cli/commands/composite-type.d.ts +8 -0
  41. package/api/cli/commands/composite-type.js +424 -0
  42. package/api/cli/commands/enum.js +0 -22
  43. package/api/cli/commands/field.js +0 -22
  44. package/api/cli/commands/foreign-key-constraint.js +0 -22
  45. package/api/cli/commands/index.js +0 -22
  46. package/api/cli/commands/policy.js +0 -22
  47. package/api/cli/commands/primary-key-constraint.js +0 -22
  48. package/api/cli/commands/schema.js +0 -22
  49. package/api/cli/commands/spatial-relation.js +0 -22
  50. package/api/cli/commands/table.js +6 -28
  51. package/api/cli/commands/trigger.js +0 -22
  52. package/api/cli/commands/unique-constraint.js +0 -22
  53. package/api/cli/commands/view-table.js +22 -0
  54. package/api/cli/commands/view.js +0 -22
  55. package/api/cli/commands.js +3 -1
  56. package/api/cli/executor.d.ts +1 -0
  57. package/api/orm/index.d.ts +2 -0
  58. package/api/orm/index.js +2 -0
  59. package/api/orm/input-types.d.ts +1064 -125
  60. package/api/orm/input-types.js +3 -0
  61. package/api/orm/models/compositeType.d.ts +54 -0
  62. package/api/orm/models/compositeType.js +104 -0
  63. package/api/orm/models/index.d.ts +1 -0
  64. package/api/orm/models/index.js +3 -1
  65. package/auth/cli/commands/link-identity.d.ts +8 -0
  66. package/auth/cli/commands/link-identity.js +36 -0
  67. package/auth/cli/commands/sign-in-sms-otp.d.ts +8 -0
  68. package/auth/cli/commands/sign-in-sms-otp.js +36 -0
  69. package/auth/cli/commands/sign-up-sms.d.ts +8 -0
  70. package/auth/cli/commands/sign-up-sms.js +36 -0
  71. package/auth/cli/commands.js +7 -1
  72. package/auth/cli/executor.d.ts +15 -0
  73. package/auth/orm/index.d.ts +15 -0
  74. package/auth/orm/input-types.d.ts +197 -1
  75. package/auth/orm/mutation/index.d.ts +25 -1
  76. package/auth/orm/mutation/index.js +36 -0
  77. package/esm/admin/cli/commands/app-admin-grant.js +3 -1
  78. package/esm/admin/cli/commands/app-grant.js +3 -1
  79. package/esm/admin/cli/commands/app-invite.js +44 -0
  80. package/esm/admin/cli/commands/app-owner-grant.js +3 -1
  81. package/esm/admin/cli/commands/app-permission-default-grant.d.ts +8 -0
  82. package/esm/admin/cli/commands/app-permission-default-grant.js +284 -0
  83. package/esm/admin/cli/commands/app-permission-default-permission.d.ts +8 -0
  84. package/esm/admin/cli/commands/app-permission-default-permission.js +240 -0
  85. package/esm/admin/cli/commands/org-admin-grant.js +3 -1
  86. package/esm/admin/cli/commands/org-grant.js +3 -1
  87. package/esm/admin/cli/commands/org-invite.js +44 -0
  88. package/esm/admin/cli/commands/org-owner-grant.js +3 -1
  89. package/esm/admin/cli/commands/org-permission-default-grant.d.ts +8 -0
  90. package/esm/admin/cli/commands/org-permission-default-grant.js +304 -0
  91. package/esm/admin/cli/commands/org-permission-default-permission.d.ts +8 -0
  92. package/esm/admin/cli/commands/org-permission-default-permission.js +260 -0
  93. package/esm/admin/cli/commands.js +11 -3
  94. package/esm/admin/cli/executor.d.ts +5 -1
  95. package/esm/admin/orm/index.d.ts +10 -2
  96. package/esm/admin/orm/index.js +10 -2
  97. package/esm/admin/orm/input-types.d.ts +1611 -230
  98. package/esm/admin/orm/input-types.js +9 -1
  99. package/esm/admin/orm/models/appPermissionDefaultGrant.d.ts +54 -0
  100. package/esm/admin/orm/models/appPermissionDefaultGrant.js +100 -0
  101. package/esm/admin/orm/models/appPermissionDefaultPermission.d.ts +54 -0
  102. package/esm/admin/orm/models/appPermissionDefaultPermission.js +100 -0
  103. package/esm/admin/orm/models/index.d.ts +5 -1
  104. package/esm/admin/orm/models/index.js +5 -1
  105. package/esm/admin/orm/models/orgPermissionDefaultGrant.d.ts +54 -0
  106. package/esm/admin/orm/models/orgPermissionDefaultGrant.js +100 -0
  107. package/esm/admin/orm/models/orgPermissionDefaultPermission.d.ts +54 -0
  108. package/esm/admin/orm/models/orgPermissionDefaultPermission.js +100 -0
  109. package/esm/agent/cli/commands/agent-message.js +34 -12
  110. package/esm/agent/cli/commands/agent-task.js +12 -12
  111. package/esm/agent/cli/embedder.d.ts +5 -0
  112. package/esm/agent/cli/embedder.js +10 -2
  113. package/esm/agent/orm/input-types.d.ts +289 -47
  114. package/esm/agent/orm/input-types.js +1 -0
  115. package/esm/api/cli/commands/check-constraint.js +0 -22
  116. package/esm/api/cli/commands/composite-type.d.ts +8 -0
  117. package/esm/api/cli/commands/composite-type.js +422 -0
  118. package/esm/api/cli/commands/enum.js +0 -22
  119. package/esm/api/cli/commands/field.js +0 -22
  120. package/esm/api/cli/commands/foreign-key-constraint.js +0 -22
  121. package/esm/api/cli/commands/index.js +0 -22
  122. package/esm/api/cli/commands/policy.js +0 -22
  123. package/esm/api/cli/commands/primary-key-constraint.js +0 -22
  124. package/esm/api/cli/commands/schema.js +0 -22
  125. package/esm/api/cli/commands/spatial-relation.js +0 -22
  126. package/esm/api/cli/commands/table.js +6 -28
  127. package/esm/api/cli/commands/trigger.js +0 -22
  128. package/esm/api/cli/commands/unique-constraint.js +0 -22
  129. package/esm/api/cli/commands/view-table.js +22 -0
  130. package/esm/api/cli/commands/view.js +0 -22
  131. package/esm/api/cli/commands.js +3 -1
  132. package/esm/api/cli/executor.d.ts +1 -0
  133. package/esm/api/orm/index.d.ts +2 -0
  134. package/esm/api/orm/index.js +2 -0
  135. package/esm/api/orm/input-types.d.ts +1064 -125
  136. package/esm/api/orm/input-types.js +3 -0
  137. package/esm/api/orm/models/compositeType.d.ts +54 -0
  138. package/esm/api/orm/models/compositeType.js +100 -0
  139. package/esm/api/orm/models/index.d.ts +1 -0
  140. package/esm/api/orm/models/index.js +1 -0
  141. package/esm/auth/cli/commands/link-identity.d.ts +8 -0
  142. package/esm/auth/cli/commands/link-identity.js +34 -0
  143. package/esm/auth/cli/commands/sign-in-sms-otp.d.ts +8 -0
  144. package/esm/auth/cli/commands/sign-in-sms-otp.js +34 -0
  145. package/esm/auth/cli/commands/sign-up-sms.d.ts +8 -0
  146. package/esm/auth/cli/commands/sign-up-sms.js +34 -0
  147. package/esm/auth/cli/commands.js +7 -1
  148. package/esm/auth/cli/executor.d.ts +15 -0
  149. package/esm/auth/orm/index.d.ts +15 -0
  150. package/esm/auth/orm/input-types.d.ts +197 -1
  151. package/esm/auth/orm/mutation/index.d.ts +25 -1
  152. package/esm/auth/orm/mutation/index.js +36 -0
  153. package/esm/modules/cli/commands/agent-module.js +88 -0
  154. package/esm/modules/cli/commands/billing-module.js +66 -0
  155. package/esm/modules/cli/commands/compute-log-module.js +44 -0
  156. package/esm/modules/cli/commands/config-secrets-module.js +44 -0
  157. package/esm/modules/cli/commands/db-usage-module.js +66 -0
  158. package/esm/modules/cli/commands/entity-type-provision.js +0 -44
  159. package/esm/modules/cli/commands/events-module.js +66 -0
  160. package/esm/modules/cli/commands/function-invocation-module.d.ts +8 -0
  161. package/esm/modules/cli/commands/function-invocation-module.js +580 -0
  162. package/esm/modules/cli/commands/function-module.js +22 -198
  163. package/esm/modules/cli/commands/graph-module.js +22 -0
  164. package/esm/modules/cli/commands/hierarchy-module.js +22 -0
  165. package/esm/modules/cli/commands/identity-providers-module.js +44 -0
  166. package/esm/modules/cli/commands/inference-log-module.js +44 -0
  167. package/esm/modules/cli/commands/invites-module.js +44 -0
  168. package/esm/modules/cli/commands/limits-module.js +44 -0
  169. package/esm/modules/cli/commands/memberships-module.js +88 -0
  170. package/esm/modules/cli/commands/merkle-store-module.js +22 -0
  171. package/esm/modules/cli/commands/namespace-module.js +22 -0
  172. package/esm/modules/cli/commands/notifications-module.js +88 -0
  173. package/esm/modules/cli/commands/permissions-module.js +44 -0
  174. package/esm/modules/cli/commands/plans-module.js +44 -0
  175. package/esm/modules/cli/commands/profiles-module.js +44 -0
  176. package/esm/modules/cli/commands/rate-limit-meters-module.js +66 -0
  177. package/esm/modules/cli/commands/storage-log-module.js +44 -0
  178. package/esm/modules/cli/commands/storage-module.js +66 -0
  179. package/esm/modules/cli/commands/transfer-log-module.js +44 -0
  180. package/esm/modules/cli/commands.js +29 -27
  181. package/esm/modules/cli/executor.d.ts +14 -13
  182. package/esm/modules/orm/index.d.ts +28 -26
  183. package/esm/modules/orm/index.js +28 -26
  184. package/esm/modules/orm/input-types.d.ts +4485 -2514
  185. package/esm/modules/orm/models/functionInvocationModule.d.ts +54 -0
  186. package/esm/modules/orm/models/functionInvocationModule.js +100 -0
  187. package/esm/modules/orm/models/index.d.ts +14 -13
  188. package/esm/modules/orm/models/index.js +14 -13
  189. package/esm/objects/orm/input-types.d.ts +62 -0
  190. package/esm/usage/orm/input-types.d.ts +314 -19
  191. package/modules/cli/commands/agent-module.js +88 -0
  192. package/modules/cli/commands/billing-module.js +66 -0
  193. package/modules/cli/commands/compute-log-module.js +44 -0
  194. package/modules/cli/commands/config-secrets-module.js +44 -0
  195. package/modules/cli/commands/db-usage-module.js +66 -0
  196. package/modules/cli/commands/entity-type-provision.js +0 -44
  197. package/modules/cli/commands/events-module.js +66 -0
  198. package/modules/cli/commands/function-invocation-module.d.ts +8 -0
  199. package/modules/cli/commands/function-invocation-module.js +582 -0
  200. package/modules/cli/commands/function-module.js +22 -198
  201. package/modules/cli/commands/graph-module.js +22 -0
  202. package/modules/cli/commands/hierarchy-module.js +22 -0
  203. package/modules/cli/commands/identity-providers-module.js +44 -0
  204. package/modules/cli/commands/inference-log-module.js +44 -0
  205. package/modules/cli/commands/invites-module.js +44 -0
  206. package/modules/cli/commands/limits-module.js +44 -0
  207. package/modules/cli/commands/memberships-module.js +88 -0
  208. package/modules/cli/commands/merkle-store-module.js +22 -0
  209. package/modules/cli/commands/namespace-module.js +22 -0
  210. package/modules/cli/commands/notifications-module.js +88 -0
  211. package/modules/cli/commands/permissions-module.js +44 -0
  212. package/modules/cli/commands/plans-module.js +44 -0
  213. package/modules/cli/commands/profiles-module.js +44 -0
  214. package/modules/cli/commands/rate-limit-meters-module.js +66 -0
  215. package/modules/cli/commands/storage-log-module.js +44 -0
  216. package/modules/cli/commands/storage-module.js +66 -0
  217. package/modules/cli/commands/transfer-log-module.js +44 -0
  218. package/modules/cli/commands.js +29 -27
  219. package/modules/cli/executor.d.ts +14 -13
  220. package/modules/orm/index.d.ts +28 -26
  221. package/modules/orm/index.js +28 -26
  222. package/modules/orm/input-types.d.ts +4485 -2514
  223. package/modules/orm/models/functionInvocationModule.d.ts +54 -0
  224. package/modules/orm/models/functionInvocationModule.js +104 -0
  225. package/modules/orm/models/index.d.ts +14 -13
  226. package/modules/orm/models/index.js +30 -28
  227. package/objects/orm/input-types.d.ts +62 -0
  228. package/package.json +4 -4
  229. package/usage/orm/input-types.d.ts +314 -19
@@ -7,6 +7,7 @@ export const connectionFieldsMap = {
7
7
  defaultPrivileges: 'DefaultPrivilege',
8
8
  enums: 'Enum',
9
9
  functions: 'Function',
10
+ compositeTypes: 'CompositeType',
10
11
  apiSchemas: 'ApiSchema',
11
12
  },
12
13
  Table: {
@@ -64,6 +65,7 @@ export const connectionFieldsMap = {
64
65
  triggers: 'Trigger',
65
66
  uniqueConstraints: 'UniqueConstraint',
66
67
  views: 'View',
68
+ viewTables: 'ViewTable',
67
69
  viewGrants: 'ViewGrant',
68
70
  viewRules: 'ViewRule',
69
71
  defaultPrivileges: 'DefaultPrivilege',
@@ -72,6 +74,7 @@ export const connectionFieldsMap = {
72
74
  spatialRelations: 'SpatialRelation',
73
75
  functions: 'Function',
74
76
  partitions: 'Partition',
77
+ compositeTypes: 'CompositeType',
75
78
  databaseTransfers: 'DatabaseTransfer',
76
79
  apis: 'Api',
77
80
  apiModules: 'ApiModule',
@@ -0,0 +1,54 @@
1
+ /**
2
+ * CompositeType model for ORM client
3
+ * @generated by @constructive-io/graphql-codegen
4
+ * DO NOT EDIT - changes will be overwritten
5
+ */
6
+ import { OrmClient } from '../client';
7
+ import { QueryBuilder } from '../query-builder';
8
+ import type { ConnectionResult, FindManyArgs, FindFirstArgs, CreateArgs, UpdateArgs, DeleteArgs, InferSelectResult, StrictSelect } from '../select-types';
9
+ import type { CompositeTypeWithRelations, CompositeTypeSelect, CompositeTypeFilter, CompositeTypeOrderBy, CreateCompositeTypeInput, CompositeTypePatch } from '../input-types';
10
+ export declare class CompositeTypeModel {
11
+ private client;
12
+ constructor(client: OrmClient);
13
+ findMany<S extends CompositeTypeSelect>(args: FindManyArgs<S, CompositeTypeFilter, CompositeTypeOrderBy> & {
14
+ select: S;
15
+ } & StrictSelect<S, CompositeTypeSelect>): QueryBuilder<{
16
+ compositeTypes: ConnectionResult<InferSelectResult<CompositeTypeWithRelations, S>>;
17
+ }>;
18
+ findFirst<S extends CompositeTypeSelect>(args: FindFirstArgs<S, CompositeTypeFilter, CompositeTypeOrderBy> & {
19
+ select: S;
20
+ } & StrictSelect<S, CompositeTypeSelect>): QueryBuilder<{
21
+ compositeType: InferSelectResult<CompositeTypeWithRelations, S> | null;
22
+ }>;
23
+ findOne<S extends CompositeTypeSelect>(args: {
24
+ id: string;
25
+ select: S;
26
+ } & StrictSelect<S, CompositeTypeSelect>): QueryBuilder<{
27
+ compositeType: InferSelectResult<CompositeTypeWithRelations, S> | null;
28
+ }>;
29
+ create<S extends CompositeTypeSelect>(args: CreateArgs<S, CreateCompositeTypeInput['compositeType']> & {
30
+ select: S;
31
+ } & StrictSelect<S, CompositeTypeSelect>): QueryBuilder<{
32
+ createCompositeType: {
33
+ compositeType: InferSelectResult<CompositeTypeWithRelations, S>;
34
+ };
35
+ }>;
36
+ update<S extends CompositeTypeSelect>(args: UpdateArgs<S, {
37
+ id: string;
38
+ }, CompositeTypePatch> & {
39
+ select: S;
40
+ } & StrictSelect<S, CompositeTypeSelect>): QueryBuilder<{
41
+ updateCompositeType: {
42
+ compositeType: InferSelectResult<CompositeTypeWithRelations, S>;
43
+ };
44
+ }>;
45
+ delete<S extends CompositeTypeSelect>(args: DeleteArgs<{
46
+ id: string;
47
+ }, S> & {
48
+ select: S;
49
+ } & StrictSelect<S, CompositeTypeSelect>): QueryBuilder<{
50
+ deleteCompositeType: {
51
+ compositeType: InferSelectResult<CompositeTypeWithRelations, S>;
52
+ };
53
+ }>;
54
+ }
@@ -0,0 +1,100 @@
1
+ import { QueryBuilder, buildFindManyDocument, buildFindFirstDocument, buildCreateDocument, buildUpdateByPkDocument, buildDeleteByPkDocument, } from '../query-builder';
2
+ import { connectionFieldsMap } from '../input-types';
3
+ export class CompositeTypeModel {
4
+ client;
5
+ constructor(client) {
6
+ this.client = client;
7
+ }
8
+ findMany(args) {
9
+ const { document, variables } = buildFindManyDocument('CompositeType', 'compositeTypes', args.select, {
10
+ where: args?.where,
11
+ orderBy: args?.orderBy,
12
+ first: args?.first,
13
+ last: args?.last,
14
+ after: args?.after,
15
+ before: args?.before,
16
+ offset: args?.offset,
17
+ }, 'CompositeTypeFilter', 'CompositeTypeOrderBy', connectionFieldsMap);
18
+ return new QueryBuilder({
19
+ client: this.client,
20
+ operation: 'query',
21
+ operationName: 'CompositeType',
22
+ fieldName: 'compositeTypes',
23
+ document,
24
+ variables,
25
+ });
26
+ }
27
+ findFirst(args) {
28
+ const { document, variables } = buildFindFirstDocument('CompositeType', 'compositeTypes', args.select, {
29
+ where: args?.where,
30
+ orderBy: args?.orderBy,
31
+ }, 'CompositeTypeFilter', 'CompositeTypeOrderBy', connectionFieldsMap);
32
+ return new QueryBuilder({
33
+ client: this.client,
34
+ operation: 'query',
35
+ operationName: 'CompositeType',
36
+ fieldName: 'compositeType',
37
+ document,
38
+ variables,
39
+ transform: (data) => ({
40
+ compositeType: data.compositeTypes?.nodes?.[0] ?? null,
41
+ }),
42
+ });
43
+ }
44
+ findOne(args) {
45
+ const { document, variables } = buildFindManyDocument('CompositeType', 'compositeTypes', args.select, {
46
+ where: {
47
+ id: {
48
+ equalTo: args.id,
49
+ },
50
+ },
51
+ first: 1,
52
+ }, 'CompositeTypeFilter', 'CompositeTypeOrderBy', connectionFieldsMap);
53
+ return new QueryBuilder({
54
+ client: this.client,
55
+ operation: 'query',
56
+ operationName: 'CompositeType',
57
+ fieldName: 'compositeType',
58
+ document,
59
+ variables,
60
+ transform: (data) => ({
61
+ compositeType: data.compositeTypes?.nodes?.[0] ?? null,
62
+ }),
63
+ });
64
+ }
65
+ create(args) {
66
+ const { document, variables } = buildCreateDocument('CompositeType', 'createCompositeType', 'compositeType', args.select, args.data, 'CreateCompositeTypeInput', connectionFieldsMap);
67
+ return new QueryBuilder({
68
+ client: this.client,
69
+ operation: 'mutation',
70
+ operationName: 'CompositeType',
71
+ fieldName: 'createCompositeType',
72
+ document,
73
+ variables,
74
+ });
75
+ }
76
+ update(args) {
77
+ const { document, variables } = buildUpdateByPkDocument('CompositeType', 'updateCompositeType', 'compositeType', args.select, args.where.id, args.data, 'UpdateCompositeTypeInput', 'id', 'compositeTypePatch', connectionFieldsMap);
78
+ return new QueryBuilder({
79
+ client: this.client,
80
+ operation: 'mutation',
81
+ operationName: 'CompositeType',
82
+ fieldName: 'updateCompositeType',
83
+ document,
84
+ variables,
85
+ });
86
+ }
87
+ delete(args) {
88
+ const { document, variables } = buildDeleteByPkDocument('CompositeType', 'deleteCompositeType', 'compositeType', {
89
+ id: args.where.id,
90
+ }, 'DeleteCompositeTypeInput', args.select, connectionFieldsMap);
91
+ return new QueryBuilder({
92
+ client: this.client,
93
+ operation: 'mutation',
94
+ operationName: 'CompositeType',
95
+ fieldName: 'deleteCompositeType',
96
+ document,
97
+ variables,
98
+ });
99
+ }
100
+ }
@@ -25,6 +25,7 @@ export { EmbeddingChunkModel } from './embeddingChunk';
25
25
  export { SchemaGrantModel } from './schemaGrant';
26
26
  export { DefaultPrivilegeModel } from './defaultPrivilege';
27
27
  export { EnumModel } from './enum';
28
+ export { CompositeTypeModel } from './compositeType';
28
29
  export { ApiSchemaModel } from './apiSchema';
29
30
  export { ApiModuleModel } from './apiModule';
30
31
  export { DomainModel } from './domain';
@@ -25,6 +25,7 @@ export { EmbeddingChunkModel } from './embeddingChunk';
25
25
  export { SchemaGrantModel } from './schemaGrant';
26
26
  export { DefaultPrivilegeModel } from './defaultPrivilege';
27
27
  export { EnumModel } from './enum';
28
+ export { CompositeTypeModel } from './compositeType';
28
29
  export { ApiSchemaModel } from './apiSchema';
29
30
  export { ApiModuleModel } from './apiModule';
30
31
  export { DomainModel } from './domain';
@@ -0,0 +1,8 @@
1
+ /**
2
+ * CLI command for mutation linkIdentity
3
+ * @generated by @constructive-io/graphql-codegen
4
+ * DO NOT EDIT - changes will be overwritten
5
+ */
6
+ import { CLIOptions, Inquirerer } from 'inquirerer';
7
+ declare const _default: (argv: Partial<Record<string, unknown>>, prompter: Inquirerer, _options: CLIOptions) => Promise<void>;
8
+ export default _default;
@@ -0,0 +1,34 @@
1
+ import { getClient } from '../executor';
2
+ import { unflattenDotNotation, buildSelectFromPaths } from '../utils';
3
+ export default async (argv, prompter, _options) => {
4
+ try {
5
+ if (argv.help || argv.h) {
6
+ console.log('link-identity - linkIdentity\n\nUsage: link-identity [OPTIONS]\n');
7
+ process.exit(0);
8
+ }
9
+ const answers = await prompter.prompt(argv, [
10
+ {
11
+ type: 'text',
12
+ name: 'input',
13
+ message: 'The exclusive input argument for this mutation. An object type, make sure to see documentation for this object\u2019s fields.',
14
+ required: true,
15
+ },
16
+ ]);
17
+ const client = getClient();
18
+ const parsedAnswers = unflattenDotNotation(answers);
19
+ const selectFields = buildSelectFromPaths(argv.select ?? 'clientMutationId');
20
+ const result = await client.mutation
21
+ .linkIdentity(parsedAnswers, {
22
+ select: selectFields,
23
+ })
24
+ .execute();
25
+ console.log(JSON.stringify(result, null, 2));
26
+ }
27
+ catch (error) {
28
+ console.error('Failed: linkIdentity');
29
+ if (error instanceof Error) {
30
+ console.error(error.message);
31
+ }
32
+ process.exit(1);
33
+ }
34
+ };
@@ -0,0 +1,8 @@
1
+ /**
2
+ * CLI command for mutation signInSmsOtp
3
+ * @generated by @constructive-io/graphql-codegen
4
+ * DO NOT EDIT - changes will be overwritten
5
+ */
6
+ import { CLIOptions, Inquirerer } from 'inquirerer';
7
+ declare const _default: (argv: Partial<Record<string, unknown>>, prompter: Inquirerer, _options: CLIOptions) => Promise<void>;
8
+ export default _default;
@@ -0,0 +1,34 @@
1
+ import { getClient } from '../executor';
2
+ import { unflattenDotNotation, buildSelectFromPaths } from '../utils';
3
+ export default async (argv, prompter, _options) => {
4
+ try {
5
+ if (argv.help || argv.h) {
6
+ console.log('sign-in-sms-otp - signInSmsOtp\n\nUsage: sign-in-sms-otp [OPTIONS]\n');
7
+ process.exit(0);
8
+ }
9
+ const answers = await prompter.prompt(argv, [
10
+ {
11
+ type: 'text',
12
+ name: 'input',
13
+ message: 'The exclusive input argument for this mutation. An object type, make sure to see documentation for this object\u2019s fields.',
14
+ required: true,
15
+ },
16
+ ]);
17
+ const client = getClient();
18
+ const parsedAnswers = unflattenDotNotation(answers);
19
+ const selectFields = buildSelectFromPaths(argv.select ?? 'clientMutationId');
20
+ const result = await client.mutation
21
+ .signInSmsOtp(parsedAnswers, {
22
+ select: selectFields,
23
+ })
24
+ .execute();
25
+ console.log(JSON.stringify(result, null, 2));
26
+ }
27
+ catch (error) {
28
+ console.error('Failed: signInSmsOtp');
29
+ if (error instanceof Error) {
30
+ console.error(error.message);
31
+ }
32
+ process.exit(1);
33
+ }
34
+ };
@@ -0,0 +1,8 @@
1
+ /**
2
+ * CLI command for mutation signUpSms
3
+ * @generated by @constructive-io/graphql-codegen
4
+ * DO NOT EDIT - changes will be overwritten
5
+ */
6
+ import { CLIOptions, Inquirerer } from 'inquirerer';
7
+ declare const _default: (argv: Partial<Record<string, unknown>>, prompter: Inquirerer, _options: CLIOptions) => Promise<void>;
8
+ export default _default;
@@ -0,0 +1,34 @@
1
+ import { getClient } from '../executor';
2
+ import { unflattenDotNotation, buildSelectFromPaths } from '../utils';
3
+ export default async (argv, prompter, _options) => {
4
+ try {
5
+ if (argv.help || argv.h) {
6
+ console.log('sign-up-sms - signUpSms\n\nUsage: sign-up-sms [OPTIONS]\n');
7
+ process.exit(0);
8
+ }
9
+ const answers = await prompter.prompt(argv, [
10
+ {
11
+ type: 'text',
12
+ name: 'input',
13
+ message: 'The exclusive input argument for this mutation. An object type, make sure to see documentation for this object\u2019s fields.',
14
+ required: true,
15
+ },
16
+ ]);
17
+ const client = getClient();
18
+ const parsedAnswers = unflattenDotNotation(answers);
19
+ const selectFields = buildSelectFromPaths(argv.select ?? 'clientMutationId');
20
+ const result = await client.mutation
21
+ .signUpSms(parsedAnswers, {
22
+ select: selectFields,
23
+ })
24
+ .execute();
25
+ console.log(JSON.stringify(result, null, 2));
26
+ }
27
+ catch (error) {
28
+ console.error('Failed: signUpSms');
29
+ if (error instanceof Error) {
30
+ console.error(error.message);
31
+ }
32
+ process.exit(1);
33
+ }
34
+ };
@@ -34,8 +34,11 @@ import verifyEmailCmd from './commands/verify-email';
34
34
  import provisionNewUserCmd from './commands/provision-new-user';
35
35
  import resetPasswordCmd from './commands/reset-password';
36
36
  import signInCrossOriginCmd from './commands/sign-in-cross-origin';
37
+ import signInSmsOtpCmd from './commands/sign-in-sms-otp';
38
+ import signUpSmsCmd from './commands/sign-up-sms';
37
39
  import signUpCmd from './commands/sign-up';
38
40
  import signInCmd from './commands/sign-in';
41
+ import linkIdentityCmd from './commands/link-identity';
39
42
  import extendTokenExpiresCmd from './commands/extend-token-expires';
40
43
  import createApiKeyCmd from './commands/create-api-key';
41
44
  import requestCrossOriginTokenCmd from './commands/request-cross-origin-token';
@@ -73,8 +76,11 @@ const createCommandMap = () => ({
73
76
  'provision-new-user': provisionNewUserCmd,
74
77
  'reset-password': resetPasswordCmd,
75
78
  'sign-in-cross-origin': signInCrossOriginCmd,
79
+ 'sign-in-sms-otp': signInSmsOtpCmd,
80
+ 'sign-up-sms': signUpSmsCmd,
76
81
  'sign-up': signUpCmd,
77
82
  'sign-in': signInCmd,
83
+ 'link-identity': linkIdentityCmd,
78
84
  'extend-token-expires': extendTokenExpiresCmd,
79
85
  'create-api-key': createApiKeyCmd,
80
86
  'request-cross-origin-token': requestCrossOriginTokenCmd,
@@ -82,7 +88,7 @@ const createCommandMap = () => ({
82
88
  'send-verification-email': sendVerificationEmailCmd,
83
89
  'provision-bucket': provisionBucketCmd,
84
90
  });
85
- const usage = '\ncsdk <command>\n\nCommands:\n context Manage API contexts\n auth Manage authentication\n email email CRUD operations\n phone-number phoneNumber CRUD operations\n crypto-address cryptoAddress CRUD operations\n webauthn-credential webauthnCredential CRUD operations\n audit-log-auth auditLogAuth CRUD operations\n identity-provider identityProvider CRUD operations\n role-type roleType CRUD operations\n user-connected-account userConnectedAccount CRUD operations\n user user CRUD operations\n current-user-agent currentUserAgent\n current-ip-address currentIpAddress\n current-user-id currentUserId\n require-step-up requireStepUp\n current-user currentUser\n sign-out signOut\n send-account-deletion-email sendAccountDeletionEmail\n check-password checkPassword\n disconnect-account disconnectAccount\n revoke-api-key revokeApiKey\n revoke-session revokeSession\n verify-password verifyPassword\n verify-totp verifyTotp\n confirm-delete-account confirmDeleteAccount\n set-password setPassword\n verify-email verifyEmail\n provision-new-user provisionNewUser\n reset-password resetPassword\n sign-in-cross-origin signInCrossOrigin\n sign-up signUp\n sign-in signIn\n extend-token-expires extendTokenExpires\n create-api-key createApiKey\n request-cross-origin-token requestCrossOriginToken\n forgot-password forgotPassword\n send-verification-email sendVerificationEmail\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';
91
+ const usage = '\ncsdk <command>\n\nCommands:\n context Manage API contexts\n auth Manage authentication\n email email CRUD operations\n phone-number phoneNumber CRUD operations\n crypto-address cryptoAddress CRUD operations\n webauthn-credential webauthnCredential CRUD operations\n audit-log-auth auditLogAuth CRUD operations\n identity-provider identityProvider CRUD operations\n role-type roleType CRUD operations\n user-connected-account userConnectedAccount CRUD operations\n user user CRUD operations\n current-user-agent currentUserAgent\n current-ip-address currentIpAddress\n current-user-id currentUserId\n require-step-up requireStepUp\n current-user currentUser\n sign-out signOut\n send-account-deletion-email sendAccountDeletionEmail\n check-password checkPassword\n disconnect-account disconnectAccount\n revoke-api-key revokeApiKey\n revoke-session revokeSession\n verify-password verifyPassword\n verify-totp verifyTotp\n confirm-delete-account confirmDeleteAccount\n set-password setPassword\n verify-email verifyEmail\n provision-new-user provisionNewUser\n reset-password resetPassword\n sign-in-cross-origin signInCrossOrigin\n sign-in-sms-otp signInSmsOtp\n sign-up-sms signUpSms\n sign-up signUp\n sign-in signIn\n link-identity linkIdentity\n extend-token-expires extendTokenExpires\n create-api-key createApiKey\n request-cross-origin-token requestCrossOriginToken\n forgot-password forgotPassword\n send-verification-email sendVerificationEmail\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';
86
92
  export const commands = async (argv, prompter, options) => {
87
93
  if (argv.help || argv.h) {
88
94
  console.log(usage);
@@ -107,6 +107,16 @@ export declare function getClient(contextName?: string): {
107
107
  } & import("..").StrictSelect<S, import("../orm/input-types").SignInCrossOriginPayloadSelect>) => import("..").QueryBuilder<{
108
108
  signInCrossOrigin: import("..").InferSelectResult<import("../orm/input-types").SignInCrossOriginPayload, S> | null;
109
109
  }>;
110
+ signInSmsOtp: <S extends import("../orm/input-types").SignInSmsOtpPayloadSelect>(args: import("../orm/mutation").SignInSmsOtpVariables, options: {
111
+ select: S;
112
+ } & import("..").StrictSelect<S, import("../orm/input-types").SignInSmsOtpPayloadSelect>) => import("..").QueryBuilder<{
113
+ signInSmsOtp: import("..").InferSelectResult<import("../orm/input-types").SignInSmsOtpPayload, S> | null;
114
+ }>;
115
+ signUpSms: <S extends import("../orm/input-types").SignUpSmsPayloadSelect>(args: import("../orm/mutation").SignUpSmsVariables, options: {
116
+ select: S;
117
+ } & import("..").StrictSelect<S, import("../orm/input-types").SignUpSmsPayloadSelect>) => import("..").QueryBuilder<{
118
+ signUpSms: import("..").InferSelectResult<import("../orm/input-types").SignUpSmsPayload, S> | null;
119
+ }>;
110
120
  signUp: <S extends import("../orm/input-types").SignUpPayloadSelect>(args: import("../orm/mutation").SignUpVariables, options: {
111
121
  select: S;
112
122
  } & import("..").StrictSelect<S, import("../orm/input-types").SignUpPayloadSelect>) => import("..").QueryBuilder<{
@@ -117,6 +127,11 @@ export declare function getClient(contextName?: string): {
117
127
  } & import("..").StrictSelect<S, import("../orm/input-types").SignInPayloadSelect>) => import("..").QueryBuilder<{
118
128
  signIn: import("..").InferSelectResult<import("../orm/input-types").SignInPayload, S> | null;
119
129
  }>;
130
+ linkIdentity: <S extends import("../orm/input-types").LinkIdentityPayloadSelect>(args: import("../orm/mutation").LinkIdentityVariables, options: {
131
+ select: S;
132
+ } & import("..").StrictSelect<S, import("../orm/input-types").LinkIdentityPayloadSelect>) => import("..").QueryBuilder<{
133
+ linkIdentity: import("..").InferSelectResult<import("../orm/input-types").LinkIdentityPayload, S> | null;
134
+ }>;
120
135
  extendTokenExpires: <S extends import("../orm/input-types").ExtendTokenExpiresPayloadSelect>(args: import("../orm/mutation").ExtendTokenExpiresVariables, options: {
121
136
  select: S;
122
137
  } & import("..").StrictSelect<S, import("../orm/input-types").ExtendTokenExpiresPayloadSelect>) => import("..").QueryBuilder<{
@@ -146,6 +146,16 @@ export declare function createClient(config: OrmClientConfig): {
146
146
  } & import("./select-types").StrictSelect<S, import("./input-types").SignInCrossOriginPayloadSelect>) => import("./query-builder").QueryBuilder<{
147
147
  signInCrossOrigin: import("./select-types").InferSelectResult<import("./input-types").SignInCrossOriginPayload, S> | null;
148
148
  }>;
149
+ signInSmsOtp: <S extends import("./input-types").SignInSmsOtpPayloadSelect>(args: import("./mutation").SignInSmsOtpVariables, options: {
150
+ select: S;
151
+ } & import("./select-types").StrictSelect<S, import("./input-types").SignInSmsOtpPayloadSelect>) => import("./query-builder").QueryBuilder<{
152
+ signInSmsOtp: import("./select-types").InferSelectResult<import("./input-types").SignInSmsOtpPayload, S> | null;
153
+ }>;
154
+ signUpSms: <S extends import("./input-types").SignUpSmsPayloadSelect>(args: import("./mutation").SignUpSmsVariables, options: {
155
+ select: S;
156
+ } & import("./select-types").StrictSelect<S, import("./input-types").SignUpSmsPayloadSelect>) => import("./query-builder").QueryBuilder<{
157
+ signUpSms: import("./select-types").InferSelectResult<import("./input-types").SignUpSmsPayload, S> | null;
158
+ }>;
149
159
  signUp: <S extends import("./input-types").SignUpPayloadSelect>(args: import("./mutation").SignUpVariables, options: {
150
160
  select: S;
151
161
  } & import("./select-types").StrictSelect<S, import("./input-types").SignUpPayloadSelect>) => import("./query-builder").QueryBuilder<{
@@ -156,6 +166,11 @@ export declare function createClient(config: OrmClientConfig): {
156
166
  } & import("./select-types").StrictSelect<S, import("./input-types").SignInPayloadSelect>) => import("./query-builder").QueryBuilder<{
157
167
  signIn: import("./select-types").InferSelectResult<import("./input-types").SignInPayload, S> | null;
158
168
  }>;
169
+ linkIdentity: <S extends import("./input-types").LinkIdentityPayloadSelect>(args: import("./mutation").LinkIdentityVariables, options: {
170
+ select: S;
171
+ } & import("./select-types").StrictSelect<S, import("./input-types").LinkIdentityPayloadSelect>) => import("./query-builder").QueryBuilder<{
172
+ linkIdentity: import("./select-types").InferSelectResult<import("./input-types").LinkIdentityPayload, S> | null;
173
+ }>;
159
174
  extendTokenExpires: <S extends import("./input-types").ExtendTokenExpiresPayloadSelect>(args: import("./mutation").ExtendTokenExpiresVariables, options: {
160
175
  select: S;
161
176
  } & import("./select-types").StrictSelect<S, import("./input-types").ExtendTokenExpiresPayloadSelect>) => import("./query-builder").QueryBuilder<{