@constructive-io/sdk 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 (99) hide show
  1. package/admin/orm/index.d.ts +24 -23
  2. package/admin/orm/index.js +24 -18
  3. package/admin/orm/input-types.d.ts +1297 -839
  4. package/admin/orm/models/appLimitEvent.d.ts +32 -0
  5. package/admin/orm/models/appLimitEvent.js +55 -0
  6. package/admin/orm/models/index.d.ts +12 -9
  7. package/admin/orm/models/index.js +25 -19
  8. package/admin/orm/models/orgLimitAggregate.d.ts +56 -0
  9. package/admin/orm/models/orgLimitAggregate.js +100 -0
  10. package/admin/orm/models/orgLimitEvent.d.ts +32 -0
  11. package/admin/orm/models/orgLimitEvent.js +55 -0
  12. package/admin/orm/mutation/index.d.ts +1 -15
  13. package/admin/orm/mutation/index.js +0 -12
  14. package/auth/orm/index.d.ts +0 -5
  15. package/auth/orm/input-types.d.ts +0 -20
  16. package/auth/orm/mutation/index.d.ts +1 -15
  17. package/auth/orm/mutation/index.js +0 -12
  18. package/esm/admin/orm/index.d.ts +24 -23
  19. package/esm/admin/orm/index.js +24 -18
  20. package/esm/admin/orm/input-types.d.ts +1297 -839
  21. package/esm/admin/orm/models/appLimitEvent.d.ts +32 -0
  22. package/esm/admin/orm/models/appLimitEvent.js +51 -0
  23. package/esm/admin/orm/models/index.d.ts +12 -9
  24. package/esm/admin/orm/models/index.js +12 -9
  25. package/esm/admin/orm/models/orgLimitAggregate.d.ts +56 -0
  26. package/esm/admin/orm/models/orgLimitAggregate.js +96 -0
  27. package/esm/admin/orm/models/orgLimitEvent.d.ts +32 -0
  28. package/esm/admin/orm/models/orgLimitEvent.js +51 -0
  29. package/esm/admin/orm/mutation/index.d.ts +1 -15
  30. package/esm/admin/orm/mutation/index.js +0 -12
  31. package/esm/auth/orm/index.d.ts +0 -5
  32. package/esm/auth/orm/input-types.d.ts +0 -20
  33. package/esm/auth/orm/mutation/index.d.ts +1 -15
  34. package/esm/auth/orm/mutation/index.js +0 -12
  35. package/esm/objects/orm/index.d.ts +0 -5
  36. package/esm/objects/orm/input-types.d.ts +0 -20
  37. package/esm/objects/orm/mutation/index.d.ts +1 -15
  38. package/esm/objects/orm/mutation/index.js +0 -12
  39. package/esm/public/orm/index.d.ts +56 -43
  40. package/esm/public/orm/index.js +36 -18
  41. package/esm/public/orm/input-types.d.ts +2983 -1112
  42. package/esm/public/orm/input-types.js +9 -0
  43. package/esm/public/orm/models/agentMessage.d.ts +56 -0
  44. package/esm/public/orm/models/agentMessage.js +96 -0
  45. package/esm/public/orm/models/agentTask.d.ts +56 -0
  46. package/esm/public/orm/models/agentTask.js +96 -0
  47. package/esm/public/orm/models/agentThread.d.ts +56 -0
  48. package/esm/public/orm/models/agentThread.js +96 -0
  49. package/esm/public/orm/models/appLimitEvent.d.ts +32 -0
  50. package/esm/public/orm/models/appLimitEvent.js +51 -0
  51. package/esm/public/orm/models/billingModule.d.ts +56 -0
  52. package/esm/public/orm/models/billingModule.js +96 -0
  53. package/esm/public/orm/models/index.d.ts +18 -9
  54. package/esm/public/orm/models/index.js +18 -9
  55. package/esm/public/orm/models/nodeTypeRegistry.d.ts +56 -0
  56. package/esm/public/orm/models/nodeTypeRegistry.js +96 -0
  57. package/esm/public/orm/models/orgLimitAggregate.d.ts +56 -0
  58. package/esm/public/orm/models/orgLimitAggregate.js +96 -0
  59. package/esm/public/orm/models/orgLimitEvent.d.ts +32 -0
  60. package/esm/public/orm/models/orgLimitEvent.js +51 -0
  61. package/esm/public/orm/models/plansModule.d.ts +56 -0
  62. package/esm/public/orm/models/plansModule.js +96 -0
  63. package/esm/public/orm/mutation/index.d.ts +17 -31
  64. package/esm/public/orm/mutation/index.js +24 -36
  65. package/esm/public/orm/query/index.d.ts +28 -28
  66. package/esm/public/orm/query/index.js +48 -48
  67. package/objects/orm/index.d.ts +0 -5
  68. package/objects/orm/input-types.d.ts +0 -20
  69. package/objects/orm/mutation/index.d.ts +1 -15
  70. package/objects/orm/mutation/index.js +0 -12
  71. package/package.json +4 -4
  72. package/public/orm/index.d.ts +56 -43
  73. package/public/orm/index.js +36 -18
  74. package/public/orm/input-types.d.ts +2983 -1112
  75. package/public/orm/input-types.js +9 -0
  76. package/public/orm/models/agentMessage.d.ts +56 -0
  77. package/public/orm/models/agentMessage.js +100 -0
  78. package/public/orm/models/agentTask.d.ts +56 -0
  79. package/public/orm/models/agentTask.js +100 -0
  80. package/public/orm/models/agentThread.d.ts +56 -0
  81. package/public/orm/models/agentThread.js +100 -0
  82. package/public/orm/models/appLimitEvent.d.ts +32 -0
  83. package/public/orm/models/appLimitEvent.js +55 -0
  84. package/public/orm/models/billingModule.d.ts +56 -0
  85. package/public/orm/models/billingModule.js +100 -0
  86. package/public/orm/models/index.d.ts +18 -9
  87. package/public/orm/models/index.js +39 -21
  88. package/public/orm/models/nodeTypeRegistry.d.ts +56 -0
  89. package/public/orm/models/nodeTypeRegistry.js +100 -0
  90. package/public/orm/models/orgLimitAggregate.d.ts +56 -0
  91. package/public/orm/models/orgLimitAggregate.js +100 -0
  92. package/public/orm/models/orgLimitEvent.d.ts +32 -0
  93. package/public/orm/models/orgLimitEvent.js +55 -0
  94. package/public/orm/models/plansModule.d.ts +56 -0
  95. package/public/orm/models/plansModule.js +100 -0
  96. package/public/orm/mutation/index.d.ts +17 -31
  97. package/public/orm/mutation/index.js +24 -36
  98. package/public/orm/query/index.d.ts +28 -28
  99. package/public/orm/query/index.js +48 -48
@@ -0,0 +1,96 @@
1
+ import { QueryBuilder, buildFindManyDocument, buildFindFirstDocument, buildCreateDocument, buildUpdateByPkDocument, buildDeleteByPkDocument, } from '../query-builder';
2
+ import { connectionFieldsMap } from '../input-types';
3
+ export class PlansModuleModel {
4
+ client;
5
+ constructor(client) {
6
+ this.client = client;
7
+ }
8
+ findMany(args) {
9
+ const { document, variables } = buildFindManyDocument('PlansModule', 'plansModules', 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
+ }, 'PlansModuleFilter', 'PlansModuleOrderBy', connectionFieldsMap);
18
+ return new QueryBuilder({
19
+ client: this.client,
20
+ operation: 'query',
21
+ operationName: 'PlansModule',
22
+ fieldName: 'plansModules',
23
+ document,
24
+ variables,
25
+ });
26
+ }
27
+ findFirst(args) {
28
+ const { document, variables } = buildFindFirstDocument('PlansModule', 'plansModules', args.select, {
29
+ where: args?.where,
30
+ }, 'PlansModuleFilter', connectionFieldsMap);
31
+ return new QueryBuilder({
32
+ client: this.client,
33
+ operation: 'query',
34
+ operationName: 'PlansModule',
35
+ fieldName: 'plansModules',
36
+ document,
37
+ variables,
38
+ });
39
+ }
40
+ findOne(args) {
41
+ const { document, variables } = buildFindManyDocument('PlansModule', 'plansModules', args.select, {
42
+ where: {
43
+ id: {
44
+ equalTo: args.id,
45
+ },
46
+ },
47
+ first: 1,
48
+ }, 'PlansModuleFilter', 'PlansModuleOrderBy', connectionFieldsMap);
49
+ return new QueryBuilder({
50
+ client: this.client,
51
+ operation: 'query',
52
+ operationName: 'PlansModule',
53
+ fieldName: 'plansModule',
54
+ document,
55
+ variables,
56
+ transform: (data) => ({
57
+ plansModule: data.plansModules?.nodes?.[0] ?? null,
58
+ }),
59
+ });
60
+ }
61
+ create(args) {
62
+ const { document, variables } = buildCreateDocument('PlansModule', 'createPlansModule', 'plansModule', args.select, args.data, 'CreatePlansModuleInput', connectionFieldsMap);
63
+ return new QueryBuilder({
64
+ client: this.client,
65
+ operation: 'mutation',
66
+ operationName: 'PlansModule',
67
+ fieldName: 'createPlansModule',
68
+ document,
69
+ variables,
70
+ });
71
+ }
72
+ update(args) {
73
+ const { document, variables } = buildUpdateByPkDocument('PlansModule', 'updatePlansModule', 'plansModule', args.select, args.where.id, args.data, 'UpdatePlansModuleInput', 'id', 'plansModulePatch', connectionFieldsMap);
74
+ return new QueryBuilder({
75
+ client: this.client,
76
+ operation: 'mutation',
77
+ operationName: 'PlansModule',
78
+ fieldName: 'updatePlansModule',
79
+ document,
80
+ variables,
81
+ });
82
+ }
83
+ delete(args) {
84
+ const { document, variables } = buildDeleteByPkDocument('PlansModule', 'deletePlansModule', 'plansModule', {
85
+ id: args.where.id,
86
+ }, 'DeletePlansModuleInput', args.select, connectionFieldsMap);
87
+ return new QueryBuilder({
88
+ client: this.client,
89
+ operation: 'mutation',
90
+ operationName: 'PlansModule',
91
+ fieldName: 'deletePlansModule',
92
+ document,
93
+ variables,
94
+ });
95
+ }
96
+ }
@@ -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 { SendAccountDeletionEmailInput, SignOutInput, AcceptDatabaseTransferInput, CancelDatabaseTransferInput, RejectDatabaseTransferInput, DisconnectAccountInput, RevokeApiKeyInput, RevokeSessionInput, VerifyPasswordInput, VerifyTotpInput, SubmitAppInviteCodeInput, SubmitOrgInviteCodeInput, CheckPasswordInput, ConfirmDeleteAccountInput, SetPasswordInput, VerifyEmailInput, FreezeObjectsInput, InitEmptyRepoInput, ConstructBlueprintInput, ProvisionNewUserInput, ResetPasswordInput, RemoveNodeAtPathInput, CopyTemplateToBlueprintInput, ProvisionSpatialRelationInput, BootstrapUserInput, SetFieldOrderInput, ProvisionUniqueConstraintInput, ProvisionFullTextSearchInput, ProvisionIndexInput, SetDataAtPathInput, SetPropsAndCommitInput, ProvisionDatabaseWithUserInput, InsertNodeAtPathInput, UpdateNodeAtPathInput, SetAndCommitInput, ProvisionRelationInput, ApplyRlsInput, SignInCrossOriginInput, CreateUserDatabaseInput, ExtendTokenExpiresInput, CreateApiKeyInput, SignUpInput, RequestCrossOriginTokenInput, SignInInput, ProvisionTableInput, SendVerificationEmailInput, ForgotPasswordInput, RequestUploadUrlInput, ConfirmUploadInput, ProvisionBucketInput, SendAccountDeletionEmailPayload, SignOutPayload, AcceptDatabaseTransferPayload, CancelDatabaseTransferPayload, RejectDatabaseTransferPayload, DisconnectAccountPayload, RevokeApiKeyPayload, RevokeSessionPayload, VerifyPasswordPayload, VerifyTotpPayload, SubmitAppInviteCodePayload, SubmitOrgInviteCodePayload, CheckPasswordPayload, ConfirmDeleteAccountPayload, SetPasswordPayload, VerifyEmailPayload, FreezeObjectsPayload, InitEmptyRepoPayload, ConstructBlueprintPayload, ProvisionNewUserPayload, ResetPasswordPayload, RemoveNodeAtPathPayload, CopyTemplateToBlueprintPayload, ProvisionSpatialRelationPayload, BootstrapUserPayload, SetFieldOrderPayload, ProvisionUniqueConstraintPayload, ProvisionFullTextSearchPayload, ProvisionIndexPayload, SetDataAtPathPayload, SetPropsAndCommitPayload, ProvisionDatabaseWithUserPayload, InsertNodeAtPathPayload, UpdateNodeAtPathPayload, SetAndCommitPayload, ProvisionRelationPayload, ApplyRlsPayload, SignInCrossOriginPayload, CreateUserDatabasePayload, ExtendTokenExpiresPayload, CreateApiKeyPayload, SignUpPayload, RequestCrossOriginTokenPayload, SignInPayload, ProvisionTablePayload, SendVerificationEmailPayload, ForgotPasswordPayload, RequestUploadUrlPayload, ConfirmUploadPayload, ProvisionBucketPayload, SendAccountDeletionEmailPayloadSelect, SignOutPayloadSelect, AcceptDatabaseTransferPayloadSelect, CancelDatabaseTransferPayloadSelect, RejectDatabaseTransferPayloadSelect, DisconnectAccountPayloadSelect, RevokeApiKeyPayloadSelect, RevokeSessionPayloadSelect, VerifyPasswordPayloadSelect, VerifyTotpPayloadSelect, SubmitAppInviteCodePayloadSelect, SubmitOrgInviteCodePayloadSelect, CheckPasswordPayloadSelect, ConfirmDeleteAccountPayloadSelect, SetPasswordPayloadSelect, VerifyEmailPayloadSelect, FreezeObjectsPayloadSelect, InitEmptyRepoPayloadSelect, ConstructBlueprintPayloadSelect, ProvisionNewUserPayloadSelect, ResetPasswordPayloadSelect, RemoveNodeAtPathPayloadSelect, CopyTemplateToBlueprintPayloadSelect, ProvisionSpatialRelationPayloadSelect, BootstrapUserPayloadSelect, SetFieldOrderPayloadSelect, ProvisionUniqueConstraintPayloadSelect, ProvisionFullTextSearchPayloadSelect, ProvisionIndexPayloadSelect, SetDataAtPathPayloadSelect, SetPropsAndCommitPayloadSelect, ProvisionDatabaseWithUserPayloadSelect, InsertNodeAtPathPayloadSelect, UpdateNodeAtPathPayloadSelect, SetAndCommitPayloadSelect, ProvisionRelationPayloadSelect, ApplyRlsPayloadSelect, SignInCrossOriginPayloadSelect, CreateUserDatabasePayloadSelect, ExtendTokenExpiresPayloadSelect, CreateApiKeyPayloadSelect, SignUpPayloadSelect, RequestCrossOriginTokenPayloadSelect, SignInPayloadSelect, ProvisionTablePayloadSelect, SendVerificationEmailPayloadSelect, ForgotPasswordPayloadSelect, RequestUploadUrlPayloadSelect, ConfirmUploadPayloadSelect, ProvisionBucketPayloadSelect } from '../input-types';
9
+ import type { SendAccountDeletionEmailInput, SignOutInput, AcceptDatabaseTransferInput, CancelDatabaseTransferInput, RejectDatabaseTransferInput, DisconnectAccountInput, RevokeApiKeyInput, RevokeSessionInput, VerifyPasswordInput, VerifyTotpInput, SubmitAppInviteCodeInput, SubmitOrgInviteCodeInput, CheckPasswordInput, ConfirmDeleteAccountInput, SetPasswordInput, VerifyEmailInput, FreezeObjectsInput, InitEmptyRepoInput, ConstructBlueprintInput, ProvisionNewUserInput, ResetPasswordInput, RemoveNodeAtPathInput, CopyTemplateToBlueprintInput, ProvisionSpatialRelationInput, BootstrapUserInput, SetFieldOrderInput, ProvisionUniqueConstraintInput, ProvisionFullTextSearchInput, ProvisionIndexInput, SetDataAtPathInput, SetPropsAndCommitInput, ProvisionDatabaseWithUserInput, InsertNodeAtPathInput, UpdateNodeAtPathInput, SetAndCommitInput, ProvisionRelationInput, ApplyRlsInput, SignInCrossOriginInput, CreateUserDatabaseInput, ExtendTokenExpiresInput, CreateApiKeyInput, SendVerificationEmailInput, ForgotPasswordInput, SignUpInput, RequestCrossOriginTokenInput, SignInInput, ProvisionTableInput, RequestUploadUrlInput, ProvisionBucketInput, SendAccountDeletionEmailPayload, SignOutPayload, AcceptDatabaseTransferPayload, CancelDatabaseTransferPayload, RejectDatabaseTransferPayload, DisconnectAccountPayload, RevokeApiKeyPayload, RevokeSessionPayload, VerifyPasswordPayload, VerifyTotpPayload, SubmitAppInviteCodePayload, SubmitOrgInviteCodePayload, CheckPasswordPayload, ConfirmDeleteAccountPayload, SetPasswordPayload, VerifyEmailPayload, FreezeObjectsPayload, InitEmptyRepoPayload, ConstructBlueprintPayload, ProvisionNewUserPayload, ResetPasswordPayload, RemoveNodeAtPathPayload, CopyTemplateToBlueprintPayload, ProvisionSpatialRelationPayload, BootstrapUserPayload, SetFieldOrderPayload, ProvisionUniqueConstraintPayload, ProvisionFullTextSearchPayload, ProvisionIndexPayload, SetDataAtPathPayload, SetPropsAndCommitPayload, ProvisionDatabaseWithUserPayload, InsertNodeAtPathPayload, UpdateNodeAtPathPayload, SetAndCommitPayload, ProvisionRelationPayload, ApplyRlsPayload, SignInCrossOriginPayload, CreateUserDatabasePayload, ExtendTokenExpiresPayload, CreateApiKeyPayload, SendVerificationEmailPayload, ForgotPasswordPayload, SignUpPayload, RequestCrossOriginTokenPayload, SignInPayload, ProvisionTablePayload, RequestUploadUrlPayload, ProvisionBucketPayload, SendAccountDeletionEmailPayloadSelect, SignOutPayloadSelect, AcceptDatabaseTransferPayloadSelect, CancelDatabaseTransferPayloadSelect, RejectDatabaseTransferPayloadSelect, DisconnectAccountPayloadSelect, RevokeApiKeyPayloadSelect, RevokeSessionPayloadSelect, VerifyPasswordPayloadSelect, VerifyTotpPayloadSelect, SubmitAppInviteCodePayloadSelect, SubmitOrgInviteCodePayloadSelect, CheckPasswordPayloadSelect, ConfirmDeleteAccountPayloadSelect, SetPasswordPayloadSelect, VerifyEmailPayloadSelect, FreezeObjectsPayloadSelect, InitEmptyRepoPayloadSelect, ConstructBlueprintPayloadSelect, ProvisionNewUserPayloadSelect, ResetPasswordPayloadSelect, RemoveNodeAtPathPayloadSelect, CopyTemplateToBlueprintPayloadSelect, ProvisionSpatialRelationPayloadSelect, BootstrapUserPayloadSelect, SetFieldOrderPayloadSelect, ProvisionUniqueConstraintPayloadSelect, ProvisionFullTextSearchPayloadSelect, ProvisionIndexPayloadSelect, SetDataAtPathPayloadSelect, SetPropsAndCommitPayloadSelect, ProvisionDatabaseWithUserPayloadSelect, InsertNodeAtPathPayloadSelect, UpdateNodeAtPathPayloadSelect, SetAndCommitPayloadSelect, ProvisionRelationPayloadSelect, ApplyRlsPayloadSelect, SignInCrossOriginPayloadSelect, CreateUserDatabasePayloadSelect, ExtendTokenExpiresPayloadSelect, CreateApiKeyPayloadSelect, SendVerificationEmailPayloadSelect, ForgotPasswordPayloadSelect, SignUpPayloadSelect, RequestCrossOriginTokenPayloadSelect, SignInPayloadSelect, ProvisionTablePayloadSelect, RequestUploadUrlPayloadSelect, ProvisionBucketPayloadSelect } from '../input-types';
10
10
  export interface SendAccountDeletionEmailVariables {
11
11
  input: SendAccountDeletionEmailInput;
12
12
  }
@@ -177,6 +177,12 @@ export interface ExtendTokenExpiresVariables {
177
177
  export interface CreateApiKeyVariables {
178
178
  input: CreateApiKeyInput;
179
179
  }
180
+ export interface SendVerificationEmailVariables {
181
+ input: SendVerificationEmailInput;
182
+ }
183
+ export interface ForgotPasswordVariables {
184
+ input: ForgotPasswordInput;
185
+ }
180
186
  export interface SignUpVariables {
181
187
  input: SignUpInput;
182
188
  }
@@ -193,12 +199,6 @@ export interface SignInVariables {
193
199
  export interface ProvisionTableVariables {
194
200
  input: ProvisionTableInput;
195
201
  }
196
- export interface SendVerificationEmailVariables {
197
- input: SendVerificationEmailInput;
198
- }
199
- export interface ForgotPasswordVariables {
200
- input: ForgotPasswordInput;
201
- }
202
202
  /**
203
203
  * Variables for requestUploadUrl
204
204
  * Request a presigned URL for uploading a file directly to S3.
@@ -209,15 +209,6 @@ existing file ID and deduplicated=true with no uploadUrl.
209
209
  export interface RequestUploadUrlVariables {
210
210
  input: RequestUploadUrlInput;
211
211
  }
212
- /**
213
- * Variables for confirmUpload
214
- * Confirm that a file has been uploaded to S3.
215
- Verifies the object exists in S3, checks content-type,
216
- and transitions the file status from 'pending' to 'ready'.
217
- */
218
- export interface ConfirmUploadVariables {
219
- input: ConfirmUploadInput;
220
- }
221
212
  /**
222
213
  * Variables for provisionBucket
223
214
  * Provision an S3 bucket for a logical bucket in the database.
@@ -434,6 +425,16 @@ export declare function createMutationOperations(client: OrmClient): {
434
425
  } & StrictSelect<S, CreateApiKeyPayloadSelect>) => QueryBuilder<{
435
426
  createApiKey: InferSelectResult<CreateApiKeyPayload, S> | null;
436
427
  }>;
428
+ sendVerificationEmail: <S extends SendVerificationEmailPayloadSelect>(args: SendVerificationEmailVariables, options: {
429
+ select: S;
430
+ } & StrictSelect<S, SendVerificationEmailPayloadSelect>) => QueryBuilder<{
431
+ sendVerificationEmail: InferSelectResult<SendVerificationEmailPayload, S> | null;
432
+ }>;
433
+ forgotPassword: <S extends ForgotPasswordPayloadSelect>(args: ForgotPasswordVariables, options: {
434
+ select: S;
435
+ } & StrictSelect<S, ForgotPasswordPayloadSelect>) => QueryBuilder<{
436
+ forgotPassword: InferSelectResult<ForgotPasswordPayload, S> | null;
437
+ }>;
437
438
  signUp: <S extends SignUpPayloadSelect>(args: SignUpVariables, options: {
438
439
  select: S;
439
440
  } & StrictSelect<S, SignUpPayloadSelect>) => QueryBuilder<{
@@ -454,26 +455,11 @@ export declare function createMutationOperations(client: OrmClient): {
454
455
  } & StrictSelect<S, ProvisionTablePayloadSelect>) => QueryBuilder<{
455
456
  provisionTable: InferSelectResult<ProvisionTablePayload, S> | null;
456
457
  }>;
457
- sendVerificationEmail: <S extends SendVerificationEmailPayloadSelect>(args: SendVerificationEmailVariables, options: {
458
- select: S;
459
- } & StrictSelect<S, SendVerificationEmailPayloadSelect>) => QueryBuilder<{
460
- sendVerificationEmail: InferSelectResult<SendVerificationEmailPayload, S> | null;
461
- }>;
462
- forgotPassword: <S extends ForgotPasswordPayloadSelect>(args: ForgotPasswordVariables, options: {
463
- select: S;
464
- } & StrictSelect<S, ForgotPasswordPayloadSelect>) => QueryBuilder<{
465
- forgotPassword: InferSelectResult<ForgotPasswordPayload, S> | null;
466
- }>;
467
458
  requestUploadUrl: <S extends RequestUploadUrlPayloadSelect>(args: RequestUploadUrlVariables, options: {
468
459
  select: S;
469
460
  } & StrictSelect<S, RequestUploadUrlPayloadSelect>) => QueryBuilder<{
470
461
  requestUploadUrl: InferSelectResult<RequestUploadUrlPayload, S> | null;
471
462
  }>;
472
- confirmUpload: <S extends ConfirmUploadPayloadSelect>(args: ConfirmUploadVariables, options: {
473
- select: S;
474
- } & StrictSelect<S, ConfirmUploadPayloadSelect>) => QueryBuilder<{
475
- confirmUpload: InferSelectResult<ConfirmUploadPayload, S> | null;
476
- }>;
477
463
  provisionBucket: <S extends ProvisionBucketPayloadSelect>(args: ProvisionBucketVariables, options: {
478
464
  select: S;
479
465
  } & StrictSelect<S, ProvisionBucketPayloadSelect>) => QueryBuilder<{
@@ -494,6 +494,30 @@ export function createMutationOperations(client) {
494
494
  },
495
495
  ], connectionFieldsMap, 'CreateApiKeyPayload'),
496
496
  }),
497
+ sendVerificationEmail: (args, options) => new QueryBuilder({
498
+ client,
499
+ operation: 'mutation',
500
+ operationName: 'SendVerificationEmail',
501
+ fieldName: 'sendVerificationEmail',
502
+ ...buildCustomDocument('mutation', 'SendVerificationEmail', 'sendVerificationEmail', options.select, args, [
503
+ {
504
+ name: 'input',
505
+ type: 'SendVerificationEmailInput!',
506
+ },
507
+ ], connectionFieldsMap, 'SendVerificationEmailPayload'),
508
+ }),
509
+ forgotPassword: (args, options) => new QueryBuilder({
510
+ client,
511
+ operation: 'mutation',
512
+ operationName: 'ForgotPassword',
513
+ fieldName: 'forgotPassword',
514
+ ...buildCustomDocument('mutation', 'ForgotPassword', 'forgotPassword', options.select, args, [
515
+ {
516
+ name: 'input',
517
+ type: 'ForgotPasswordInput!',
518
+ },
519
+ ], connectionFieldsMap, 'ForgotPasswordPayload'),
520
+ }),
497
521
  signUp: (args, options) => new QueryBuilder({
498
522
  client,
499
523
  operation: 'mutation',
@@ -542,30 +566,6 @@ export function createMutationOperations(client) {
542
566
  },
543
567
  ], connectionFieldsMap, 'ProvisionTablePayload'),
544
568
  }),
545
- sendVerificationEmail: (args, options) => new QueryBuilder({
546
- client,
547
- operation: 'mutation',
548
- operationName: 'SendVerificationEmail',
549
- fieldName: 'sendVerificationEmail',
550
- ...buildCustomDocument('mutation', 'SendVerificationEmail', 'sendVerificationEmail', options.select, args, [
551
- {
552
- name: 'input',
553
- type: 'SendVerificationEmailInput!',
554
- },
555
- ], connectionFieldsMap, 'SendVerificationEmailPayload'),
556
- }),
557
- forgotPassword: (args, options) => new QueryBuilder({
558
- client,
559
- operation: 'mutation',
560
- operationName: 'ForgotPassword',
561
- fieldName: 'forgotPassword',
562
- ...buildCustomDocument('mutation', 'ForgotPassword', 'forgotPassword', options.select, args, [
563
- {
564
- name: 'input',
565
- type: 'ForgotPasswordInput!',
566
- },
567
- ], connectionFieldsMap, 'ForgotPasswordPayload'),
568
- }),
569
569
  requestUploadUrl: (args, options) => new QueryBuilder({
570
570
  client,
571
571
  operation: 'mutation',
@@ -578,18 +578,6 @@ export function createMutationOperations(client) {
578
578
  },
579
579
  ], connectionFieldsMap, 'RequestUploadUrlPayload'),
580
580
  }),
581
- confirmUpload: (args, options) => new QueryBuilder({
582
- client,
583
- operation: 'mutation',
584
- operationName: 'ConfirmUpload',
585
- fieldName: 'confirmUpload',
586
- ...buildCustomDocument('mutation', 'ConfirmUpload', 'confirmUpload', options.select, args, [
587
- {
588
- name: 'input',
589
- type: 'ConfirmUploadInput!',
590
- },
591
- ], connectionFieldsMap, 'ConfirmUploadPayload'),
592
- }),
593
581
  provisionBucket: (args, options) => new QueryBuilder({
594
582
  client,
595
583
  operation: 'mutation',
@@ -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 { Object, User, ObjectSelect, UserSelect, ObjectConnection, AppPermissionConnection, OrgPermissionConnection, AppLevelRequirementConnection } from '../input-types';
9
+ import type { Object, User, ObjectSelect, UserSelect, AppPermissionConnection, OrgPermissionConnection, ObjectConnection, AppLevelRequirementConnection } from '../input-types';
10
10
  export interface RequireStepUpVariables {
11
11
  stepUpType?: string;
12
12
  }
@@ -63,9 +63,8 @@ export interface AppPermissionsGetMaskByNamesVariables {
63
63
  export interface OrgPermissionsGetMaskByNamesVariables {
64
64
  names?: string[];
65
65
  }
66
- export interface GetAllObjectsFromRootVariables {
67
- databaseId?: string;
68
- id?: string;
66
+ export interface AppPermissionsGetByMaskVariables {
67
+ mask?: string;
69
68
  /** Only read the first `n` values of the set. */
70
69
  first?: number;
71
70
  /**
@@ -76,10 +75,8 @@ export interface GetAllObjectsFromRootVariables {
76
75
  /** Read all values in the set after (below) this cursor. */
77
76
  after?: string;
78
77
  }
79
- export interface GetPathObjectsFromRootVariables {
80
- databaseId?: string;
81
- id?: string;
82
- path?: string[];
78
+ export interface OrgPermissionsGetByMaskVariables {
79
+ mask?: string;
83
80
  /** Only read the first `n` values of the set. */
84
81
  first?: number;
85
82
  /**
@@ -90,14 +87,9 @@ export interface GetPathObjectsFromRootVariables {
90
87
  /** Read all values in the set after (below) this cursor. */
91
88
  after?: string;
92
89
  }
93
- export interface GetObjectAtPathVariables {
94
- dbId?: string;
95
- storeId?: string;
96
- path?: string[];
97
- refname?: string;
98
- }
99
- export interface AppPermissionsGetByMaskVariables {
100
- mask?: string;
90
+ export interface GetAllObjectsFromRootVariables {
91
+ databaseId?: string;
92
+ id?: string;
101
93
  /** Only read the first `n` values of the set. */
102
94
  first?: number;
103
95
  /**
@@ -108,8 +100,10 @@ export interface AppPermissionsGetByMaskVariables {
108
100
  /** Read all values in the set after (below) this cursor. */
109
101
  after?: string;
110
102
  }
111
- export interface OrgPermissionsGetByMaskVariables {
112
- mask?: string;
103
+ export interface GetPathObjectsFromRootVariables {
104
+ databaseId?: string;
105
+ id?: string;
106
+ path?: string[];
113
107
  /** Only read the first `n` values of the set. */
114
108
  first?: number;
115
109
  /**
@@ -120,6 +114,12 @@ export interface OrgPermissionsGetByMaskVariables {
120
114
  /** Read all values in the set after (below) this cursor. */
121
115
  after?: string;
122
116
  }
117
+ export interface GetObjectAtPathVariables {
118
+ dbId?: string;
119
+ storeId?: string;
120
+ path?: string[];
121
+ refname?: string;
122
+ }
123
123
  export interface StepsRequiredVariables {
124
124
  level?: string;
125
125
  roleId?: string;
@@ -209,6 +209,16 @@ export declare function createQueryOperations(client: OrmClient): {
209
209
  }) => QueryBuilder<{
210
210
  orgPermissionsGetMaskByNames: string | null;
211
211
  }>;
212
+ appPermissionsGetByMask: (args: AppPermissionsGetByMaskVariables, options?: {
213
+ select?: Record<string, unknown>;
214
+ }) => QueryBuilder<{
215
+ appPermissionsGetByMask: AppPermissionConnection | null;
216
+ }>;
217
+ orgPermissionsGetByMask: (args: OrgPermissionsGetByMaskVariables, options?: {
218
+ select?: Record<string, unknown>;
219
+ }) => QueryBuilder<{
220
+ orgPermissionsGetByMask: OrgPermissionConnection | null;
221
+ }>;
212
222
  getAllObjectsFromRoot: (args: GetAllObjectsFromRootVariables, options?: {
213
223
  select?: Record<string, unknown>;
214
224
  }) => QueryBuilder<{
@@ -224,16 +234,6 @@ export declare function createQueryOperations(client: OrmClient): {
224
234
  } & StrictSelect<S, ObjectSelect>) => QueryBuilder<{
225
235
  getObjectAtPath: InferSelectResult<Object, S> | null;
226
236
  }>;
227
- appPermissionsGetByMask: (args: AppPermissionsGetByMaskVariables, options?: {
228
- select?: Record<string, unknown>;
229
- }) => QueryBuilder<{
230
- appPermissionsGetByMask: AppPermissionConnection | null;
231
- }>;
232
- orgPermissionsGetByMask: (args: OrgPermissionsGetByMaskVariables, options?: {
233
- select?: Record<string, unknown>;
234
- }) => QueryBuilder<{
235
- orgPermissionsGetByMask: OrgPermissionConnection | null;
236
- }>;
237
237
  stepsRequired: (args: StepsRequiredVariables, options?: {
238
238
  select?: Record<string, unknown>;
239
239
  }) => QueryBuilder<{
@@ -215,6 +215,54 @@ export function createQueryOperations(client) {
215
215
  },
216
216
  ], connectionFieldsMap, undefined),
217
217
  }),
218
+ appPermissionsGetByMask: (args, options) => new QueryBuilder({
219
+ client,
220
+ operation: 'query',
221
+ operationName: 'AppPermissionsGetByMask',
222
+ fieldName: 'appPermissionsGetByMask',
223
+ ...buildCustomDocument('query', 'AppPermissionsGetByMask', 'appPermissionsGetByMask', options?.select, args, [
224
+ {
225
+ name: 'mask',
226
+ type: 'BitString',
227
+ },
228
+ {
229
+ name: 'first',
230
+ type: 'Int',
231
+ },
232
+ {
233
+ name: 'offset',
234
+ type: 'Int',
235
+ },
236
+ {
237
+ name: 'after',
238
+ type: 'Cursor',
239
+ },
240
+ ], connectionFieldsMap, undefined),
241
+ }),
242
+ orgPermissionsGetByMask: (args, options) => new QueryBuilder({
243
+ client,
244
+ operation: 'query',
245
+ operationName: 'OrgPermissionsGetByMask',
246
+ fieldName: 'orgPermissionsGetByMask',
247
+ ...buildCustomDocument('query', 'OrgPermissionsGetByMask', 'orgPermissionsGetByMask', options?.select, args, [
248
+ {
249
+ name: 'mask',
250
+ type: 'BitString',
251
+ },
252
+ {
253
+ name: 'first',
254
+ type: 'Int',
255
+ },
256
+ {
257
+ name: 'offset',
258
+ type: 'Int',
259
+ },
260
+ {
261
+ name: 'after',
262
+ type: 'Cursor',
263
+ },
264
+ ], connectionFieldsMap, undefined),
265
+ }),
218
266
  getAllObjectsFromRoot: (args, options) => new QueryBuilder({
219
267
  client,
220
268
  operation: 'query',
@@ -299,54 +347,6 @@ export function createQueryOperations(client) {
299
347
  },
300
348
  ], connectionFieldsMap, 'Object'),
301
349
  }),
302
- appPermissionsGetByMask: (args, options) => new QueryBuilder({
303
- client,
304
- operation: 'query',
305
- operationName: 'AppPermissionsGetByMask',
306
- fieldName: 'appPermissionsGetByMask',
307
- ...buildCustomDocument('query', 'AppPermissionsGetByMask', 'appPermissionsGetByMask', options?.select, args, [
308
- {
309
- name: 'mask',
310
- type: 'BitString',
311
- },
312
- {
313
- name: 'first',
314
- type: 'Int',
315
- },
316
- {
317
- name: 'offset',
318
- type: 'Int',
319
- },
320
- {
321
- name: 'after',
322
- type: 'Cursor',
323
- },
324
- ], connectionFieldsMap, undefined),
325
- }),
326
- orgPermissionsGetByMask: (args, options) => new QueryBuilder({
327
- client,
328
- operation: 'query',
329
- operationName: 'OrgPermissionsGetByMask',
330
- fieldName: 'orgPermissionsGetByMask',
331
- ...buildCustomDocument('query', 'OrgPermissionsGetByMask', 'orgPermissionsGetByMask', options?.select, args, [
332
- {
333
- name: 'mask',
334
- type: 'BitString',
335
- },
336
- {
337
- name: 'first',
338
- type: 'Int',
339
- },
340
- {
341
- name: 'offset',
342
- type: 'Int',
343
- },
344
- {
345
- name: 'after',
346
- type: 'Cursor',
347
- },
348
- ], connectionFieldsMap, undefined),
349
- }),
350
350
  stepsRequired: (args, options) => new QueryBuilder({
351
351
  client,
352
352
  operation: 'query',
@@ -108,11 +108,6 @@ export declare function createClient(config: OrmClientConfig): {
108
108
  } & import("./select-types").StrictSelect<S, import("./input-types").RequestUploadUrlPayloadSelect>) => import("./query-builder").QueryBuilder<{
109
109
  requestUploadUrl: import("./select-types").InferSelectResult<import("./input-types").RequestUploadUrlPayload, S> | null;
110
110
  }>;
111
- confirmUpload: <S extends import("./input-types").ConfirmUploadPayloadSelect>(args: import("./mutation").ConfirmUploadVariables, options: {
112
- select: S;
113
- } & import("./select-types").StrictSelect<S, import("./input-types").ConfirmUploadPayloadSelect>) => import("./query-builder").QueryBuilder<{
114
- confirmUpload: import("./select-types").InferSelectResult<import("./input-types").ConfirmUploadPayload, S> | null;
115
- }>;
116
111
  provisionBucket: <S extends import("./input-types").ProvisionBucketPayloadSelect>(args: import("./mutation").ProvisionBucketVariables, options: {
117
112
  select: S;
118
113
  } & import("./select-types").StrictSelect<S, import("./input-types").ProvisionBucketPayloadSelect>) => import("./query-builder").QueryBuilder<{
@@ -648,10 +648,6 @@ export interface RequestUploadUrlInput {
648
648
  /** Original filename (optional, for display and Content-Disposition) */
649
649
  filename?: string;
650
650
  }
651
- export interface ConfirmUploadInput {
652
- /** The file ID returned by requestUploadUrl */
653
- fileId: string;
654
- }
655
651
  export interface ProvisionBucketInput {
656
652
  /** The logical bucket key (e.g., "public", "private") */
657
653
  bucketKey: string;
@@ -751,8 +747,6 @@ export interface RequestUploadUrlPayload {
751
747
  deduplicated: boolean;
752
748
  /** Presigned URL expiry time (null if deduplicated) */
753
749
  expiresAt?: string | null;
754
- /** File status — 'pending' for fresh uploads, 'ready' or 'processed' for deduplicated files. Clients can use this to know immediately whether the file is usable. */
755
- status: string;
756
750
  }
757
751
  export type RequestUploadUrlPayloadSelect = {
758
752
  uploadUrl?: boolean;
@@ -760,20 +754,6 @@ export type RequestUploadUrlPayloadSelect = {
760
754
  key?: boolean;
761
755
  deduplicated?: boolean;
762
756
  expiresAt?: boolean;
763
- status?: boolean;
764
- };
765
- export interface ConfirmUploadPayload {
766
- /** The confirmed file ID */
767
- fileId: string;
768
- /** New file status */
769
- status: string;
770
- /** Whether confirmation succeeded */
771
- success: boolean;
772
- }
773
- export type ConfirmUploadPayloadSelect = {
774
- fileId?: boolean;
775
- status?: boolean;
776
- success?: boolean;
777
757
  };
778
758
  export interface ProvisionBucketPayload {
779
759
  /** 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 { FreezeObjectsInput, InitEmptyRepoInput, RemoveNodeAtPathInput, SetDataAtPathInput, SetPropsAndCommitInput, InsertNodeAtPathInput, UpdateNodeAtPathInput, SetAndCommitInput, RequestUploadUrlInput, ConfirmUploadInput, ProvisionBucketInput, FreezeObjectsPayload, InitEmptyRepoPayload, RemoveNodeAtPathPayload, SetDataAtPathPayload, SetPropsAndCommitPayload, InsertNodeAtPathPayload, UpdateNodeAtPathPayload, SetAndCommitPayload, RequestUploadUrlPayload, ConfirmUploadPayload, ProvisionBucketPayload, FreezeObjectsPayloadSelect, InitEmptyRepoPayloadSelect, RemoveNodeAtPathPayloadSelect, SetDataAtPathPayloadSelect, SetPropsAndCommitPayloadSelect, InsertNodeAtPathPayloadSelect, UpdateNodeAtPathPayloadSelect, SetAndCommitPayloadSelect, RequestUploadUrlPayloadSelect, ConfirmUploadPayloadSelect, ProvisionBucketPayloadSelect } from '../input-types';
9
+ import type { FreezeObjectsInput, InitEmptyRepoInput, RemoveNodeAtPathInput, SetDataAtPathInput, SetPropsAndCommitInput, InsertNodeAtPathInput, UpdateNodeAtPathInput, SetAndCommitInput, RequestUploadUrlInput, ProvisionBucketInput, FreezeObjectsPayload, InitEmptyRepoPayload, RemoveNodeAtPathPayload, SetDataAtPathPayload, SetPropsAndCommitPayload, InsertNodeAtPathPayload, UpdateNodeAtPathPayload, SetAndCommitPayload, RequestUploadUrlPayload, ProvisionBucketPayload, FreezeObjectsPayloadSelect, InitEmptyRepoPayloadSelect, RemoveNodeAtPathPayloadSelect, SetDataAtPathPayloadSelect, SetPropsAndCommitPayloadSelect, InsertNodeAtPathPayloadSelect, UpdateNodeAtPathPayloadSelect, SetAndCommitPayloadSelect, RequestUploadUrlPayloadSelect, ProvisionBucketPayloadSelect } from '../input-types';
10
10
  export interface FreezeObjectsVariables {
11
11
  input: FreezeObjectsInput;
12
12
  }
@@ -41,15 +41,6 @@ existing file ID and deduplicated=true with no uploadUrl.
41
41
  export interface RequestUploadUrlVariables {
42
42
  input: RequestUploadUrlInput;
43
43
  }
44
- /**
45
- * Variables for confirmUpload
46
- * Confirm that a file has been uploaded to S3.
47
- Verifies the object exists in S3, checks content-type,
48
- and transitions the file status from 'pending' to 'ready'.
49
- */
50
- export interface ConfirmUploadVariables {
51
- input: ConfirmUploadInput;
52
- }
53
44
  /**
54
45
  * Variables for provisionBucket
55
46
  * Provision an S3 bucket for a logical bucket in the database.
@@ -106,11 +97,6 @@ export declare function createMutationOperations(client: OrmClient): {
106
97
  } & StrictSelect<S, RequestUploadUrlPayloadSelect>) => QueryBuilder<{
107
98
  requestUploadUrl: InferSelectResult<RequestUploadUrlPayload, S> | null;
108
99
  }>;
109
- confirmUpload: <S extends ConfirmUploadPayloadSelect>(args: ConfirmUploadVariables, options: {
110
- select: S;
111
- } & StrictSelect<S, ConfirmUploadPayloadSelect>) => QueryBuilder<{
112
- confirmUpload: InferSelectResult<ConfirmUploadPayload, S> | null;
113
- }>;
114
100
  provisionBucket: <S extends ProvisionBucketPayloadSelect>(args: ProvisionBucketVariables, options: {
115
101
  select: S;
116
102
  } & StrictSelect<S, ProvisionBucketPayloadSelect>) => QueryBuilder<{
@@ -113,18 +113,6 @@ function createMutationOperations(client) {
113
113
  },
114
114
  ], input_types_1.connectionFieldsMap, 'RequestUploadUrlPayload'),
115
115
  }),
116
- confirmUpload: (args, options) => new query_builder_1.QueryBuilder({
117
- client,
118
- operation: 'mutation',
119
- operationName: 'ConfirmUpload',
120
- fieldName: 'confirmUpload',
121
- ...(0, query_builder_1.buildCustomDocument)('mutation', 'ConfirmUpload', 'confirmUpload', options.select, args, [
122
- {
123
- name: 'input',
124
- type: 'ConfirmUploadInput!',
125
- },
126
- ], input_types_1.connectionFieldsMap, 'ConfirmUploadPayload'),
127
- }),
128
116
  provisionBucket: (args, options) => new query_builder_1.QueryBuilder({
129
117
  client,
130
118
  operation: 'mutation',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@constructive-io/sdk",
3
- "version": "0.17.1",
3
+ "version": "0.17.3",
4
4
  "author": "Constructive <developers@constructive.io>",
5
5
  "description": "Constructive SDK - Auto-generated GraphQL types and ORM client",
6
6
  "main": "index.js",
@@ -42,17 +42,17 @@
42
42
  ],
43
43
  "dependencies": {
44
44
  "@0no-co/graphql.web": "^1.1.2",
45
- "@constructive-io/graphql-query": "^3.17.1",
45
+ "@constructive-io/graphql-query": "^3.17.3",
46
46
  "@constructive-io/graphql-types": "^3.5.1",
47
47
  "gql-ast": "^3.5.0",
48
48
  "graphql": "16.13.0"
49
49
  },
50
50
  "devDependencies": {
51
- "@constructive-io/graphql-codegen": "^4.34.1",
51
+ "@constructive-io/graphql-codegen": "^4.34.3",
52
52
  "@types/node": "^22.19.11",
53
53
  "makage": "^0.3.0",
54
54
  "tsx": "^4.19.0",
55
55
  "typescript": "^5.9.3"
56
56
  },
57
- "gitHead": "c3fb0f22e5671d1e3a227817175e900ebb338f6d"
57
+ "gitHead": "caf38236170287e2ad06d5c47482ce246fb3233e"
58
58
  }