@constructive-sdk/cli 0.17.1 → 0.17.3

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 (213) hide show
  1. package/admin/cli/commands/app-invite.js +22 -0
  2. package/admin/cli/commands/app-limit-default.js +22 -0
  3. package/admin/cli/commands/{confirm-upload.d.ts → app-limit-event.d.ts} +1 -1
  4. package/admin/cli/commands/app-limit-event.js +212 -0
  5. package/admin/cli/commands/app-limit.js +66 -0
  6. package/admin/cli/commands/app-membership.js +0 -22
  7. package/admin/cli/commands/org-invite.js +22 -0
  8. package/{esm/admin/cli/commands/confirm-upload.d.ts → admin/cli/commands/org-limit-aggregate.d.ts} +1 -1
  9. package/admin/cli/commands/org-limit-aggregate.js +362 -0
  10. package/admin/cli/commands/org-limit-default.js +22 -0
  11. package/{auth/cli/commands/confirm-upload.d.ts → admin/cli/commands/org-limit-event.d.ts} +1 -1
  12. package/admin/cli/commands/org-limit-event.js +212 -0
  13. package/admin/cli/commands/org-limit.js +66 -0
  14. package/admin/cli/commands/org-membership-setting.js +44 -0
  15. package/admin/cli/commands.js +25 -21
  16. package/admin/cli/executor.d.ts +12 -14
  17. package/admin/orm/index.d.ts +24 -23
  18. package/admin/orm/index.js +24 -18
  19. package/admin/orm/input-types.d.ts +1297 -839
  20. package/admin/orm/models/appLimitEvent.d.ts +32 -0
  21. package/admin/orm/models/appLimitEvent.js +55 -0
  22. package/admin/orm/models/index.d.ts +12 -9
  23. package/admin/orm/models/index.js +25 -19
  24. package/admin/orm/models/orgLimitAggregate.d.ts +56 -0
  25. package/admin/orm/models/orgLimitAggregate.js +100 -0
  26. package/admin/orm/models/orgLimitEvent.d.ts +32 -0
  27. package/admin/orm/models/orgLimitEvent.js +55 -0
  28. package/admin/orm/mutation/index.d.ts +1 -15
  29. package/admin/orm/mutation/index.js +0 -12
  30. package/auth/cli/commands.js +1 -3
  31. package/auth/cli/executor.d.ts +0 -5
  32. package/auth/orm/index.d.ts +0 -5
  33. package/auth/orm/input-types.d.ts +0 -20
  34. package/auth/orm/mutation/index.d.ts +1 -15
  35. package/auth/orm/mutation/index.js +0 -12
  36. package/esm/admin/cli/commands/app-invite.js +22 -0
  37. package/esm/admin/cli/commands/app-limit-default.js +22 -0
  38. package/esm/{auth/cli/commands/confirm-upload.d.ts → admin/cli/commands/app-limit-event.d.ts} +1 -1
  39. package/esm/admin/cli/commands/app-limit-event.js +210 -0
  40. package/esm/admin/cli/commands/app-limit.js +66 -0
  41. package/esm/admin/cli/commands/app-membership.js +0 -22
  42. package/esm/admin/cli/commands/org-invite.js +22 -0
  43. package/esm/admin/cli/commands/org-limit-aggregate.d.ts +8 -0
  44. package/esm/admin/cli/commands/org-limit-aggregate.js +360 -0
  45. package/esm/admin/cli/commands/org-limit-default.js +22 -0
  46. package/esm/admin/cli/commands/org-limit-event.d.ts +8 -0
  47. package/esm/admin/cli/commands/org-limit-event.js +210 -0
  48. package/esm/admin/cli/commands/org-limit.js +66 -0
  49. package/esm/admin/cli/commands/org-membership-setting.js +44 -0
  50. package/esm/admin/cli/commands.js +25 -21
  51. package/esm/admin/cli/executor.d.ts +12 -14
  52. package/esm/admin/orm/index.d.ts +24 -23
  53. package/esm/admin/orm/index.js +24 -18
  54. package/esm/admin/orm/input-types.d.ts +1297 -839
  55. package/esm/admin/orm/models/appLimitEvent.d.ts +32 -0
  56. package/esm/admin/orm/models/appLimitEvent.js +51 -0
  57. package/esm/admin/orm/models/index.d.ts +12 -9
  58. package/esm/admin/orm/models/index.js +12 -9
  59. package/esm/admin/orm/models/orgLimitAggregate.d.ts +56 -0
  60. package/esm/admin/orm/models/orgLimitAggregate.js +96 -0
  61. package/esm/admin/orm/models/orgLimitEvent.d.ts +32 -0
  62. package/esm/admin/orm/models/orgLimitEvent.js +51 -0
  63. package/esm/admin/orm/mutation/index.d.ts +1 -15
  64. package/esm/admin/orm/mutation/index.js +0 -12
  65. package/esm/auth/cli/commands.js +1 -3
  66. package/esm/auth/cli/executor.d.ts +0 -5
  67. package/esm/auth/orm/index.d.ts +0 -5
  68. package/esm/auth/orm/input-types.d.ts +0 -20
  69. package/esm/auth/orm/mutation/index.d.ts +1 -15
  70. package/esm/auth/orm/mutation/index.js +0 -12
  71. package/esm/objects/cli/commands.js +1 -3
  72. package/esm/objects/cli/executor.d.ts +0 -5
  73. package/esm/objects/orm/index.d.ts +0 -5
  74. package/esm/objects/orm/input-types.d.ts +0 -20
  75. package/esm/objects/orm/mutation/index.d.ts +1 -15
  76. package/esm/objects/orm/mutation/index.js +0 -12
  77. package/esm/public/cli/commands/agent-message.d.ts +8 -0
  78. package/esm/public/cli/commands/agent-message.js +324 -0
  79. package/esm/public/cli/commands/agent-task.d.ts +8 -0
  80. package/esm/public/cli/commands/agent-task.js +368 -0
  81. package/esm/public/cli/commands/agent-thread.d.ts +8 -0
  82. package/esm/public/cli/commands/agent-thread.js +372 -0
  83. package/esm/public/cli/commands/app-invite.js +22 -0
  84. package/esm/public/cli/commands/app-limit-default.js +22 -0
  85. package/esm/public/cli/commands/app-limit-event.d.ts +8 -0
  86. package/esm/public/cli/commands/app-limit-event.js +210 -0
  87. package/esm/public/cli/commands/app-limit.js +66 -0
  88. package/esm/public/cli/commands/app-membership.js +0 -22
  89. package/esm/public/cli/commands/billing-module.d.ts +8 -0
  90. package/esm/public/cli/commands/billing-module.js +492 -0
  91. package/esm/public/cli/commands/limits-module.js +22 -0
  92. package/esm/public/cli/commands/node-type-registry.d.ts +8 -0
  93. package/esm/public/cli/commands/node-type-registry.js +343 -0
  94. package/esm/public/cli/commands/org-invite.js +22 -0
  95. package/esm/public/cli/commands/org-limit-aggregate.d.ts +8 -0
  96. package/esm/public/cli/commands/org-limit-aggregate.js +360 -0
  97. package/esm/public/cli/commands/org-limit-default.js +22 -0
  98. package/esm/public/cli/commands/org-limit-event.d.ts +8 -0
  99. package/esm/public/cli/commands/org-limit-event.js +210 -0
  100. package/esm/public/cli/commands/org-limit.js +66 -0
  101. package/esm/public/cli/commands/org-membership-setting.js +44 -0
  102. package/esm/public/cli/commands/plans-module.d.ts +8 -0
  103. package/esm/public/cli/commands/plans-module.js +426 -0
  104. package/esm/public/cli/commands/profiles-module.js +44 -0
  105. package/esm/public/cli/commands/storage-module.js +22 -44
  106. package/esm/public/cli/commands.js +45 -29
  107. package/esm/public/cli/executor.d.ts +38 -34
  108. package/esm/public/orm/index.d.ts +56 -43
  109. package/esm/public/orm/index.js +36 -18
  110. package/esm/public/orm/input-types.d.ts +2983 -1112
  111. package/esm/public/orm/input-types.js +9 -0
  112. package/esm/public/orm/models/agentMessage.d.ts +56 -0
  113. package/esm/public/orm/models/agentMessage.js +96 -0
  114. package/esm/public/orm/models/agentTask.d.ts +56 -0
  115. package/esm/public/orm/models/agentTask.js +96 -0
  116. package/esm/public/orm/models/agentThread.d.ts +56 -0
  117. package/esm/public/orm/models/agentThread.js +96 -0
  118. package/esm/public/orm/models/appLimitEvent.d.ts +32 -0
  119. package/esm/public/orm/models/appLimitEvent.js +51 -0
  120. package/esm/public/orm/models/billingModule.d.ts +56 -0
  121. package/esm/public/orm/models/billingModule.js +96 -0
  122. package/esm/public/orm/models/index.d.ts +18 -9
  123. package/esm/public/orm/models/index.js +18 -9
  124. package/esm/public/orm/models/nodeTypeRegistry.d.ts +56 -0
  125. package/esm/public/orm/models/nodeTypeRegistry.js +96 -0
  126. package/esm/public/orm/models/orgLimitAggregate.d.ts +56 -0
  127. package/esm/public/orm/models/orgLimitAggregate.js +96 -0
  128. package/esm/public/orm/models/orgLimitEvent.d.ts +32 -0
  129. package/esm/public/orm/models/orgLimitEvent.js +51 -0
  130. package/esm/public/orm/models/plansModule.d.ts +56 -0
  131. package/esm/public/orm/models/plansModule.js +96 -0
  132. package/esm/public/orm/mutation/index.d.ts +17 -31
  133. package/esm/public/orm/mutation/index.js +24 -36
  134. package/esm/public/orm/query/index.d.ts +28 -28
  135. package/esm/public/orm/query/index.js +48 -48
  136. package/objects/cli/commands.js +1 -3
  137. package/objects/cli/executor.d.ts +0 -5
  138. package/objects/orm/index.d.ts +0 -5
  139. package/objects/orm/input-types.d.ts +0 -20
  140. package/objects/orm/mutation/index.d.ts +1 -15
  141. package/objects/orm/mutation/index.js +0 -12
  142. package/package.json +4 -4
  143. package/public/cli/commands/agent-message.d.ts +8 -0
  144. package/public/cli/commands/agent-message.js +326 -0
  145. package/public/cli/commands/agent-task.d.ts +8 -0
  146. package/public/cli/commands/agent-task.js +370 -0
  147. package/public/cli/commands/agent-thread.d.ts +8 -0
  148. package/public/cli/commands/agent-thread.js +374 -0
  149. package/public/cli/commands/app-invite.js +22 -0
  150. package/public/cli/commands/app-limit-default.js +22 -0
  151. package/public/cli/commands/app-limit-event.d.ts +8 -0
  152. package/public/cli/commands/app-limit-event.js +212 -0
  153. package/public/cli/commands/app-limit.js +66 -0
  154. package/public/cli/commands/app-membership.js +0 -22
  155. package/public/cli/commands/billing-module.d.ts +8 -0
  156. package/public/cli/commands/billing-module.js +494 -0
  157. package/public/cli/commands/limits-module.js +22 -0
  158. package/public/cli/commands/node-type-registry.d.ts +8 -0
  159. package/public/cli/commands/node-type-registry.js +345 -0
  160. package/public/cli/commands/org-invite.js +22 -0
  161. package/public/cli/commands/org-limit-aggregate.d.ts +8 -0
  162. package/public/cli/commands/org-limit-aggregate.js +362 -0
  163. package/public/cli/commands/org-limit-default.js +22 -0
  164. package/public/cli/commands/org-limit-event.d.ts +8 -0
  165. package/public/cli/commands/org-limit-event.js +212 -0
  166. package/public/cli/commands/org-limit.js +66 -0
  167. package/public/cli/commands/org-membership-setting.js +44 -0
  168. package/public/cli/commands/plans-module.d.ts +8 -0
  169. package/public/cli/commands/plans-module.js +428 -0
  170. package/public/cli/commands/profiles-module.js +44 -0
  171. package/public/cli/commands/storage-module.js +22 -44
  172. package/public/cli/commands.js +45 -29
  173. package/public/cli/executor.d.ts +38 -34
  174. package/public/orm/index.d.ts +56 -43
  175. package/public/orm/index.js +36 -18
  176. package/public/orm/input-types.d.ts +2983 -1112
  177. package/public/orm/input-types.js +9 -0
  178. package/public/orm/models/agentMessage.d.ts +56 -0
  179. package/public/orm/models/agentMessage.js +100 -0
  180. package/public/orm/models/agentTask.d.ts +56 -0
  181. package/public/orm/models/agentTask.js +100 -0
  182. package/public/orm/models/agentThread.d.ts +56 -0
  183. package/public/orm/models/agentThread.js +100 -0
  184. package/public/orm/models/appLimitEvent.d.ts +32 -0
  185. package/public/orm/models/appLimitEvent.js +55 -0
  186. package/public/orm/models/billingModule.d.ts +56 -0
  187. package/public/orm/models/billingModule.js +100 -0
  188. package/public/orm/models/index.d.ts +18 -9
  189. package/public/orm/models/index.js +39 -21
  190. package/public/orm/models/nodeTypeRegistry.d.ts +56 -0
  191. package/public/orm/models/nodeTypeRegistry.js +100 -0
  192. package/public/orm/models/orgLimitAggregate.d.ts +56 -0
  193. package/public/orm/models/orgLimitAggregate.js +100 -0
  194. package/public/orm/models/orgLimitEvent.d.ts +32 -0
  195. package/public/orm/models/orgLimitEvent.js +55 -0
  196. package/public/orm/models/plansModule.d.ts +56 -0
  197. package/public/orm/models/plansModule.js +100 -0
  198. package/public/orm/mutation/index.d.ts +17 -31
  199. package/public/orm/mutation/index.js +24 -36
  200. package/public/orm/query/index.d.ts +28 -28
  201. package/public/orm/query/index.js +48 -48
  202. package/admin/cli/commands/confirm-upload.js +0 -36
  203. package/auth/cli/commands/confirm-upload.js +0 -36
  204. package/esm/admin/cli/commands/confirm-upload.js +0 -34
  205. package/esm/auth/cli/commands/confirm-upload.js +0 -34
  206. package/esm/objects/cli/commands/confirm-upload.d.ts +0 -8
  207. package/esm/objects/cli/commands/confirm-upload.js +0 -34
  208. package/esm/public/cli/commands/confirm-upload.d.ts +0 -8
  209. package/esm/public/cli/commands/confirm-upload.js +0 -34
  210. package/objects/cli/commands/confirm-upload.d.ts +0 -8
  211. package/objects/cli/commands/confirm-upload.js +0 -36
  212. package/public/cli/commands/confirm-upload.d.ts +0 -8
  213. package/public/cli/commands/confirm-upload.js +0 -36
@@ -0,0 +1,32 @@
1
+ /**
2
+ * AppLimitEvent 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, InferSelectResult, StrictSelect } from '../select-types';
9
+ import type { AppLimitEventWithRelations, AppLimitEventSelect, AppLimitEventFilter, AppLimitEventOrderBy, CreateAppLimitEventInput } from '../input-types';
10
+ export declare class AppLimitEventModel {
11
+ private client;
12
+ constructor(client: OrmClient);
13
+ findMany<S extends AppLimitEventSelect>(args: FindManyArgs<S, AppLimitEventFilter, AppLimitEventOrderBy> & {
14
+ select: S;
15
+ } & StrictSelect<S, AppLimitEventSelect>): QueryBuilder<{
16
+ appLimitEvents: ConnectionResult<InferSelectResult<AppLimitEventWithRelations, S>>;
17
+ }>;
18
+ findFirst<S extends AppLimitEventSelect>(args: FindFirstArgs<S, AppLimitEventFilter> & {
19
+ select: S;
20
+ } & StrictSelect<S, AppLimitEventSelect>): QueryBuilder<{
21
+ appLimitEvents: {
22
+ nodes: InferSelectResult<AppLimitEventWithRelations, S>[];
23
+ };
24
+ }>;
25
+ create<S extends AppLimitEventSelect>(args: CreateArgs<S, CreateAppLimitEventInput['appLimitEvent']> & {
26
+ select: S;
27
+ } & StrictSelect<S, AppLimitEventSelect>): QueryBuilder<{
28
+ createAppLimitEvent: {
29
+ appLimitEvent: InferSelectResult<AppLimitEventWithRelations, S>;
30
+ };
31
+ }>;
32
+ }
@@ -0,0 +1,51 @@
1
+ import { QueryBuilder, buildFindManyDocument, buildFindFirstDocument, buildCreateDocument, } from '../query-builder';
2
+ import { connectionFieldsMap } from '../input-types';
3
+ export class AppLimitEventModel {
4
+ client;
5
+ constructor(client) {
6
+ this.client = client;
7
+ }
8
+ findMany(args) {
9
+ const { document, variables } = buildFindManyDocument('AppLimitEvent', 'appLimitEvents', 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
+ }, 'AppLimitEventFilter', 'AppLimitEventOrderBy', connectionFieldsMap);
18
+ return new QueryBuilder({
19
+ client: this.client,
20
+ operation: 'query',
21
+ operationName: 'AppLimitEvent',
22
+ fieldName: 'appLimitEvents',
23
+ document,
24
+ variables,
25
+ });
26
+ }
27
+ findFirst(args) {
28
+ const { document, variables } = buildFindFirstDocument('AppLimitEvent', 'appLimitEvents', args.select, {
29
+ where: args?.where,
30
+ }, 'AppLimitEventFilter', connectionFieldsMap);
31
+ return new QueryBuilder({
32
+ client: this.client,
33
+ operation: 'query',
34
+ operationName: 'AppLimitEvent',
35
+ fieldName: 'appLimitEvents',
36
+ document,
37
+ variables,
38
+ });
39
+ }
40
+ create(args) {
41
+ const { document, variables } = buildCreateDocument('AppLimitEvent', 'createAppLimitEvent', 'appLimitEvent', args.select, args.data, 'CreateAppLimitEventInput', connectionFieldsMap);
42
+ return new QueryBuilder({
43
+ client: this.client,
44
+ operation: 'mutation',
45
+ operationName: 'AppLimitEvent',
46
+ fieldName: 'createAppLimitEvent',
47
+ document,
48
+ variables,
49
+ });
50
+ }
51
+ }
@@ -13,27 +13,30 @@ export { AppPermissionDefaultModel } from './appPermissionDefault';
13
13
  export { OrgPermissionDefaultModel } from './orgPermissionDefault';
14
14
  export { AppAdminGrantModel } from './appAdminGrant';
15
15
  export { AppOwnerGrantModel } from './appOwnerGrant';
16
- export { AppLimitDefaultModel } from './appLimitDefault';
17
- export { OrgLimitDefaultModel } from './orgLimitDefault';
18
- export { OrgAdminGrantModel } from './orgAdminGrant';
19
- export { OrgOwnerGrantModel } from './orgOwnerGrant';
20
- export { AppLimitModel } from './appLimit';
21
16
  export { AppAchievementModel } from './appAchievement';
22
17
  export { AppStepModel } from './appStep';
23
- export { AppClaimedInviteModel } from './appClaimedInvite';
24
- export { OrgChartEdgeGrantModel } from './orgChartEdgeGrant';
25
- export { OrgLimitModel } from './orgLimit';
18
+ export { OrgAdminGrantModel } from './orgAdminGrant';
19
+ export { OrgOwnerGrantModel } from './orgOwnerGrant';
26
20
  export { MembershipTypeModel } from './membershipType';
21
+ export { AppLimitDefaultModel } from './appLimitDefault';
22
+ export { OrgLimitDefaultModel } from './orgLimitDefault';
23
+ export { OrgChartEdgeGrantModel } from './orgChartEdgeGrant';
24
+ export { AppClaimedInviteModel } from './appClaimedInvite';
27
25
  export { AppGrantModel } from './appGrant';
28
26
  export { AppMembershipDefaultModel } from './appMembershipDefault';
29
27
  export { OrgMembershipDefaultModel } from './orgMembershipDefault';
30
28
  export { OrgClaimedInviteModel } from './orgClaimedInvite';
29
+ export { AppLimitEventModel } from './appLimitEvent';
30
+ export { OrgLimitEventModel } from './orgLimitEvent';
31
31
  export { OrgGrantModel } from './orgGrant';
32
32
  export { OrgChartEdgeModel } from './orgChartEdge';
33
+ export { AppLimitModel } from './appLimit';
34
+ export { OrgLimitAggregateModel } from './orgLimitAggregate';
33
35
  export { OrgMemberProfileModel } from './orgMemberProfile';
34
- export { OrgMembershipSettingModel } from './orgMembershipSetting';
36
+ export { OrgLimitModel } from './orgLimit';
35
37
  export { AppLevelModel } from './appLevel';
36
38
  export { AppInviteModel } from './appInvite';
39
+ export { OrgMembershipSettingModel } from './orgMembershipSetting';
37
40
  export { OrgInviteModel } from './orgInvite';
38
41
  export { AppMembershipModel } from './appMembership';
39
42
  export { OrgMembershipModel } from './orgMembership';
@@ -13,27 +13,30 @@ export { AppPermissionDefaultModel } from './appPermissionDefault';
13
13
  export { OrgPermissionDefaultModel } from './orgPermissionDefault';
14
14
  export { AppAdminGrantModel } from './appAdminGrant';
15
15
  export { AppOwnerGrantModel } from './appOwnerGrant';
16
- export { AppLimitDefaultModel } from './appLimitDefault';
17
- export { OrgLimitDefaultModel } from './orgLimitDefault';
18
- export { OrgAdminGrantModel } from './orgAdminGrant';
19
- export { OrgOwnerGrantModel } from './orgOwnerGrant';
20
- export { AppLimitModel } from './appLimit';
21
16
  export { AppAchievementModel } from './appAchievement';
22
17
  export { AppStepModel } from './appStep';
23
- export { AppClaimedInviteModel } from './appClaimedInvite';
24
- export { OrgChartEdgeGrantModel } from './orgChartEdgeGrant';
25
- export { OrgLimitModel } from './orgLimit';
18
+ export { OrgAdminGrantModel } from './orgAdminGrant';
19
+ export { OrgOwnerGrantModel } from './orgOwnerGrant';
26
20
  export { MembershipTypeModel } from './membershipType';
21
+ export { AppLimitDefaultModel } from './appLimitDefault';
22
+ export { OrgLimitDefaultModel } from './orgLimitDefault';
23
+ export { OrgChartEdgeGrantModel } from './orgChartEdgeGrant';
24
+ export { AppClaimedInviteModel } from './appClaimedInvite';
27
25
  export { AppGrantModel } from './appGrant';
28
26
  export { AppMembershipDefaultModel } from './appMembershipDefault';
29
27
  export { OrgMembershipDefaultModel } from './orgMembershipDefault';
30
28
  export { OrgClaimedInviteModel } from './orgClaimedInvite';
29
+ export { AppLimitEventModel } from './appLimitEvent';
30
+ export { OrgLimitEventModel } from './orgLimitEvent';
31
31
  export { OrgGrantModel } from './orgGrant';
32
32
  export { OrgChartEdgeModel } from './orgChartEdge';
33
+ export { AppLimitModel } from './appLimit';
34
+ export { OrgLimitAggregateModel } from './orgLimitAggregate';
33
35
  export { OrgMemberProfileModel } from './orgMemberProfile';
34
- export { OrgMembershipSettingModel } from './orgMembershipSetting';
36
+ export { OrgLimitModel } from './orgLimit';
35
37
  export { AppLevelModel } from './appLevel';
36
38
  export { AppInviteModel } from './appInvite';
39
+ export { OrgMembershipSettingModel } from './orgMembershipSetting';
37
40
  export { OrgInviteModel } from './orgInvite';
38
41
  export { AppMembershipModel } from './appMembership';
39
42
  export { OrgMembershipModel } from './orgMembership';
@@ -0,0 +1,56 @@
1
+ /**
2
+ * OrgLimitAggregate 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 { OrgLimitAggregateWithRelations, OrgLimitAggregateSelect, OrgLimitAggregateFilter, OrgLimitAggregateOrderBy, CreateOrgLimitAggregateInput, OrgLimitAggregatePatch } from '../input-types';
10
+ export declare class OrgLimitAggregateModel {
11
+ private client;
12
+ constructor(client: OrmClient);
13
+ findMany<S extends OrgLimitAggregateSelect>(args: FindManyArgs<S, OrgLimitAggregateFilter, OrgLimitAggregateOrderBy> & {
14
+ select: S;
15
+ } & StrictSelect<S, OrgLimitAggregateSelect>): QueryBuilder<{
16
+ orgLimitAggregates: ConnectionResult<InferSelectResult<OrgLimitAggregateWithRelations, S>>;
17
+ }>;
18
+ findFirst<S extends OrgLimitAggregateSelect>(args: FindFirstArgs<S, OrgLimitAggregateFilter> & {
19
+ select: S;
20
+ } & StrictSelect<S, OrgLimitAggregateSelect>): QueryBuilder<{
21
+ orgLimitAggregates: {
22
+ nodes: InferSelectResult<OrgLimitAggregateWithRelations, S>[];
23
+ };
24
+ }>;
25
+ findOne<S extends OrgLimitAggregateSelect>(args: {
26
+ id: string;
27
+ select: S;
28
+ } & StrictSelect<S, OrgLimitAggregateSelect>): QueryBuilder<{
29
+ orgLimitAggregate: InferSelectResult<OrgLimitAggregateWithRelations, S> | null;
30
+ }>;
31
+ create<S extends OrgLimitAggregateSelect>(args: CreateArgs<S, CreateOrgLimitAggregateInput['orgLimitAggregate']> & {
32
+ select: S;
33
+ } & StrictSelect<S, OrgLimitAggregateSelect>): QueryBuilder<{
34
+ createOrgLimitAggregate: {
35
+ orgLimitAggregate: InferSelectResult<OrgLimitAggregateWithRelations, S>;
36
+ };
37
+ }>;
38
+ update<S extends OrgLimitAggregateSelect>(args: UpdateArgs<S, {
39
+ id: string;
40
+ }, OrgLimitAggregatePatch> & {
41
+ select: S;
42
+ } & StrictSelect<S, OrgLimitAggregateSelect>): QueryBuilder<{
43
+ updateOrgLimitAggregate: {
44
+ orgLimitAggregate: InferSelectResult<OrgLimitAggregateWithRelations, S>;
45
+ };
46
+ }>;
47
+ delete<S extends OrgLimitAggregateSelect>(args: DeleteArgs<{
48
+ id: string;
49
+ }, S> & {
50
+ select: S;
51
+ } & StrictSelect<S, OrgLimitAggregateSelect>): QueryBuilder<{
52
+ deleteOrgLimitAggregate: {
53
+ orgLimitAggregate: InferSelectResult<OrgLimitAggregateWithRelations, S>;
54
+ };
55
+ }>;
56
+ }
@@ -0,0 +1,96 @@
1
+ import { QueryBuilder, buildFindManyDocument, buildFindFirstDocument, buildCreateDocument, buildUpdateByPkDocument, buildDeleteByPkDocument, } from '../query-builder';
2
+ import { connectionFieldsMap } from '../input-types';
3
+ export class OrgLimitAggregateModel {
4
+ client;
5
+ constructor(client) {
6
+ this.client = client;
7
+ }
8
+ findMany(args) {
9
+ const { document, variables } = buildFindManyDocument('OrgLimitAggregate', 'orgLimitAggregates', 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
+ }, 'OrgLimitAggregateFilter', 'OrgLimitAggregateOrderBy', connectionFieldsMap);
18
+ return new QueryBuilder({
19
+ client: this.client,
20
+ operation: 'query',
21
+ operationName: 'OrgLimitAggregate',
22
+ fieldName: 'orgLimitAggregates',
23
+ document,
24
+ variables,
25
+ });
26
+ }
27
+ findFirst(args) {
28
+ const { document, variables } = buildFindFirstDocument('OrgLimitAggregate', 'orgLimitAggregates', args.select, {
29
+ where: args?.where,
30
+ }, 'OrgLimitAggregateFilter', connectionFieldsMap);
31
+ return new QueryBuilder({
32
+ client: this.client,
33
+ operation: 'query',
34
+ operationName: 'OrgLimitAggregate',
35
+ fieldName: 'orgLimitAggregates',
36
+ document,
37
+ variables,
38
+ });
39
+ }
40
+ findOne(args) {
41
+ const { document, variables } = buildFindManyDocument('OrgLimitAggregate', 'orgLimitAggregates', args.select, {
42
+ where: {
43
+ id: {
44
+ equalTo: args.id,
45
+ },
46
+ },
47
+ first: 1,
48
+ }, 'OrgLimitAggregateFilter', 'OrgLimitAggregateOrderBy', connectionFieldsMap);
49
+ return new QueryBuilder({
50
+ client: this.client,
51
+ operation: 'query',
52
+ operationName: 'OrgLimitAggregate',
53
+ fieldName: 'orgLimitAggregate',
54
+ document,
55
+ variables,
56
+ transform: (data) => ({
57
+ orgLimitAggregate: data.orgLimitAggregates?.nodes?.[0] ?? null,
58
+ }),
59
+ });
60
+ }
61
+ create(args) {
62
+ const { document, variables } = buildCreateDocument('OrgLimitAggregate', 'createOrgLimitAggregate', 'orgLimitAggregate', args.select, args.data, 'CreateOrgLimitAggregateInput', connectionFieldsMap);
63
+ return new QueryBuilder({
64
+ client: this.client,
65
+ operation: 'mutation',
66
+ operationName: 'OrgLimitAggregate',
67
+ fieldName: 'createOrgLimitAggregate',
68
+ document,
69
+ variables,
70
+ });
71
+ }
72
+ update(args) {
73
+ const { document, variables } = buildUpdateByPkDocument('OrgLimitAggregate', 'updateOrgLimitAggregate', 'orgLimitAggregate', args.select, args.where.id, args.data, 'UpdateOrgLimitAggregateInput', 'id', 'orgLimitAggregatePatch', connectionFieldsMap);
74
+ return new QueryBuilder({
75
+ client: this.client,
76
+ operation: 'mutation',
77
+ operationName: 'OrgLimitAggregate',
78
+ fieldName: 'updateOrgLimitAggregate',
79
+ document,
80
+ variables,
81
+ });
82
+ }
83
+ delete(args) {
84
+ const { document, variables } = buildDeleteByPkDocument('OrgLimitAggregate', 'deleteOrgLimitAggregate', 'orgLimitAggregate', {
85
+ id: args.where.id,
86
+ }, 'DeleteOrgLimitAggregateInput', args.select, connectionFieldsMap);
87
+ return new QueryBuilder({
88
+ client: this.client,
89
+ operation: 'mutation',
90
+ operationName: 'OrgLimitAggregate',
91
+ fieldName: 'deleteOrgLimitAggregate',
92
+ document,
93
+ variables,
94
+ });
95
+ }
96
+ }
@@ -0,0 +1,32 @@
1
+ /**
2
+ * OrgLimitEvent 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, InferSelectResult, StrictSelect } from '../select-types';
9
+ import type { OrgLimitEventWithRelations, OrgLimitEventSelect, OrgLimitEventFilter, OrgLimitEventOrderBy, CreateOrgLimitEventInput } from '../input-types';
10
+ export declare class OrgLimitEventModel {
11
+ private client;
12
+ constructor(client: OrmClient);
13
+ findMany<S extends OrgLimitEventSelect>(args: FindManyArgs<S, OrgLimitEventFilter, OrgLimitEventOrderBy> & {
14
+ select: S;
15
+ } & StrictSelect<S, OrgLimitEventSelect>): QueryBuilder<{
16
+ orgLimitEvents: ConnectionResult<InferSelectResult<OrgLimitEventWithRelations, S>>;
17
+ }>;
18
+ findFirst<S extends OrgLimitEventSelect>(args: FindFirstArgs<S, OrgLimitEventFilter> & {
19
+ select: S;
20
+ } & StrictSelect<S, OrgLimitEventSelect>): QueryBuilder<{
21
+ orgLimitEvents: {
22
+ nodes: InferSelectResult<OrgLimitEventWithRelations, S>[];
23
+ };
24
+ }>;
25
+ create<S extends OrgLimitEventSelect>(args: CreateArgs<S, CreateOrgLimitEventInput['orgLimitEvent']> & {
26
+ select: S;
27
+ } & StrictSelect<S, OrgLimitEventSelect>): QueryBuilder<{
28
+ createOrgLimitEvent: {
29
+ orgLimitEvent: InferSelectResult<OrgLimitEventWithRelations, S>;
30
+ };
31
+ }>;
32
+ }
@@ -0,0 +1,51 @@
1
+ import { QueryBuilder, buildFindManyDocument, buildFindFirstDocument, buildCreateDocument, } from '../query-builder';
2
+ import { connectionFieldsMap } from '../input-types';
3
+ export class OrgLimitEventModel {
4
+ client;
5
+ constructor(client) {
6
+ this.client = client;
7
+ }
8
+ findMany(args) {
9
+ const { document, variables } = buildFindManyDocument('OrgLimitEvent', 'orgLimitEvents', 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
+ }, 'OrgLimitEventFilter', 'OrgLimitEventOrderBy', connectionFieldsMap);
18
+ return new QueryBuilder({
19
+ client: this.client,
20
+ operation: 'query',
21
+ operationName: 'OrgLimitEvent',
22
+ fieldName: 'orgLimitEvents',
23
+ document,
24
+ variables,
25
+ });
26
+ }
27
+ findFirst(args) {
28
+ const { document, variables } = buildFindFirstDocument('OrgLimitEvent', 'orgLimitEvents', args.select, {
29
+ where: args?.where,
30
+ }, 'OrgLimitEventFilter', connectionFieldsMap);
31
+ return new QueryBuilder({
32
+ client: this.client,
33
+ operation: 'query',
34
+ operationName: 'OrgLimitEvent',
35
+ fieldName: 'orgLimitEvents',
36
+ document,
37
+ variables,
38
+ });
39
+ }
40
+ create(args) {
41
+ const { document, variables } = buildCreateDocument('OrgLimitEvent', 'createOrgLimitEvent', 'orgLimitEvent', args.select, args.data, 'CreateOrgLimitEventInput', connectionFieldsMap);
42
+ return new QueryBuilder({
43
+ client: this.client,
44
+ operation: 'mutation',
45
+ operationName: 'OrgLimitEvent',
46
+ fieldName: 'createOrgLimitEvent',
47
+ document,
48
+ variables,
49
+ });
50
+ }
51
+ }
@@ -6,7 +6,7 @@
6
6
  import { OrmClient } from '../client';
7
7
  import { QueryBuilder } from '../query-builder';
8
8
  import type { InferSelectResult, StrictSelect } from '../select-types';
9
- import type { SubmitAppInviteCodeInput, SubmitOrgInviteCodeInput, RequestUploadUrlInput, ConfirmUploadInput, ProvisionBucketInput, SubmitAppInviteCodePayload, SubmitOrgInviteCodePayload, RequestUploadUrlPayload, ConfirmUploadPayload, ProvisionBucketPayload, SubmitAppInviteCodePayloadSelect, SubmitOrgInviteCodePayloadSelect, RequestUploadUrlPayloadSelect, ConfirmUploadPayloadSelect, ProvisionBucketPayloadSelect } from '../input-types';
9
+ import type { SubmitAppInviteCodeInput, SubmitOrgInviteCodeInput, RequestUploadUrlInput, ProvisionBucketInput, SubmitAppInviteCodePayload, SubmitOrgInviteCodePayload, RequestUploadUrlPayload, ProvisionBucketPayload, SubmitAppInviteCodePayloadSelect, SubmitOrgInviteCodePayloadSelect, RequestUploadUrlPayloadSelect, ProvisionBucketPayloadSelect } from '../input-types';
10
10
  export interface SubmitAppInviteCodeVariables {
11
11
  input: SubmitAppInviteCodeInput;
12
12
  }
@@ -23,15 +23,6 @@ existing file ID and deduplicated=true with no uploadUrl.
23
23
  export interface RequestUploadUrlVariables {
24
24
  input: RequestUploadUrlInput;
25
25
  }
26
- /**
27
- * Variables for confirmUpload
28
- * Confirm that a file has been uploaded to S3.
29
- Verifies the object exists in S3, checks content-type,
30
- and transitions the file status from 'pending' to 'ready'.
31
- */
32
- export interface ConfirmUploadVariables {
33
- input: ConfirmUploadInput;
34
- }
35
26
  /**
36
27
  * Variables for provisionBucket
37
28
  * Provision an S3 bucket for a logical bucket in the database.
@@ -58,11 +49,6 @@ export declare function createMutationOperations(client: OrmClient): {
58
49
  } & StrictSelect<S, RequestUploadUrlPayloadSelect>) => QueryBuilder<{
59
50
  requestUploadUrl: InferSelectResult<RequestUploadUrlPayload, S> | null;
60
51
  }>;
61
- confirmUpload: <S extends ConfirmUploadPayloadSelect>(args: ConfirmUploadVariables, options: {
62
- select: S;
63
- } & StrictSelect<S, ConfirmUploadPayloadSelect>) => QueryBuilder<{
64
- confirmUpload: InferSelectResult<ConfirmUploadPayload, S> | null;
65
- }>;
66
52
  provisionBucket: <S extends ProvisionBucketPayloadSelect>(args: ProvisionBucketVariables, options: {
67
53
  select: S;
68
54
  } & StrictSelect<S, ProvisionBucketPayloadSelect>) => QueryBuilder<{
@@ -38,18 +38,6 @@ export function createMutationOperations(client) {
38
38
  },
39
39
  ], connectionFieldsMap, 'RequestUploadUrlPayload'),
40
40
  }),
41
- confirmUpload: (args, options) => new QueryBuilder({
42
- client,
43
- operation: 'mutation',
44
- operationName: 'ConfirmUpload',
45
- fieldName: 'confirmUpload',
46
- ...buildCustomDocument('mutation', 'ConfirmUpload', 'confirmUpload', options.select, args, [
47
- {
48
- name: 'input',
49
- type: 'ConfirmUploadInput!',
50
- },
51
- ], connectionFieldsMap, 'ConfirmUploadPayload'),
52
- }),
53
41
  provisionBucket: (args, options) => new QueryBuilder({
54
42
  client,
55
43
  operation: 'mutation',
@@ -42,7 +42,6 @@ import createApiKeyCmd from './commands/create-api-key';
42
42
  import forgotPasswordCmd from './commands/forgot-password';
43
43
  import sendVerificationEmailCmd from './commands/send-verification-email';
44
44
  import requestUploadUrlCmd from './commands/request-upload-url';
45
- import confirmUploadCmd from './commands/confirm-upload';
46
45
  import provisionBucketCmd from './commands/provision-bucket';
47
46
  const createCommandMap = () => ({
48
47
  context: contextCmd,
@@ -83,10 +82,9 @@ const createCommandMap = () => ({
83
82
  'forgot-password': forgotPasswordCmd,
84
83
  'send-verification-email': sendVerificationEmailCmd,
85
84
  'request-upload-url': requestUploadUrlCmd,
86
- 'confirm-upload': confirmUploadCmd,
87
85
  'provision-bucket': provisionBucketCmd,
88
86
  });
89
- 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 auditLog 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 request-cross-origin-token requestCrossOriginToken\n sign-in signIn\n extend-token-expires extendTokenExpires\n create-api-key createApiKey\n forgot-password forgotPassword\n send-verification-email sendVerificationEmail\n request-upload-url Request a presigned URL for uploading a file directly to S3.\nClient computes SHA-256 of the file content and provides it here.\nIf a file with the same hash already exists (dedup), returns the\nexisting file ID and deduplicated=true with no uploadUrl.\n confirm-upload Confirm that a file has been uploaded to S3.\nVerifies the object exists in S3, checks content-type,\nand transitions the file status from 'pending' to 'ready'.\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";
87
+ 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 auditLog 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 request-cross-origin-token requestCrossOriginToken\n sign-in signIn\n extend-token-expires extendTokenExpires\n create-api-key createApiKey\n forgot-password forgotPassword\n send-verification-email sendVerificationEmail\n request-upload-url Request a presigned URL for uploading a file directly to S3.\nClient computes SHA-256 of the file content and provides it here.\nIf a file with the same hash already exists (dedup), returns the\nexisting file ID and deduplicated=true with no uploadUrl.\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';
90
88
  export const commands = async (argv, prompter, options) => {
91
89
  if (argv.help || argv.h) {
92
90
  console.log(usage);
@@ -147,11 +147,6 @@ export declare function getClient(contextName?: string): {
147
147
  } & import("..").StrictSelect<S, import("../orm/input-types").RequestUploadUrlPayloadSelect>) => import("..").QueryBuilder<{
148
148
  requestUploadUrl: import("..").InferSelectResult<import("../orm/input-types").RequestUploadUrlPayload, S> | null;
149
149
  }>;
150
- confirmUpload: <S extends import("../orm/input-types").ConfirmUploadPayloadSelect>(args: import("../orm/mutation").ConfirmUploadVariables, options: {
151
- select: S;
152
- } & import("..").StrictSelect<S, import("../orm/input-types").ConfirmUploadPayloadSelect>) => import("..").QueryBuilder<{
153
- confirmUpload: import("..").InferSelectResult<import("../orm/input-types").ConfirmUploadPayload, S> | null;
154
- }>;
155
150
  provisionBucket: <S extends import("../orm/input-types").ProvisionBucketPayloadSelect>(args: import("../orm/mutation").ProvisionBucketVariables, options: {
156
151
  select: S;
157
152
  } & import("..").StrictSelect<S, import("../orm/input-types").ProvisionBucketPayloadSelect>) => import("..").QueryBuilder<{
@@ -187,11 +187,6 @@ export declare function createClient(config: OrmClientConfig): {
187
187
  } & import("./select-types").StrictSelect<S, import("./input-types").RequestUploadUrlPayloadSelect>) => import("./query-builder").QueryBuilder<{
188
188
  requestUploadUrl: import("./select-types").InferSelectResult<import("./input-types").RequestUploadUrlPayload, S> | null;
189
189
  }>;
190
- confirmUpload: <S extends import("./input-types").ConfirmUploadPayloadSelect>(args: import("./mutation").ConfirmUploadVariables, options: {
191
- select: S;
192
- } & import("./select-types").StrictSelect<S, import("./input-types").ConfirmUploadPayloadSelect>) => import("./query-builder").QueryBuilder<{
193
- confirmUpload: import("./select-types").InferSelectResult<import("./input-types").ConfirmUploadPayload, S> | null;
194
- }>;
195
190
  provisionBucket: <S extends import("./input-types").ProvisionBucketPayloadSelect>(args: import("./mutation").ProvisionBucketVariables, options: {
196
191
  select: S;
197
192
  } & import("./select-types").StrictSelect<S, import("./input-types").ProvisionBucketPayloadSelect>) => import("./query-builder").QueryBuilder<{
@@ -1181,10 +1181,6 @@ export interface RequestUploadUrlInput {
1181
1181
  /** Original filename (optional, for display and Content-Disposition) */
1182
1182
  filename?: string;
1183
1183
  }
1184
- export interface ConfirmUploadInput {
1185
- /** The file ID returned by requestUploadUrl */
1186
- fileId: string;
1187
- }
1188
1184
  export interface ProvisionBucketInput {
1189
1185
  /** The logical bucket key (e.g., "public", "private") */
1190
1186
  bucketKey: string;
@@ -2252,8 +2248,6 @@ export interface RequestUploadUrlPayload {
2252
2248
  deduplicated: boolean;
2253
2249
  /** Presigned URL expiry time (null if deduplicated) */
2254
2250
  expiresAt?: string | null;
2255
- /** File status — 'pending' for fresh uploads, 'ready' or 'processed' for deduplicated files. Clients can use this to know immediately whether the file is usable. */
2256
- status: string;
2257
2251
  }
2258
2252
  export type RequestUploadUrlPayloadSelect = {
2259
2253
  uploadUrl?: boolean;
@@ -2261,20 +2255,6 @@ export type RequestUploadUrlPayloadSelect = {
2261
2255
  key?: boolean;
2262
2256
  deduplicated?: boolean;
2263
2257
  expiresAt?: boolean;
2264
- status?: boolean;
2265
- };
2266
- export interface ConfirmUploadPayload {
2267
- /** The confirmed file ID */
2268
- fileId: string;
2269
- /** New file status */
2270
- status: string;
2271
- /** Whether confirmation succeeded */
2272
- success: boolean;
2273
- }
2274
- export type ConfirmUploadPayloadSelect = {
2275
- fileId?: boolean;
2276
- status?: boolean;
2277
- success?: boolean;
2278
2258
  };
2279
2259
  export interface ProvisionBucketPayload {
2280
2260
  /** Whether provisioning succeeded */
@@ -6,7 +6,7 @@
6
6
  import { OrmClient } from '../client';
7
7
  import { QueryBuilder } from '../query-builder';
8
8
  import type { InferSelectResult, StrictSelect } from '../select-types';
9
- import type { SignOutInput, SendAccountDeletionEmailInput, CheckPasswordInput, DisconnectAccountInput, RevokeApiKeyInput, RevokeSessionInput, VerifyPasswordInput, VerifyTotpInput, ConfirmDeleteAccountInput, SetPasswordInput, VerifyEmailInput, ProvisionNewUserInput, ResetPasswordInput, SignInCrossOriginInput, SignUpInput, RequestCrossOriginTokenInput, SignInInput, ExtendTokenExpiresInput, CreateApiKeyInput, ForgotPasswordInput, SendVerificationEmailInput, RequestUploadUrlInput, ConfirmUploadInput, ProvisionBucketInput, SignOutPayload, SendAccountDeletionEmailPayload, CheckPasswordPayload, DisconnectAccountPayload, RevokeApiKeyPayload, RevokeSessionPayload, VerifyPasswordPayload, VerifyTotpPayload, ConfirmDeleteAccountPayload, SetPasswordPayload, VerifyEmailPayload, ProvisionNewUserPayload, ResetPasswordPayload, SignInCrossOriginPayload, SignUpPayload, RequestCrossOriginTokenPayload, SignInPayload, ExtendTokenExpiresPayload, CreateApiKeyPayload, ForgotPasswordPayload, SendVerificationEmailPayload, RequestUploadUrlPayload, ConfirmUploadPayload, ProvisionBucketPayload, SignOutPayloadSelect, SendAccountDeletionEmailPayloadSelect, CheckPasswordPayloadSelect, DisconnectAccountPayloadSelect, RevokeApiKeyPayloadSelect, RevokeSessionPayloadSelect, VerifyPasswordPayloadSelect, VerifyTotpPayloadSelect, ConfirmDeleteAccountPayloadSelect, SetPasswordPayloadSelect, VerifyEmailPayloadSelect, ProvisionNewUserPayloadSelect, ResetPasswordPayloadSelect, SignInCrossOriginPayloadSelect, SignUpPayloadSelect, RequestCrossOriginTokenPayloadSelect, SignInPayloadSelect, ExtendTokenExpiresPayloadSelect, CreateApiKeyPayloadSelect, ForgotPasswordPayloadSelect, SendVerificationEmailPayloadSelect, RequestUploadUrlPayloadSelect, ConfirmUploadPayloadSelect, ProvisionBucketPayloadSelect } from '../input-types';
9
+ import type { SignOutInput, SendAccountDeletionEmailInput, CheckPasswordInput, DisconnectAccountInput, RevokeApiKeyInput, RevokeSessionInput, VerifyPasswordInput, VerifyTotpInput, ConfirmDeleteAccountInput, SetPasswordInput, VerifyEmailInput, ProvisionNewUserInput, ResetPasswordInput, SignInCrossOriginInput, SignUpInput, RequestCrossOriginTokenInput, SignInInput, ExtendTokenExpiresInput, CreateApiKeyInput, ForgotPasswordInput, SendVerificationEmailInput, RequestUploadUrlInput, ProvisionBucketInput, SignOutPayload, SendAccountDeletionEmailPayload, CheckPasswordPayload, DisconnectAccountPayload, RevokeApiKeyPayload, RevokeSessionPayload, VerifyPasswordPayload, VerifyTotpPayload, ConfirmDeleteAccountPayload, SetPasswordPayload, VerifyEmailPayload, ProvisionNewUserPayload, ResetPasswordPayload, SignInCrossOriginPayload, SignUpPayload, RequestCrossOriginTokenPayload, SignInPayload, ExtendTokenExpiresPayload, CreateApiKeyPayload, ForgotPasswordPayload, SendVerificationEmailPayload, RequestUploadUrlPayload, ProvisionBucketPayload, SignOutPayloadSelect, SendAccountDeletionEmailPayloadSelect, CheckPasswordPayloadSelect, DisconnectAccountPayloadSelect, RevokeApiKeyPayloadSelect, RevokeSessionPayloadSelect, VerifyPasswordPayloadSelect, VerifyTotpPayloadSelect, ConfirmDeleteAccountPayloadSelect, SetPasswordPayloadSelect, VerifyEmailPayloadSelect, ProvisionNewUserPayloadSelect, ResetPasswordPayloadSelect, SignInCrossOriginPayloadSelect, SignUpPayloadSelect, RequestCrossOriginTokenPayloadSelect, SignInPayloadSelect, ExtendTokenExpiresPayloadSelect, CreateApiKeyPayloadSelect, ForgotPasswordPayloadSelect, SendVerificationEmailPayloadSelect, RequestUploadUrlPayloadSelect, ProvisionBucketPayloadSelect } from '../input-types';
10
10
  export interface SignOutVariables {
11
11
  input: SignOutInput;
12
12
  }
@@ -80,15 +80,6 @@ existing file ID and deduplicated=true with no uploadUrl.
80
80
  export interface RequestUploadUrlVariables {
81
81
  input: RequestUploadUrlInput;
82
82
  }
83
- /**
84
- * Variables for confirmUpload
85
- * Confirm that a file has been uploaded to S3.
86
- Verifies the object exists in S3, checks content-type,
87
- and transitions the file status from 'pending' to 'ready'.
88
- */
89
- export interface ConfirmUploadVariables {
90
- input: ConfirmUploadInput;
91
- }
92
83
  /**
93
84
  * Variables for provisionBucket
94
85
  * Provision an S3 bucket for a logical bucket in the database.
@@ -210,11 +201,6 @@ export declare function createMutationOperations(client: OrmClient): {
210
201
  } & StrictSelect<S, RequestUploadUrlPayloadSelect>) => QueryBuilder<{
211
202
  requestUploadUrl: InferSelectResult<RequestUploadUrlPayload, S> | null;
212
203
  }>;
213
- confirmUpload: <S extends ConfirmUploadPayloadSelect>(args: ConfirmUploadVariables, options: {
214
- select: S;
215
- } & StrictSelect<S, ConfirmUploadPayloadSelect>) => QueryBuilder<{
216
- confirmUpload: InferSelectResult<ConfirmUploadPayload, S> | null;
217
- }>;
218
204
  provisionBucket: <S extends ProvisionBucketPayloadSelect>(args: ProvisionBucketVariables, options: {
219
205
  select: S;
220
206
  } & StrictSelect<S, ProvisionBucketPayloadSelect>) => QueryBuilder<{
@@ -266,18 +266,6 @@ export function createMutationOperations(client) {
266
266
  },
267
267
  ], connectionFieldsMap, 'RequestUploadUrlPayload'),
268
268
  }),
269
- confirmUpload: (args, options) => new QueryBuilder({
270
- client,
271
- operation: 'mutation',
272
- operationName: 'ConfirmUpload',
273
- fieldName: 'confirmUpload',
274
- ...buildCustomDocument('mutation', 'ConfirmUpload', 'confirmUpload', options.select, args, [
275
- {
276
- name: 'input',
277
- type: 'ConfirmUploadInput!',
278
- },
279
- ], connectionFieldsMap, 'ConfirmUploadPayload'),
280
- }),
281
269
  provisionBucket: (args, options) => new QueryBuilder({
282
270
  client,
283
271
  operation: 'mutation',
@@ -24,7 +24,6 @@ import insertNodeAtPathCmd from './commands/insert-node-at-path';
24
24
  import updateNodeAtPathCmd from './commands/update-node-at-path';
25
25
  import setAndCommitCmd from './commands/set-and-commit';
26
26
  import requestUploadUrlCmd from './commands/request-upload-url';
27
- import confirmUploadCmd from './commands/confirm-upload';
28
27
  import provisionBucketCmd from './commands/provision-bucket';
29
28
  const createCommandMap = () => ({
30
29
  context: contextCmd,
@@ -47,10 +46,9 @@ const createCommandMap = () => ({
47
46
  'update-node-at-path': updateNodeAtPathCmd,
48
47
  'set-and-commit': setAndCommitCmd,
49
48
  'request-upload-url': requestUploadUrlCmd,
50
- 'confirm-upload': confirmUploadCmd,
51
49
  'provision-bucket': provisionBucketCmd,
52
50
  });
53
- const usage = "\ncsdk <command>\n\nCommands:\n context Manage API contexts\n auth Manage authentication\n get-all-record getAllRecord CRUD operations\n object object CRUD operations\n ref ref CRUD operations\n store store CRUD operations\n commit commit CRUD operations\n rev-parse revParse\n get-all-objects-from-root Reads and enables pagination through a set of `Object`.\n get-path-objects-from-root Reads and enables pagination through a set of `Object`.\n get-object-at-path getObjectAtPath\n freeze-objects freezeObjects\n init-empty-repo initEmptyRepo\n remove-node-at-path removeNodeAtPath\n set-data-at-path setDataAtPath\n set-props-and-commit setPropsAndCommit\n insert-node-at-path insertNodeAtPath\n update-node-at-path updateNodeAtPath\n set-and-commit setAndCommit\n request-upload-url Request a presigned URL for uploading a file directly to S3.\nClient computes SHA-256 of the file content and provides it here.\nIf a file with the same hash already exists (dedup), returns the\nexisting file ID and deduplicated=true with no uploadUrl.\n confirm-upload Confirm that a file has been uploaded to S3.\nVerifies the object exists in S3, checks content-type,\nand transitions the file status from 'pending' to 'ready'.\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";
51
+ const usage = '\ncsdk <command>\n\nCommands:\n context Manage API contexts\n auth Manage authentication\n get-all-record getAllRecord CRUD operations\n object object CRUD operations\n ref ref CRUD operations\n store store CRUD operations\n commit commit CRUD operations\n rev-parse revParse\n get-all-objects-from-root Reads and enables pagination through a set of `Object`.\n get-path-objects-from-root Reads and enables pagination through a set of `Object`.\n get-object-at-path getObjectAtPath\n freeze-objects freezeObjects\n init-empty-repo initEmptyRepo\n remove-node-at-path removeNodeAtPath\n set-data-at-path setDataAtPath\n set-props-and-commit setPropsAndCommit\n insert-node-at-path insertNodeAtPath\n update-node-at-path updateNodeAtPath\n set-and-commit setAndCommit\n request-upload-url Request a presigned URL for uploading a file directly to S3.\nClient computes SHA-256 of the file content and provides it here.\nIf a file with the same hash already exists (dedup), returns the\nexisting file ID and deduplicated=true with no uploadUrl.\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';
54
52
  export const commands = async (argv, prompter, options) => {
55
53
  if (argv.help || argv.h) {
56
54
  console.log(usage);