@constructive-io/sdk 0.30.2 → 0.31.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (167) hide show
  1. package/admin/orm/index.d.ts +67 -67
  2. package/admin/orm/index.js +44 -44
  3. package/admin/orm/input-types.d.ts +3168 -3168
  4. package/admin/orm/input-types.js +1 -1
  5. package/admin/orm/models/index.d.ts +22 -22
  6. package/admin/orm/models/index.js +45 -45
  7. package/admin/orm/mutation/index.d.ts +12 -12
  8. package/admin/orm/mutation/index.js +12 -12
  9. package/admin/orm/query/index.d.ts +47 -47
  10. package/admin/orm/query/index.js +68 -68
  11. package/agent/orm/index.d.ts +8 -8
  12. package/agent/orm/index.js +8 -8
  13. package/agent/orm/input-types.d.ts +1788 -1788
  14. package/agent/orm/input-types.js +9 -9
  15. package/agent/orm/models/index.d.ts +4 -4
  16. package/agent/orm/models/index.js +9 -9
  17. package/api/orm/index.d.ts +77 -77
  18. package/api/orm/index.js +64 -64
  19. package/api/orm/input-types.d.ts +8781 -8781
  20. package/api/orm/input-types.js +48 -48
  21. package/api/orm/models/index.d.ts +32 -32
  22. package/api/orm/models/index.js +65 -65
  23. package/api/orm/mutation/index.d.ts +29 -29
  24. package/api/orm/mutation/index.js +30 -30
  25. package/api/orm/query/index.d.ts +1 -1
  26. package/api/orm/query/index.js +4 -4
  27. package/auth/orm/index.d.ts +103 -103
  28. package/auth/orm/index.js +14 -14
  29. package/auth/orm/input-types.d.ts +2102 -2109
  30. package/auth/orm/input-types.js +5 -5
  31. package/auth/orm/models/index.d.ts +7 -7
  32. package/auth/orm/models/index.js +15 -15
  33. package/auth/orm/mutation/index.d.ts +138 -138
  34. package/auth/orm/mutation/index.js +168 -168
  35. package/auth/orm/query/index.d.ts +10 -10
  36. package/auth/orm/query/index.js +14 -14
  37. package/compute/orm/index.d.ts +110 -110
  38. package/compute/orm/index.js +64 -64
  39. package/compute/orm/input-types.d.ts +7256 -7037
  40. package/compute/orm/input-types.js +15 -13
  41. package/compute/orm/models/index.d.ts +32 -32
  42. package/compute/orm/models/index.js +65 -65
  43. package/compute/orm/mutation/index.d.ts +77 -77
  44. package/compute/orm/mutation/index.js +96 -96
  45. package/config/orm/index.d.ts +30 -30
  46. package/config/orm/index.js +2 -2
  47. package/config/orm/input-types.d.ts +416 -416
  48. package/config/orm/models/index.d.ts +1 -1
  49. package/config/orm/models/index.js +3 -3
  50. package/config/orm/mutation/index.d.ts +47 -47
  51. package/config/orm/mutation/index.js +60 -60
  52. package/esm/admin/orm/index.d.ts +67 -67
  53. package/esm/admin/orm/index.js +44 -44
  54. package/esm/admin/orm/input-types.d.ts +3168 -3168
  55. package/esm/admin/orm/input-types.js +1 -1
  56. package/esm/admin/orm/models/index.d.ts +22 -22
  57. package/esm/admin/orm/models/index.js +22 -22
  58. package/esm/admin/orm/mutation/index.d.ts +12 -12
  59. package/esm/admin/orm/mutation/index.js +12 -12
  60. package/esm/admin/orm/query/index.d.ts +47 -47
  61. package/esm/admin/orm/query/index.js +68 -68
  62. package/esm/agent/orm/index.d.ts +8 -8
  63. package/esm/agent/orm/index.js +8 -8
  64. package/esm/agent/orm/input-types.d.ts +1788 -1788
  65. package/esm/agent/orm/input-types.js +9 -9
  66. package/esm/agent/orm/models/index.d.ts +4 -4
  67. package/esm/agent/orm/models/index.js +4 -4
  68. package/esm/api/orm/index.d.ts +77 -77
  69. package/esm/api/orm/index.js +64 -64
  70. package/esm/api/orm/input-types.d.ts +8781 -8781
  71. package/esm/api/orm/input-types.js +48 -48
  72. package/esm/api/orm/models/index.d.ts +32 -32
  73. package/esm/api/orm/models/index.js +32 -32
  74. package/esm/api/orm/mutation/index.d.ts +29 -29
  75. package/esm/api/orm/mutation/index.js +30 -30
  76. package/esm/api/orm/query/index.d.ts +1 -1
  77. package/esm/api/orm/query/index.js +4 -4
  78. package/esm/auth/orm/index.d.ts +103 -103
  79. package/esm/auth/orm/index.js +14 -14
  80. package/esm/auth/orm/input-types.d.ts +2102 -2109
  81. package/esm/auth/orm/input-types.js +5 -5
  82. package/esm/auth/orm/models/index.d.ts +7 -7
  83. package/esm/auth/orm/models/index.js +7 -7
  84. package/esm/auth/orm/mutation/index.d.ts +138 -138
  85. package/esm/auth/orm/mutation/index.js +168 -168
  86. package/esm/auth/orm/query/index.d.ts +10 -10
  87. package/esm/auth/orm/query/index.js +14 -14
  88. package/esm/compute/orm/index.d.ts +110 -110
  89. package/esm/compute/orm/index.js +64 -64
  90. package/esm/compute/orm/input-types.d.ts +7256 -7037
  91. package/esm/compute/orm/input-types.js +15 -13
  92. package/esm/compute/orm/models/index.d.ts +32 -32
  93. package/esm/compute/orm/models/index.js +32 -32
  94. package/esm/compute/orm/mutation/index.d.ts +77 -77
  95. package/esm/compute/orm/mutation/index.js +96 -96
  96. package/esm/config/orm/index.d.ts +30 -30
  97. package/esm/config/orm/index.js +2 -2
  98. package/esm/config/orm/input-types.d.ts +416 -416
  99. package/esm/config/orm/models/index.d.ts +1 -1
  100. package/esm/config/orm/models/index.js +1 -1
  101. package/esm/config/orm/mutation/index.d.ts +47 -47
  102. package/esm/config/orm/mutation/index.js +60 -60
  103. package/esm/infra/orm/index.d.ts +15 -15
  104. package/esm/infra/orm/index.js +10 -10
  105. package/esm/infra/orm/input-types.d.ts +971 -971
  106. package/esm/infra/orm/models/index.d.ts +5 -5
  107. package/esm/infra/orm/models/index.js +5 -5
  108. package/esm/infra/orm/mutation/index.d.ts +9 -9
  109. package/esm/infra/orm/mutation/index.js +12 -12
  110. package/esm/modules/orm/index.d.ts +126 -126
  111. package/esm/modules/orm/index.js +106 -106
  112. package/esm/modules/orm/input-types.d.ts +11482 -11468
  113. package/esm/modules/orm/input-types.js +1 -1
  114. package/esm/modules/orm/models/index.d.ts +53 -53
  115. package/esm/modules/orm/models/index.js +53 -53
  116. package/esm/modules/orm/mutation/index.d.ts +51 -51
  117. package/esm/modules/orm/mutation/index.js +42 -42
  118. package/esm/modules/orm/query/index.d.ts +3 -3
  119. package/esm/modules/orm/query/index.js +8 -8
  120. package/esm/objects/orm/index.d.ts +9 -9
  121. package/esm/objects/orm/index.js +4 -4
  122. package/esm/objects/orm/input-types.d.ts +384 -384
  123. package/esm/objects/orm/models/index.d.ts +2 -2
  124. package/esm/objects/orm/models/index.js +2 -2
  125. package/esm/objects/orm/mutation/index.d.ts +9 -9
  126. package/esm/objects/orm/mutation/index.js +12 -12
  127. package/esm/usage/orm/index.d.ts +29 -29
  128. package/esm/usage/orm/index.js +24 -24
  129. package/esm/usage/orm/input-types.d.ts +2049 -2049
  130. package/esm/usage/orm/input-types.js +5 -5
  131. package/esm/usage/orm/models/index.d.ts +12 -12
  132. package/esm/usage/orm/models/index.js +12 -12
  133. package/esm/usage/orm/mutation/index.d.ts +16 -16
  134. package/esm/usage/orm/mutation/index.js +12 -12
  135. package/infra/orm/index.d.ts +15 -15
  136. package/infra/orm/index.js +10 -10
  137. package/infra/orm/input-types.d.ts +971 -971
  138. package/infra/orm/models/index.d.ts +5 -5
  139. package/infra/orm/models/index.js +11 -11
  140. package/infra/orm/mutation/index.d.ts +9 -9
  141. package/infra/orm/mutation/index.js +12 -12
  142. package/modules/orm/index.d.ts +126 -126
  143. package/modules/orm/index.js +106 -106
  144. package/modules/orm/input-types.d.ts +11482 -11468
  145. package/modules/orm/input-types.js +1 -1
  146. package/modules/orm/models/index.d.ts +53 -53
  147. package/modules/orm/models/index.js +108 -108
  148. package/modules/orm/mutation/index.d.ts +51 -51
  149. package/modules/orm/mutation/index.js +42 -42
  150. package/modules/orm/query/index.d.ts +3 -3
  151. package/modules/orm/query/index.js +8 -8
  152. package/objects/orm/index.d.ts +9 -9
  153. package/objects/orm/index.js +4 -4
  154. package/objects/orm/input-types.d.ts +384 -384
  155. package/objects/orm/models/index.d.ts +2 -2
  156. package/objects/orm/models/index.js +5 -5
  157. package/objects/orm/mutation/index.d.ts +9 -9
  158. package/objects/orm/mutation/index.js +12 -12
  159. package/package.json +4 -4
  160. package/usage/orm/index.d.ts +29 -29
  161. package/usage/orm/index.js +24 -24
  162. package/usage/orm/input-types.d.ts +2049 -2049
  163. package/usage/orm/input-types.js +5 -5
  164. package/usage/orm/models/index.d.ts +12 -12
  165. package/usage/orm/models/index.js +25 -25
  166. package/usage/orm/mutation/index.d.ts +16 -16
  167. package/usage/orm/mutation/index.js +12 -12
@@ -2,30 +2,6 @@ import { QueryBuilder, buildCustomDocument } from '../query-builder';
2
2
  import { connectionFieldsMap } from '../input-types';
3
3
  export function createMutationOperations(client) {
4
4
  return {
5
- signOut: (args, options) => new QueryBuilder({
6
- client,
7
- operation: 'mutation',
8
- operationName: 'SignOut',
9
- fieldName: 'signOut',
10
- ...buildCustomDocument('mutation', 'SignOut', 'signOut', options.select, args, [
11
- {
12
- name: 'input',
13
- type: 'SignOutInput!',
14
- },
15
- ], connectionFieldsMap, 'SignOutPayload'),
16
- }),
17
- sendAccountDeletionEmail: (args, options) => new QueryBuilder({
18
- client,
19
- operation: 'mutation',
20
- operationName: 'SendAccountDeletionEmail',
21
- fieldName: 'sendAccountDeletionEmail',
22
- ...buildCustomDocument('mutation', 'SendAccountDeletionEmail', 'sendAccountDeletionEmail', options.select, args, [
23
- {
24
- name: 'input',
25
- type: 'SendAccountDeletionEmailInput!',
26
- },
27
- ], connectionFieldsMap, 'SendAccountDeletionEmailPayload'),
28
- }),
29
5
  checkPassword: (args, options) => new QueryBuilder({
30
6
  client,
31
7
  operation: 'mutation',
@@ -38,137 +14,137 @@ export function createMutationOperations(client) {
38
14
  },
39
15
  ], connectionFieldsMap, 'CheckPasswordPayload'),
40
16
  }),
41
- deleteOrgPrincipal: (args, options) => new QueryBuilder({
17
+ confirmDeleteAccount: (args, options) => new QueryBuilder({
42
18
  client,
43
19
  operation: 'mutation',
44
- operationName: 'DeleteOrgPrincipal',
45
- fieldName: 'deleteOrgPrincipal',
46
- ...buildCustomDocument('mutation', 'DeleteOrgPrincipal', 'deleteOrgPrincipal', options.select, args, [
20
+ operationName: 'ConfirmDeleteAccount',
21
+ fieldName: 'confirmDeleteAccount',
22
+ ...buildCustomDocument('mutation', 'ConfirmDeleteAccount', 'confirmDeleteAccount', options.select, args, [
47
23
  {
48
24
  name: 'input',
49
- type: 'DeleteOrgPrincipalInput!',
25
+ type: 'ConfirmDeleteAccountInput!',
50
26
  },
51
- ], connectionFieldsMap, 'DeleteOrgPrincipalPayload'),
27
+ ], connectionFieldsMap, 'ConfirmDeleteAccountPayload'),
52
28
  }),
53
- deletePrincipal: (args, options) => new QueryBuilder({
29
+ createApiKey: (args, options) => new QueryBuilder({
54
30
  client,
55
31
  operation: 'mutation',
56
- operationName: 'DeletePrincipal',
57
- fieldName: 'deletePrincipal',
58
- ...buildCustomDocument('mutation', 'DeletePrincipal', 'deletePrincipal', options.select, args, [
32
+ operationName: 'CreateApiKey',
33
+ fieldName: 'createApiKey',
34
+ ...buildCustomDocument('mutation', 'CreateApiKey', 'createApiKey', options.select, args, [
59
35
  {
60
36
  name: 'input',
61
- type: 'DeletePrincipalInput!',
37
+ type: 'CreateApiKeyInput!',
62
38
  },
63
- ], connectionFieldsMap, 'DeletePrincipalPayload'),
39
+ ], connectionFieldsMap, 'CreateApiKeyPayload'),
64
40
  }),
65
- disconnectAccount: (args, options) => new QueryBuilder({
41
+ createOrgApiKey: (args, options) => new QueryBuilder({
66
42
  client,
67
43
  operation: 'mutation',
68
- operationName: 'DisconnectAccount',
69
- fieldName: 'disconnectAccount',
70
- ...buildCustomDocument('mutation', 'DisconnectAccount', 'disconnectAccount', options.select, args, [
44
+ operationName: 'CreateOrgApiKey',
45
+ fieldName: 'createOrgApiKey',
46
+ ...buildCustomDocument('mutation', 'CreateOrgApiKey', 'createOrgApiKey', options.select, args, [
71
47
  {
72
48
  name: 'input',
73
- type: 'DisconnectAccountInput!',
49
+ type: 'CreateOrgApiKeyInput!',
74
50
  },
75
- ], connectionFieldsMap, 'DisconnectAccountPayload'),
51
+ ], connectionFieldsMap, 'CreateOrgApiKeyPayload'),
76
52
  }),
77
- revokeApiKey: (args, options) => new QueryBuilder({
53
+ createOrgPrincipal: (args, options) => new QueryBuilder({
78
54
  client,
79
55
  operation: 'mutation',
80
- operationName: 'RevokeApiKey',
81
- fieldName: 'revokeApiKey',
82
- ...buildCustomDocument('mutation', 'RevokeApiKey', 'revokeApiKey', options.select, args, [
56
+ operationName: 'CreateOrgPrincipal',
57
+ fieldName: 'createOrgPrincipal',
58
+ ...buildCustomDocument('mutation', 'CreateOrgPrincipal', 'createOrgPrincipal', options.select, args, [
83
59
  {
84
60
  name: 'input',
85
- type: 'RevokeApiKeyInput!',
61
+ type: 'CreateOrgPrincipalInput!',
86
62
  },
87
- ], connectionFieldsMap, 'RevokeApiKeyPayload'),
63
+ ], connectionFieldsMap, 'CreateOrgPrincipalPayload'),
88
64
  }),
89
- revokeSession: (args, options) => new QueryBuilder({
65
+ deleteOrgPrincipal: (args, options) => new QueryBuilder({
90
66
  client,
91
67
  operation: 'mutation',
92
- operationName: 'RevokeSession',
93
- fieldName: 'revokeSession',
94
- ...buildCustomDocument('mutation', 'RevokeSession', 'revokeSession', options.select, args, [
68
+ operationName: 'DeleteOrgPrincipal',
69
+ fieldName: 'deleteOrgPrincipal',
70
+ ...buildCustomDocument('mutation', 'DeleteOrgPrincipal', 'deleteOrgPrincipal', options.select, args, [
95
71
  {
96
72
  name: 'input',
97
- type: 'RevokeSessionInput!',
73
+ type: 'DeleteOrgPrincipalInput!',
98
74
  },
99
- ], connectionFieldsMap, 'RevokeSessionPayload'),
75
+ ], connectionFieldsMap, 'DeleteOrgPrincipalPayload'),
100
76
  }),
101
- verifyPassword: (args, options) => new QueryBuilder({
77
+ deletePrincipal: (args, options) => new QueryBuilder({
102
78
  client,
103
79
  operation: 'mutation',
104
- operationName: 'VerifyPassword',
105
- fieldName: 'verifyPassword',
106
- ...buildCustomDocument('mutation', 'VerifyPassword', 'verifyPassword', options.select, args, [
80
+ operationName: 'DeletePrincipal',
81
+ fieldName: 'deletePrincipal',
82
+ ...buildCustomDocument('mutation', 'DeletePrincipal', 'deletePrincipal', options.select, args, [
107
83
  {
108
84
  name: 'input',
109
- type: 'VerifyPasswordInput!',
85
+ type: 'DeletePrincipalInput!',
110
86
  },
111
- ], connectionFieldsMap, 'VerifyPasswordPayload'),
87
+ ], connectionFieldsMap, 'DeletePrincipalPayload'),
112
88
  }),
113
- verifyTotp: (args, options) => new QueryBuilder({
89
+ disconnectAccount: (args, options) => new QueryBuilder({
114
90
  client,
115
91
  operation: 'mutation',
116
- operationName: 'VerifyTotp',
117
- fieldName: 'verifyTotp',
118
- ...buildCustomDocument('mutation', 'VerifyTotp', 'verifyTotp', options.select, args, [
92
+ operationName: 'DisconnectAccount',
93
+ fieldName: 'disconnectAccount',
94
+ ...buildCustomDocument('mutation', 'DisconnectAccount', 'disconnectAccount', options.select, args, [
119
95
  {
120
96
  name: 'input',
121
- type: 'VerifyTotpInput!',
97
+ type: 'DisconnectAccountInput!',
122
98
  },
123
- ], connectionFieldsMap, 'VerifyTotpPayload'),
99
+ ], connectionFieldsMap, 'DisconnectAccountPayload'),
124
100
  }),
125
- confirmDeleteAccount: (args, options) => new QueryBuilder({
101
+ extendTokenExpires: (args, options) => new QueryBuilder({
126
102
  client,
127
103
  operation: 'mutation',
128
- operationName: 'ConfirmDeleteAccount',
129
- fieldName: 'confirmDeleteAccount',
130
- ...buildCustomDocument('mutation', 'ConfirmDeleteAccount', 'confirmDeleteAccount', options.select, args, [
104
+ operationName: 'ExtendTokenExpires',
105
+ fieldName: 'extendTokenExpires',
106
+ ...buildCustomDocument('mutation', 'ExtendTokenExpires', 'extendTokenExpires', options.select, args, [
131
107
  {
132
108
  name: 'input',
133
- type: 'ConfirmDeleteAccountInput!',
109
+ type: 'ExtendTokenExpiresInput!',
134
110
  },
135
- ], connectionFieldsMap, 'ConfirmDeleteAccountPayload'),
111
+ ], connectionFieldsMap, 'ExtendTokenExpiresPayload'),
136
112
  }),
137
- revokeOrgApiKey: (args, options) => new QueryBuilder({
113
+ forgotPassword: (args, options) => new QueryBuilder({
138
114
  client,
139
115
  operation: 'mutation',
140
- operationName: 'RevokeOrgApiKey',
141
- fieldName: 'revokeOrgApiKey',
142
- ...buildCustomDocument('mutation', 'RevokeOrgApiKey', 'revokeOrgApiKey', options.select, args, [
116
+ operationName: 'ForgotPassword',
117
+ fieldName: 'forgotPassword',
118
+ ...buildCustomDocument('mutation', 'ForgotPassword', 'forgotPassword', options.select, args, [
143
119
  {
144
120
  name: 'input',
145
- type: 'RevokeOrgApiKeyInput!',
121
+ type: 'ForgotPasswordInput!',
146
122
  },
147
- ], connectionFieldsMap, 'RevokeOrgApiKeyPayload'),
123
+ ], connectionFieldsMap, 'ForgotPasswordPayload'),
148
124
  }),
149
- setPassword: (args, options) => new QueryBuilder({
125
+ linkIdentity: (args, options) => new QueryBuilder({
150
126
  client,
151
127
  operation: 'mutation',
152
- operationName: 'SetPassword',
153
- fieldName: 'setPassword',
154
- ...buildCustomDocument('mutation', 'SetPassword', 'setPassword', options.select, args, [
128
+ operationName: 'LinkIdentity',
129
+ fieldName: 'linkIdentity',
130
+ ...buildCustomDocument('mutation', 'LinkIdentity', 'linkIdentity', options.select, args, [
155
131
  {
156
132
  name: 'input',
157
- type: 'SetPasswordInput!',
133
+ type: 'LinkIdentityInput!',
158
134
  },
159
- ], connectionFieldsMap, 'SetPasswordPayload'),
135
+ ], connectionFieldsMap, 'LinkIdentityPayload'),
160
136
  }),
161
- verifyEmail: (args, options) => new QueryBuilder({
137
+ provisionBucket: (args, options) => new QueryBuilder({
162
138
  client,
163
139
  operation: 'mutation',
164
- operationName: 'VerifyEmail',
165
- fieldName: 'verifyEmail',
166
- ...buildCustomDocument('mutation', 'VerifyEmail', 'verifyEmail', options.select, args, [
140
+ operationName: 'ProvisionBucket',
141
+ fieldName: 'provisionBucket',
142
+ ...buildCustomDocument('mutation', 'ProvisionBucket', 'provisionBucket', options.select, args, [
167
143
  {
168
144
  name: 'input',
169
- type: 'VerifyEmailInput!',
145
+ type: 'ProvisionBucketInput!',
170
146
  },
171
- ], connectionFieldsMap, 'VerifyEmailPayload'),
147
+ ], connectionFieldsMap, 'ProvisionBucketPayload'),
172
148
  }),
173
149
  provisionNewUser: (args, options) => new QueryBuilder({
174
150
  client,
@@ -182,6 +158,18 @@ export function createMutationOperations(client) {
182
158
  },
183
159
  ], connectionFieldsMap, 'ProvisionNewUserPayload'),
184
160
  }),
161
+ requestCrossOriginToken: (args, options) => new QueryBuilder({
162
+ client,
163
+ operation: 'mutation',
164
+ operationName: 'RequestCrossOriginToken',
165
+ fieldName: 'requestCrossOriginToken',
166
+ ...buildCustomDocument('mutation', 'RequestCrossOriginToken', 'requestCrossOriginToken', options.select, args, [
167
+ {
168
+ name: 'input',
169
+ type: 'RequestCrossOriginTokenInput!',
170
+ },
171
+ ], connectionFieldsMap, 'RequestCrossOriginTokenPayload'),
172
+ }),
185
173
  resetPassword: (args, options) => new QueryBuilder({
186
174
  client,
187
175
  operation: 'mutation',
@@ -194,65 +182,77 @@ export function createMutationOperations(client) {
194
182
  },
195
183
  ], connectionFieldsMap, 'ResetPasswordPayload'),
196
184
  }),
197
- createOrgPrincipal: (args, options) => new QueryBuilder({
185
+ revokeApiKey: (args, options) => new QueryBuilder({
198
186
  client,
199
187
  operation: 'mutation',
200
- operationName: 'CreateOrgPrincipal',
201
- fieldName: 'createOrgPrincipal',
202
- ...buildCustomDocument('mutation', 'CreateOrgPrincipal', 'createOrgPrincipal', options.select, args, [
188
+ operationName: 'RevokeApiKey',
189
+ fieldName: 'revokeApiKey',
190
+ ...buildCustomDocument('mutation', 'RevokeApiKey', 'revokeApiKey', options.select, args, [
203
191
  {
204
192
  name: 'input',
205
- type: 'CreateOrgPrincipalInput!',
193
+ type: 'RevokeApiKeyInput!',
206
194
  },
207
- ], connectionFieldsMap, 'CreateOrgPrincipalPayload'),
195
+ ], connectionFieldsMap, 'RevokeApiKeyPayload'),
208
196
  }),
209
- signInCrossOrigin: (args, options) => new QueryBuilder({
197
+ revokeOrgApiKey: (args, options) => new QueryBuilder({
210
198
  client,
211
199
  operation: 'mutation',
212
- operationName: 'SignInCrossOrigin',
213
- fieldName: 'signInCrossOrigin',
214
- ...buildCustomDocument('mutation', 'SignInCrossOrigin', 'signInCrossOrigin', options.select, args, [
200
+ operationName: 'RevokeOrgApiKey',
201
+ fieldName: 'revokeOrgApiKey',
202
+ ...buildCustomDocument('mutation', 'RevokeOrgApiKey', 'revokeOrgApiKey', options.select, args, [
215
203
  {
216
204
  name: 'input',
217
- type: 'SignInCrossOriginInput!',
205
+ type: 'RevokeOrgApiKeyInput!',
218
206
  },
219
- ], connectionFieldsMap, 'SignInCrossOriginPayload'),
207
+ ], connectionFieldsMap, 'RevokeOrgApiKeyPayload'),
220
208
  }),
221
- signInSmsOtp: (args, options) => new QueryBuilder({
209
+ revokeSession: (args, options) => new QueryBuilder({
222
210
  client,
223
211
  operation: 'mutation',
224
- operationName: 'SignInSmsOtp',
225
- fieldName: 'signInSmsOtp',
226
- ...buildCustomDocument('mutation', 'SignInSmsOtp', 'signInSmsOtp', options.select, args, [
212
+ operationName: 'RevokeSession',
213
+ fieldName: 'revokeSession',
214
+ ...buildCustomDocument('mutation', 'RevokeSession', 'revokeSession', options.select, args, [
227
215
  {
228
216
  name: 'input',
229
- type: 'SignInSmsOtpInput!',
217
+ type: 'RevokeSessionInput!',
230
218
  },
231
- ], connectionFieldsMap, 'SignInSmsOtpPayload'),
219
+ ], connectionFieldsMap, 'RevokeSessionPayload'),
232
220
  }),
233
- signUpSms: (args, options) => new QueryBuilder({
221
+ sendAccountDeletionEmail: (args, options) => new QueryBuilder({
234
222
  client,
235
223
  operation: 'mutation',
236
- operationName: 'SignUpSms',
237
- fieldName: 'signUpSms',
238
- ...buildCustomDocument('mutation', 'SignUpSms', 'signUpSms', options.select, args, [
224
+ operationName: 'SendAccountDeletionEmail',
225
+ fieldName: 'sendAccountDeletionEmail',
226
+ ...buildCustomDocument('mutation', 'SendAccountDeletionEmail', 'sendAccountDeletionEmail', options.select, args, [
239
227
  {
240
228
  name: 'input',
241
- type: 'SignUpSmsInput!',
229
+ type: 'SendAccountDeletionEmailInput!',
242
230
  },
243
- ], connectionFieldsMap, 'SignUpSmsPayload'),
231
+ ], connectionFieldsMap, 'SendAccountDeletionEmailPayload'),
244
232
  }),
245
- signUp: (args, options) => new QueryBuilder({
233
+ sendVerificationEmail: (args, options) => new QueryBuilder({
246
234
  client,
247
235
  operation: 'mutation',
248
- operationName: 'SignUp',
249
- fieldName: 'signUp',
250
- ...buildCustomDocument('mutation', 'SignUp', 'signUp', options.select, args, [
236
+ operationName: 'SendVerificationEmail',
237
+ fieldName: 'sendVerificationEmail',
238
+ ...buildCustomDocument('mutation', 'SendVerificationEmail', 'sendVerificationEmail', options.select, args, [
251
239
  {
252
240
  name: 'input',
253
- type: 'SignUpInput!',
241
+ type: 'SendVerificationEmailInput!',
254
242
  },
255
- ], connectionFieldsMap, 'SignUpPayload'),
243
+ ], connectionFieldsMap, 'SendVerificationEmailPayload'),
244
+ }),
245
+ setPassword: (args, options) => new QueryBuilder({
246
+ client,
247
+ operation: 'mutation',
248
+ operationName: 'SetPassword',
249
+ fieldName: 'setPassword',
250
+ ...buildCustomDocument('mutation', 'SetPassword', 'setPassword', options.select, args, [
251
+ {
252
+ name: 'input',
253
+ type: 'SetPasswordInput!',
254
+ },
255
+ ], connectionFieldsMap, 'SetPasswordPayload'),
256
256
  }),
257
257
  signIn: (args, options) => new QueryBuilder({
258
258
  client,
@@ -266,101 +266,101 @@ export function createMutationOperations(client) {
266
266
  },
267
267
  ], connectionFieldsMap, 'SignInPayload'),
268
268
  }),
269
- linkIdentity: (args, options) => new QueryBuilder({
269
+ signInCrossOrigin: (args, options) => new QueryBuilder({
270
270
  client,
271
271
  operation: 'mutation',
272
- operationName: 'LinkIdentity',
273
- fieldName: 'linkIdentity',
274
- ...buildCustomDocument('mutation', 'LinkIdentity', 'linkIdentity', options.select, args, [
272
+ operationName: 'SignInCrossOrigin',
273
+ fieldName: 'signInCrossOrigin',
274
+ ...buildCustomDocument('mutation', 'SignInCrossOrigin', 'signInCrossOrigin', options.select, args, [
275
275
  {
276
276
  name: 'input',
277
- type: 'LinkIdentityInput!',
277
+ type: 'SignInCrossOriginInput!',
278
278
  },
279
- ], connectionFieldsMap, 'LinkIdentityPayload'),
279
+ ], connectionFieldsMap, 'SignInCrossOriginPayload'),
280
280
  }),
281
- extendTokenExpires: (args, options) => new QueryBuilder({
281
+ signInSmsOtp: (args, options) => new QueryBuilder({
282
282
  client,
283
283
  operation: 'mutation',
284
- operationName: 'ExtendTokenExpires',
285
- fieldName: 'extendTokenExpires',
286
- ...buildCustomDocument('mutation', 'ExtendTokenExpires', 'extendTokenExpires', options.select, args, [
284
+ operationName: 'SignInSmsOtp',
285
+ fieldName: 'signInSmsOtp',
286
+ ...buildCustomDocument('mutation', 'SignInSmsOtp', 'signInSmsOtp', options.select, args, [
287
287
  {
288
288
  name: 'input',
289
- type: 'ExtendTokenExpiresInput!',
289
+ type: 'SignInSmsOtpInput!',
290
290
  },
291
- ], connectionFieldsMap, 'ExtendTokenExpiresPayload'),
291
+ ], connectionFieldsMap, 'SignInSmsOtpPayload'),
292
292
  }),
293
- createOrgApiKey: (args, options) => new QueryBuilder({
293
+ signOut: (args, options) => new QueryBuilder({
294
294
  client,
295
295
  operation: 'mutation',
296
- operationName: 'CreateOrgApiKey',
297
- fieldName: 'createOrgApiKey',
298
- ...buildCustomDocument('mutation', 'CreateOrgApiKey', 'createOrgApiKey', options.select, args, [
296
+ operationName: 'SignOut',
297
+ fieldName: 'signOut',
298
+ ...buildCustomDocument('mutation', 'SignOut', 'signOut', options.select, args, [
299
299
  {
300
300
  name: 'input',
301
- type: 'CreateOrgApiKeyInput!',
301
+ type: 'SignOutInput!',
302
302
  },
303
- ], connectionFieldsMap, 'CreateOrgApiKeyPayload'),
303
+ ], connectionFieldsMap, 'SignOutPayload'),
304
304
  }),
305
- createApiKey: (args, options) => new QueryBuilder({
305
+ signUp: (args, options) => new QueryBuilder({
306
306
  client,
307
307
  operation: 'mutation',
308
- operationName: 'CreateApiKey',
309
- fieldName: 'createApiKey',
310
- ...buildCustomDocument('mutation', 'CreateApiKey', 'createApiKey', options.select, args, [
308
+ operationName: 'SignUp',
309
+ fieldName: 'signUp',
310
+ ...buildCustomDocument('mutation', 'SignUp', 'signUp', options.select, args, [
311
311
  {
312
312
  name: 'input',
313
- type: 'CreateApiKeyInput!',
313
+ type: 'SignUpInput!',
314
314
  },
315
- ], connectionFieldsMap, 'CreateApiKeyPayload'),
315
+ ], connectionFieldsMap, 'SignUpPayload'),
316
316
  }),
317
- requestCrossOriginToken: (args, options) => new QueryBuilder({
317
+ signUpSms: (args, options) => new QueryBuilder({
318
318
  client,
319
319
  operation: 'mutation',
320
- operationName: 'RequestCrossOriginToken',
321
- fieldName: 'requestCrossOriginToken',
322
- ...buildCustomDocument('mutation', 'RequestCrossOriginToken', 'requestCrossOriginToken', options.select, args, [
320
+ operationName: 'SignUpSms',
321
+ fieldName: 'signUpSms',
322
+ ...buildCustomDocument('mutation', 'SignUpSms', 'signUpSms', options.select, args, [
323
323
  {
324
324
  name: 'input',
325
- type: 'RequestCrossOriginTokenInput!',
325
+ type: 'SignUpSmsInput!',
326
326
  },
327
- ], connectionFieldsMap, 'RequestCrossOriginTokenPayload'),
327
+ ], connectionFieldsMap, 'SignUpSmsPayload'),
328
328
  }),
329
- forgotPassword: (args, options) => new QueryBuilder({
329
+ verifyEmail: (args, options) => new QueryBuilder({
330
330
  client,
331
331
  operation: 'mutation',
332
- operationName: 'ForgotPassword',
333
- fieldName: 'forgotPassword',
334
- ...buildCustomDocument('mutation', 'ForgotPassword', 'forgotPassword', options.select, args, [
332
+ operationName: 'VerifyEmail',
333
+ fieldName: 'verifyEmail',
334
+ ...buildCustomDocument('mutation', 'VerifyEmail', 'verifyEmail', options.select, args, [
335
335
  {
336
336
  name: 'input',
337
- type: 'ForgotPasswordInput!',
337
+ type: 'VerifyEmailInput!',
338
338
  },
339
- ], connectionFieldsMap, 'ForgotPasswordPayload'),
339
+ ], connectionFieldsMap, 'VerifyEmailPayload'),
340
340
  }),
341
- sendVerificationEmail: (args, options) => new QueryBuilder({
341
+ verifyPassword: (args, options) => new QueryBuilder({
342
342
  client,
343
343
  operation: 'mutation',
344
- operationName: 'SendVerificationEmail',
345
- fieldName: 'sendVerificationEmail',
346
- ...buildCustomDocument('mutation', 'SendVerificationEmail', 'sendVerificationEmail', options.select, args, [
344
+ operationName: 'VerifyPassword',
345
+ fieldName: 'verifyPassword',
346
+ ...buildCustomDocument('mutation', 'VerifyPassword', 'verifyPassword', options.select, args, [
347
347
  {
348
348
  name: 'input',
349
- type: 'SendVerificationEmailInput!',
349
+ type: 'VerifyPasswordInput!',
350
350
  },
351
- ], connectionFieldsMap, 'SendVerificationEmailPayload'),
351
+ ], connectionFieldsMap, 'VerifyPasswordPayload'),
352
352
  }),
353
- provisionBucket: (args, options) => new QueryBuilder({
353
+ verifyTotp: (args, options) => new QueryBuilder({
354
354
  client,
355
355
  operation: 'mutation',
356
- operationName: 'ProvisionBucket',
357
- fieldName: 'provisionBucket',
358
- ...buildCustomDocument('mutation', 'ProvisionBucket', 'provisionBucket', options.select, args, [
356
+ operationName: 'VerifyTotp',
357
+ fieldName: 'verifyTotp',
358
+ ...buildCustomDocument('mutation', 'VerifyTotp', 'verifyTotp', options.select, args, [
359
359
  {
360
360
  name: 'input',
361
- type: 'ProvisionBucketInput!',
361
+ type: 'VerifyTotpInput!',
362
362
  },
363
- ], connectionFieldsMap, 'ProvisionBucketPayload'),
363
+ ], connectionFieldsMap, 'VerifyTotpPayload'),
364
364
  }),
365
365
  };
366
366
  }
@@ -11,6 +11,16 @@ export interface RequireStepUpVariables {
11
11
  stepUpType?: string;
12
12
  }
13
13
  export declare function createQueryOperations(client: OrmClient): {
14
+ currentIpAddress: (options?: {
15
+ select?: Record<string, unknown>;
16
+ }) => QueryBuilder<{
17
+ currentIpAddress: string | null;
18
+ }>;
19
+ currentUser: <S extends UserSelect>(options: {
20
+ select: S;
21
+ } & StrictSelect<S, UserSelect>) => QueryBuilder<{
22
+ currentUser: InferSelectResult<User, S> | null;
23
+ }>;
14
24
  currentUserAgent: (options?: {
15
25
  select?: Record<string, unknown>;
16
26
  }) => QueryBuilder<{
@@ -21,19 +31,9 @@ export declare function createQueryOperations(client: OrmClient): {
21
31
  }) => QueryBuilder<{
22
32
  currentUserId: string | null;
23
33
  }>;
24
- currentIpAddress: (options?: {
25
- select?: Record<string, unknown>;
26
- }) => QueryBuilder<{
27
- currentIpAddress: string | null;
28
- }>;
29
34
  requireStepUp: (args: RequireStepUpVariables, options?: {
30
35
  select?: Record<string, unknown>;
31
36
  }) => QueryBuilder<{
32
37
  requireStepUp: boolean | null;
33
38
  }>;
34
- currentUser: <S extends UserSelect>(options: {
35
- select: S;
36
- } & StrictSelect<S, UserSelect>) => QueryBuilder<{
37
- currentUser: InferSelectResult<User, S> | null;
38
- }>;
39
39
  };
@@ -2,6 +2,20 @@ import { QueryBuilder, buildCustomDocument } from '../query-builder';
2
2
  import { connectionFieldsMap } from '../input-types';
3
3
  export function createQueryOperations(client) {
4
4
  return {
5
+ currentIpAddress: (options) => new QueryBuilder({
6
+ client,
7
+ operation: 'query',
8
+ operationName: 'CurrentIpAddress',
9
+ fieldName: 'currentIpAddress',
10
+ ...buildCustomDocument('query', 'CurrentIpAddress', 'currentIpAddress', options?.select, undefined, [], connectionFieldsMap, undefined),
11
+ }),
12
+ currentUser: (options) => new QueryBuilder({
13
+ client,
14
+ operation: 'query',
15
+ operationName: 'CurrentUser',
16
+ fieldName: 'currentUser',
17
+ ...buildCustomDocument('query', 'CurrentUser', 'currentUser', options.select, undefined, [], connectionFieldsMap, 'User'),
18
+ }),
5
19
  currentUserAgent: (options) => new QueryBuilder({
6
20
  client,
7
21
  operation: 'query',
@@ -16,13 +30,6 @@ export function createQueryOperations(client) {
16
30
  fieldName: 'currentUserId',
17
31
  ...buildCustomDocument('query', 'CurrentUserId', 'currentUserId', options?.select, undefined, [], connectionFieldsMap, undefined),
18
32
  }),
19
- currentIpAddress: (options) => new QueryBuilder({
20
- client,
21
- operation: 'query',
22
- operationName: 'CurrentIpAddress',
23
- fieldName: 'currentIpAddress',
24
- ...buildCustomDocument('query', 'CurrentIpAddress', 'currentIpAddress', options?.select, undefined, [], connectionFieldsMap, undefined),
25
- }),
26
33
  requireStepUp: (args, options) => new QueryBuilder({
27
34
  client,
28
35
  operation: 'query',
@@ -35,12 +42,5 @@ export function createQueryOperations(client) {
35
42
  },
36
43
  ], connectionFieldsMap, undefined),
37
44
  }),
38
- currentUser: (options) => new QueryBuilder({
39
- client,
40
- operation: 'query',
41
- operationName: 'CurrentUser',
42
- fieldName: 'currentUser',
43
- ...buildCustomDocument('query', 'CurrentUser', 'currentUser', options.select, undefined, [], connectionFieldsMap, 'User'),
44
- }),
45
45
  };
46
46
  }