@constructive-io/sdk 0.23.3 → 0.24.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 (160) hide show
  1. package/admin/orm/index.d.ts +31 -33
  2. package/admin/orm/index.js +32 -33
  3. package/admin/orm/input-types.d.ts +2090 -2039
  4. package/admin/orm/input-types.js +4 -4
  5. package/admin/orm/models/appLimitEvent.d.ts +26 -2
  6. package/admin/orm/models/appLimitEvent.js +45 -0
  7. package/admin/orm/models/index.d.ts +15 -16
  8. package/admin/orm/models/index.js +31 -33
  9. package/admin/orm/models/orgLimitEvent.d.ts +26 -2
  10. package/admin/orm/models/orgLimitEvent.js +45 -0
  11. package/auth/orm/index.d.ts +8 -8
  12. package/auth/orm/index.js +4 -3
  13. package/auth/orm/input-types.d.ts +94 -94
  14. package/auth/orm/input-types.js +1 -1
  15. package/auth/orm/models/auditLogAuth.d.ts +54 -0
  16. package/{public/orm/models/agentMessage.js → auth/orm/models/auditLogAuth.js} +27 -27
  17. package/auth/orm/models/index.d.ts +1 -1
  18. package/auth/orm/models/index.js +3 -3
  19. package/auth/orm/mutation/index.d.ts +9 -9
  20. package/auth/orm/mutation/index.js +12 -12
  21. package/esm/admin/orm/index.d.ts +31 -33
  22. package/esm/admin/orm/index.js +31 -33
  23. package/esm/admin/orm/input-types.d.ts +2090 -2039
  24. package/esm/admin/orm/input-types.js +4 -4
  25. package/esm/admin/orm/models/appLimitEvent.d.ts +26 -2
  26. package/esm/admin/orm/models/appLimitEvent.js +46 -1
  27. package/esm/admin/orm/models/index.d.ts +15 -16
  28. package/esm/admin/orm/models/index.js +15 -16
  29. package/esm/admin/orm/models/orgLimitEvent.d.ts +26 -2
  30. package/esm/admin/orm/models/orgLimitEvent.js +46 -1
  31. package/esm/auth/orm/index.d.ts +8 -8
  32. package/esm/auth/orm/index.js +3 -3
  33. package/esm/auth/orm/input-types.d.ts +94 -94
  34. package/esm/auth/orm/input-types.js +1 -1
  35. package/esm/auth/orm/models/auditLogAuth.d.ts +54 -0
  36. package/esm/{public/orm/models/auditLog.js → auth/orm/models/auditLogAuth.js} +25 -25
  37. package/esm/auth/orm/models/index.d.ts +1 -1
  38. package/esm/auth/orm/models/index.js +1 -1
  39. package/esm/auth/orm/mutation/index.d.ts +9 -9
  40. package/esm/auth/orm/mutation/index.js +12 -12
  41. package/esm/objects/orm/index.d.ts +1 -1
  42. package/esm/objects/orm/index.js +1 -1
  43. package/esm/public/orm/index.d.ts +102 -153
  44. package/esm/public/orm/index.js +59 -55
  45. package/esm/public/orm/input-types.d.ts +6255 -3877
  46. package/esm/public/orm/input-types.js +24 -15
  47. package/esm/public/orm/models/agentModule.d.ts +54 -0
  48. package/esm/public/orm/models/{agentThread.js → agentModule.js} +25 -25
  49. package/esm/public/orm/models/appLimitEvent.d.ts +26 -2
  50. package/esm/public/orm/models/appLimitEvent.js +46 -1
  51. package/esm/public/orm/models/auditLogAuth.d.ts +54 -0
  52. package/esm/{auth/orm/models/auditLog.js → public/orm/models/auditLogAuth.js} +25 -25
  53. package/esm/public/orm/models/computeLogModule.d.ts +54 -0
  54. package/esm/public/orm/models/{commit.js → computeLogModule.js} +25 -25
  55. package/esm/public/orm/models/configSecretsOrgModule.d.ts +54 -0
  56. package/esm/public/orm/models/{encryptedSecretsModule.js → configSecretsOrgModule.js} +25 -25
  57. package/esm/public/orm/models/configSecretsUserModule.d.ts +54 -0
  58. package/esm/public/orm/models/configSecretsUserModule.js +100 -0
  59. package/esm/public/orm/models/dbUsageModule.d.ts +54 -0
  60. package/esm/{admin/orm/models/usageSnapshot.js → public/orm/models/dbUsageModule.js} +25 -25
  61. package/esm/public/orm/models/functionModule.d.ts +54 -0
  62. package/esm/public/orm/models/{agentMessage.js → functionModule.js} +25 -25
  63. package/esm/public/orm/models/graphModule.d.ts +54 -0
  64. package/esm/public/orm/models/{agentTask.js → graphModule.js} +25 -25
  65. package/esm/public/orm/models/index.d.ts +29 -27
  66. package/esm/public/orm/models/index.js +29 -27
  67. package/esm/public/orm/models/inferenceLogModule.d.ts +54 -0
  68. package/esm/public/orm/models/inferenceLogModule.js +100 -0
  69. package/esm/public/orm/models/merkleStoreModule.d.ts +54 -0
  70. package/esm/public/orm/models/merkleStoreModule.js +100 -0
  71. package/esm/public/orm/models/namespaceModule.d.ts +54 -0
  72. package/esm/public/orm/models/namespaceModule.js +100 -0
  73. package/esm/public/orm/models/orgLimitEvent.d.ts +26 -2
  74. package/esm/public/orm/models/orgLimitEvent.js +46 -1
  75. package/esm/public/orm/models/storageLogModule.d.ts +54 -0
  76. package/esm/public/orm/models/{store.js → storageLogModule.js} +25 -25
  77. package/esm/public/orm/models/transferLogModule.d.ts +54 -0
  78. package/esm/public/orm/models/transferLogModule.js +100 -0
  79. package/esm/public/orm/mutation/index.d.ts +69 -133
  80. package/esm/public/orm/mutation/index.js +78 -174
  81. package/esm/public/orm/query/index.d.ts +22 -71
  82. package/esm/public/orm/query/index.js +36 -124
  83. package/objects/orm/index.d.ts +1 -1
  84. package/objects/orm/index.js +2 -1
  85. package/package.json +6 -6
  86. package/public/orm/index.d.ts +102 -153
  87. package/public/orm/index.js +60 -55
  88. package/public/orm/input-types.d.ts +6255 -3877
  89. package/public/orm/input-types.js +24 -15
  90. package/public/orm/models/agentModule.d.ts +54 -0
  91. package/public/orm/models/{agentThread.js → agentModule.js} +27 -27
  92. package/public/orm/models/appLimitEvent.d.ts +26 -2
  93. package/public/orm/models/appLimitEvent.js +45 -0
  94. package/public/orm/models/auditLogAuth.d.ts +54 -0
  95. package/public/orm/models/{usageSnapshot.js → auditLogAuth.js} +27 -27
  96. package/public/orm/models/computeLogModule.d.ts +54 -0
  97. package/public/orm/models/computeLogModule.js +104 -0
  98. package/public/orm/models/configSecretsOrgModule.d.ts +54 -0
  99. package/public/orm/models/{encryptedSecretsModule.js → configSecretsOrgModule.js} +27 -27
  100. package/public/orm/models/configSecretsUserModule.d.ts +54 -0
  101. package/public/orm/models/{ref.js → configSecretsUserModule.js} +27 -27
  102. package/public/orm/models/dbUsageModule.d.ts +54 -0
  103. package/{admin/orm/models/usageSnapshot.js → public/orm/models/dbUsageModule.js} +27 -27
  104. package/public/orm/models/functionModule.d.ts +54 -0
  105. package/{auth/orm/models/auditLog.js → public/orm/models/functionModule.js} +27 -27
  106. package/public/orm/models/graphModule.d.ts +54 -0
  107. package/public/orm/models/{agentTask.js → graphModule.js} +27 -27
  108. package/public/orm/models/index.d.ts +29 -27
  109. package/public/orm/models/index.js +61 -57
  110. package/public/orm/models/inferenceLogModule.d.ts +54 -0
  111. package/public/orm/models/inferenceLogModule.js +104 -0
  112. package/public/orm/models/merkleStoreModule.d.ts +54 -0
  113. package/public/orm/models/merkleStoreModule.js +104 -0
  114. package/public/orm/models/namespaceModule.d.ts +54 -0
  115. package/public/orm/models/namespaceModule.js +104 -0
  116. package/public/orm/models/orgLimitEvent.d.ts +26 -2
  117. package/public/orm/models/orgLimitEvent.js +45 -0
  118. package/public/orm/models/storageLogModule.d.ts +54 -0
  119. package/public/orm/models/storageLogModule.js +104 -0
  120. package/public/orm/models/transferLogModule.d.ts +54 -0
  121. package/public/orm/models/transferLogModule.js +104 -0
  122. package/public/orm/mutation/index.d.ts +69 -133
  123. package/public/orm/mutation/index.js +78 -174
  124. package/public/orm/query/index.d.ts +22 -71
  125. package/public/orm/query/index.js +36 -124
  126. package/admin/orm/models/usageSnapshot.d.ts +0 -54
  127. package/auth/orm/models/auditLog.d.ts +0 -54
  128. package/esm/admin/orm/models/usageSnapshot.d.ts +0 -54
  129. package/esm/auth/orm/models/auditLog.d.ts +0 -54
  130. package/esm/public/orm/models/agentMessage.d.ts +0 -54
  131. package/esm/public/orm/models/agentTask.d.ts +0 -54
  132. package/esm/public/orm/models/agentThread.d.ts +0 -54
  133. package/esm/public/orm/models/auditLog.d.ts +0 -54
  134. package/esm/public/orm/models/commit.d.ts +0 -54
  135. package/esm/public/orm/models/encryptedSecretsModule.d.ts +0 -54
  136. package/esm/public/orm/models/getAllRecord.d.ts +0 -30
  137. package/esm/public/orm/models/getAllRecord.js +0 -55
  138. package/esm/public/orm/models/object.d.ts +0 -54
  139. package/esm/public/orm/models/object.js +0 -90
  140. package/esm/public/orm/models/ref.d.ts +0 -54
  141. package/esm/public/orm/models/ref.js +0 -100
  142. package/esm/public/orm/models/store.d.ts +0 -54
  143. package/esm/public/orm/models/usageSnapshot.d.ts +0 -54
  144. package/esm/public/orm/models/usageSnapshot.js +0 -100
  145. package/public/orm/models/agentMessage.d.ts +0 -54
  146. package/public/orm/models/agentTask.d.ts +0 -54
  147. package/public/orm/models/agentThread.d.ts +0 -54
  148. package/public/orm/models/auditLog.d.ts +0 -54
  149. package/public/orm/models/auditLog.js +0 -104
  150. package/public/orm/models/commit.d.ts +0 -54
  151. package/public/orm/models/commit.js +0 -104
  152. package/public/orm/models/encryptedSecretsModule.d.ts +0 -54
  153. package/public/orm/models/getAllRecord.d.ts +0 -30
  154. package/public/orm/models/getAllRecord.js +0 -59
  155. package/public/orm/models/object.d.ts +0 -54
  156. package/public/orm/models/object.js +0 -94
  157. package/public/orm/models/ref.d.ts +0 -54
  158. package/public/orm/models/store.d.ts +0 -54
  159. package/public/orm/models/store.js +0 -104
  160. package/public/orm/models/usageSnapshot.d.ts +0 -54
@@ -59,23 +59,19 @@ export function createQueryOperations(client) {
59
59
  },
60
60
  ], connectionFieldsMap, undefined),
61
61
  }),
62
- revParse: (args, options) => new QueryBuilder({
62
+ applyRegistryDefaults: (args, options) => new QueryBuilder({
63
63
  client,
64
64
  operation: 'query',
65
- operationName: 'RevParse',
66
- fieldName: 'revParse',
67
- ...buildCustomDocument('query', 'RevParse', 'revParse', options?.select, args, [
65
+ operationName: 'ApplyRegistryDefaults',
66
+ fieldName: 'applyRegistryDefaults',
67
+ ...buildCustomDocument('query', 'ApplyRegistryDefaults', 'applyRegistryDefaults', options?.select, args, [
68
68
  {
69
- name: 'dbId',
70
- type: 'UUID',
71
- },
72
- {
73
- name: 'storeId',
74
- type: 'UUID',
69
+ name: 'nodeType',
70
+ type: 'String',
75
71
  },
76
72
  {
77
- name: 'refname',
78
- type: 'String',
73
+ name: 'data',
74
+ type: 'JSON',
79
75
  },
80
76
  ], connectionFieldsMap, undefined),
81
77
  }),
@@ -99,6 +95,34 @@ export function createQueryOperations(client) {
99
95
  },
100
96
  ], connectionFieldsMap, undefined),
101
97
  }),
98
+ resolveBlueprintTable: (args, options) => new QueryBuilder({
99
+ client,
100
+ operation: 'query',
101
+ operationName: 'ResolveBlueprintTable',
102
+ fieldName: 'resolveBlueprintTable',
103
+ ...buildCustomDocument('query', 'ResolveBlueprintTable', 'resolveBlueprintTable', options?.select, args, [
104
+ {
105
+ name: 'databaseId',
106
+ type: 'UUID',
107
+ },
108
+ {
109
+ name: 'tableName',
110
+ type: 'String',
111
+ },
112
+ {
113
+ name: 'schemaName',
114
+ type: 'String',
115
+ },
116
+ {
117
+ name: 'tableMap',
118
+ type: 'JSON',
119
+ },
120
+ {
121
+ name: 'defaultSchemaId',
122
+ type: 'UUID',
123
+ },
124
+ ], connectionFieldsMap, undefined),
125
+ }),
102
126
  orgIsManagerOf: (args, options) => new QueryBuilder({
103
127
  client,
104
128
  operation: 'query',
@@ -147,34 +171,6 @@ export function createQueryOperations(client) {
147
171
  },
148
172
  ], connectionFieldsMap, undefined),
149
173
  }),
150
- resolveBlueprintTable: (args, options) => new QueryBuilder({
151
- client,
152
- operation: 'query',
153
- operationName: 'ResolveBlueprintTable',
154
- fieldName: 'resolveBlueprintTable',
155
- ...buildCustomDocument('query', 'ResolveBlueprintTable', 'resolveBlueprintTable', options?.select, args, [
156
- {
157
- name: 'databaseId',
158
- type: 'UUID',
159
- },
160
- {
161
- name: 'tableName',
162
- type: 'String',
163
- },
164
- {
165
- name: 'schemaName',
166
- type: 'String',
167
- },
168
- {
169
- name: 'tableMap',
170
- type: 'JSON',
171
- },
172
- {
173
- name: 'defaultSchemaId',
174
- type: 'UUID',
175
- },
176
- ], connectionFieldsMap, undefined),
177
- }),
178
174
  appPermissionsGetMaskByNames: (args, options) => new QueryBuilder({
179
175
  client,
180
176
  operation: 'query',
@@ -247,90 +243,6 @@ export function createQueryOperations(client) {
247
243
  },
248
244
  ], connectionFieldsMap, undefined),
249
245
  }),
250
- getAllObjectsFromRoot: (args, options) => new QueryBuilder({
251
- client,
252
- operation: 'query',
253
- operationName: 'GetAllObjectsFromRoot',
254
- fieldName: 'getAllObjectsFromRoot',
255
- ...buildCustomDocument('query', 'GetAllObjectsFromRoot', 'getAllObjectsFromRoot', options?.select, args, [
256
- {
257
- name: 'databaseId',
258
- type: 'UUID',
259
- },
260
- {
261
- name: 'id',
262
- type: 'UUID',
263
- },
264
- {
265
- name: 'first',
266
- type: 'Int',
267
- },
268
- {
269
- name: 'offset',
270
- type: 'Int',
271
- },
272
- {
273
- name: 'after',
274
- type: 'Cursor',
275
- },
276
- ], connectionFieldsMap, undefined),
277
- }),
278
- getPathObjectsFromRoot: (args, options) => new QueryBuilder({
279
- client,
280
- operation: 'query',
281
- operationName: 'GetPathObjectsFromRoot',
282
- fieldName: 'getPathObjectsFromRoot',
283
- ...buildCustomDocument('query', 'GetPathObjectsFromRoot', 'getPathObjectsFromRoot', options?.select, args, [
284
- {
285
- name: 'databaseId',
286
- type: 'UUID',
287
- },
288
- {
289
- name: 'id',
290
- type: 'UUID',
291
- },
292
- {
293
- name: 'path',
294
- type: '[String]',
295
- },
296
- {
297
- name: 'first',
298
- type: 'Int',
299
- },
300
- {
301
- name: 'offset',
302
- type: 'Int',
303
- },
304
- {
305
- name: 'after',
306
- type: 'Cursor',
307
- },
308
- ], connectionFieldsMap, undefined),
309
- }),
310
- getObjectAtPath: (args, options) => new QueryBuilder({
311
- client,
312
- operation: 'query',
313
- operationName: 'GetObjectAtPath',
314
- fieldName: 'getObjectAtPath',
315
- ...buildCustomDocument('query', 'GetObjectAtPath', 'getObjectAtPath', options.select, args, [
316
- {
317
- name: 'dbId',
318
- type: 'UUID',
319
- },
320
- {
321
- name: 'storeId',
322
- type: 'UUID',
323
- },
324
- {
325
- name: 'path',
326
- type: '[String]',
327
- },
328
- {
329
- name: 'refname',
330
- type: 'String',
331
- },
332
- ], connectionFieldsMap, 'Object'),
333
- }),
334
246
  currentUser: (options) => new QueryBuilder({
335
247
  client,
336
248
  operation: 'query',
@@ -5,7 +5,7 @@ import { RefModel } from './models/ref';
5
5
  import { StoreModel } from './models/store';
6
6
  import { CommitModel } from './models/commit';
7
7
  export type { OrmClientConfig, QueryResult, GraphQLError, GraphQLAdapter } from './client';
8
- export { GraphQLRequestError } from './client';
8
+ export { GraphQLRequestError, FetchAdapter } from './client';
9
9
  export { QueryBuilder } from './query-builder';
10
10
  export * from './select-types';
11
11
  export * from './models';
@@ -14,7 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.createMutationOperations = exports.createQueryOperations = exports.QueryBuilder = exports.GraphQLRequestError = void 0;
17
+ exports.createMutationOperations = exports.createQueryOperations = exports.QueryBuilder = exports.FetchAdapter = exports.GraphQLRequestError = void 0;
18
18
  exports.createClient = createClient;
19
19
  /**
20
20
  * ORM Client - createClient factory
@@ -31,6 +31,7 @@ const query_1 = require("./query");
31
31
  const mutation_1 = require("./mutation");
32
32
  var client_2 = require("./client");
33
33
  Object.defineProperty(exports, "GraphQLRequestError", { enumerable: true, get: function () { return client_2.GraphQLRequestError; } });
34
+ Object.defineProperty(exports, "FetchAdapter", { enumerable: true, get: function () { return client_2.FetchAdapter; } });
34
35
  var query_builder_1 = require("./query-builder");
35
36
  Object.defineProperty(exports, "QueryBuilder", { enumerable: true, get: function () { return query_builder_1.QueryBuilder; } });
36
37
  __exportStar(require("./select-types"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@constructive-io/sdk",
3
- "version": "0.23.3",
3
+ "version": "0.24.0",
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.26.3",
46
- "@constructive-io/graphql-types": "^3.11.1",
47
- "gql-ast": "^3.10.1",
45
+ "@constructive-io/graphql-query": "^3.27.0",
46
+ "@constructive-io/graphql-types": "^3.12.0",
47
+ "gql-ast": "^3.11.0",
48
48
  "graphql": "16.13.0"
49
49
  },
50
50
  "devDependencies": {
51
- "@constructive-io/graphql-codegen": "^4.45.3",
51
+ "@constructive-io/graphql-codegen": "^4.46.0",
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": "423992019655cc1e780149ce3f7e6e8c9b1c6e80"
57
+ "gitHead": "0503916f414a3b8a6f6cbe46e03a59988b2f3cb5"
58
58
  }