@constructive-io/sdk 1.20.5 → 1.20.7

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 (71) hide show
  1. package/admin/orm/input-types.d.ts +4 -4
  2. package/admin/orm/mutation/index.d.ts +5 -4
  3. package/agent/orm/input-types.d.ts +4 -4
  4. package/agent/orm/mutation/index.d.ts +5 -4
  5. package/api/orm/index.d.ts +15 -4
  6. package/api/orm/index.js +0 -4
  7. package/api/orm/input-types.d.ts +96 -439
  8. package/api/orm/models/index.d.ts +0 -2
  9. package/api/orm/models/index.js +2 -6
  10. package/api/orm/mutation/index.d.ts +30 -5
  11. package/api/orm/mutation/index.js +24 -0
  12. package/api/orm/query/index.d.ts +5 -0
  13. package/api/orm/query/index.js +7 -0
  14. package/auth/orm/input-types.d.ts +5 -29
  15. package/auth/orm/mutation/index.d.ts +5 -4
  16. package/compute/orm/input-types.d.ts +50 -6
  17. package/compute/orm/mutation/index.d.ts +5 -4
  18. package/config/orm/input-types.d.ts +4 -4
  19. package/config/orm/mutation/index.d.ts +5 -4
  20. package/esm/admin/orm/input-types.d.ts +4 -4
  21. package/esm/admin/orm/mutation/index.d.ts +5 -4
  22. package/esm/agent/orm/input-types.d.ts +4 -4
  23. package/esm/agent/orm/mutation/index.d.ts +5 -4
  24. package/esm/api/orm/index.d.ts +15 -4
  25. package/esm/api/orm/index.js +0 -4
  26. package/esm/api/orm/input-types.d.ts +96 -439
  27. package/esm/api/orm/models/index.d.ts +0 -2
  28. package/esm/api/orm/models/index.js +0 -2
  29. package/esm/api/orm/mutation/index.d.ts +30 -5
  30. package/esm/api/orm/mutation/index.js +24 -0
  31. package/esm/api/orm/query/index.d.ts +5 -0
  32. package/esm/api/orm/query/index.js +7 -0
  33. package/esm/auth/orm/input-types.d.ts +5 -29
  34. package/esm/auth/orm/mutation/index.d.ts +5 -4
  35. package/esm/compute/orm/input-types.d.ts +50 -6
  36. package/esm/compute/orm/mutation/index.d.ts +5 -4
  37. package/esm/config/orm/input-types.d.ts +4 -4
  38. package/esm/config/orm/mutation/index.d.ts +5 -4
  39. package/esm/infra/orm/input-types.d.ts +4 -4
  40. package/esm/infra/orm/mutation/index.d.ts +5 -4
  41. package/esm/modules/orm/input-types.d.ts +72 -21
  42. package/esm/modules/orm/mutation/index.d.ts +6 -5
  43. package/esm/objects/orm/input-types.d.ts +4 -4
  44. package/esm/objects/orm/mutation/index.d.ts +5 -4
  45. package/esm/remote/orm/input-types.d.ts +4 -4
  46. package/esm/remote/orm/mutation/index.d.ts +5 -4
  47. package/esm/storage/orm/input-types.d.ts +34 -6
  48. package/esm/storage/orm/mutation/index.d.ts +7 -6
  49. package/esm/usage/orm/input-types.d.ts +4 -4
  50. package/esm/usage/orm/mutation/index.d.ts +5 -4
  51. package/infra/orm/input-types.d.ts +4 -4
  52. package/infra/orm/mutation/index.d.ts +5 -4
  53. package/modules/orm/input-types.d.ts +72 -21
  54. package/modules/orm/mutation/index.d.ts +6 -5
  55. package/objects/orm/input-types.d.ts +4 -4
  56. package/objects/orm/mutation/index.d.ts +5 -4
  57. package/package.json +4 -4
  58. package/remote/orm/input-types.d.ts +4 -4
  59. package/remote/orm/mutation/index.d.ts +5 -4
  60. package/storage/orm/input-types.d.ts +34 -6
  61. package/storage/orm/mutation/index.d.ts +7 -6
  62. package/usage/orm/input-types.d.ts +4 -4
  63. package/usage/orm/mutation/index.d.ts +5 -4
  64. package/api/orm/models/hostnameBinding.d.ts +0 -54
  65. package/api/orm/models/hostnameBinding.js +0 -104
  66. package/api/orm/models/routeBinding.d.ts +0 -54
  67. package/api/orm/models/routeBinding.js +0 -104
  68. package/esm/api/orm/models/hostnameBinding.d.ts +0 -54
  69. package/esm/api/orm/models/hostnameBinding.js +0 -100
  70. package/esm/api/orm/models/routeBinding.d.ts +0 -54
  71. package/esm/api/orm/models/routeBinding.js +0 -100
@@ -3199,19 +3199,19 @@ export type ProvisionAppUsersBulkPayloadSelect = {
3199
3199
  };
3200
3200
  };
3201
3201
  export interface ProvisionBucketPayload {
3202
- /** The logical bucket row that was queued for reconciliation. */
3202
+ /** The logical bucket row whose reconciliation was requested. */
3203
3203
  bucketId: string;
3204
3204
  bucketKey: string;
3205
- /** The reconciler job enqueued to provision this bucket. */
3206
- jobId: string;
3207
3205
  /** The physical bucket name already recorded, or null when reconciliation has not completed. */
3208
3206
  physicalName?: string | null;
3207
+ /** When reconciliation was last requested for this bucket. */
3208
+ provisionRequestedAt: string;
3209
3209
  }
3210
3210
  export type ProvisionBucketPayloadSelect = {
3211
3211
  bucketId?: boolean;
3212
3212
  bucketKey?: boolean;
3213
- jobId?: boolean;
3214
3213
  physicalName?: boolean;
3214
+ provisionRequestedAt?: boolean;
3215
3215
  };
3216
3216
  export interface ProvisionOrgUserPayload {
3217
3217
  clientMutationId?: string | null;
@@ -22,10 +22,11 @@ export interface ProvisionAppUsersBulkVariables {
22
22
  /**
23
23
  * Variables for provisionBucket
24
24
  * Reconcile an S3 bucket for a logical bucket in the database.
25
- Reads the bucket config via RLS, then enqueues the same
26
- storage:provision_bucket job used by the INSERT trigger. This is
27
- idempotent for an already-reconciled bucket; enqueue failures become
28
- GraphQL errors.
25
+ Records the request on the bucket row via RLS; the bucket's job
26
+ trigger then enqueues the same storage:provision_bucket job used on
27
+ INSERT, and repeated requests collapse into one pending job. This is
28
+ idempotent for an already-reconciled bucket; failures become GraphQL
29
+ errors.
29
30
  */
30
31
  export interface ProvisionBucketVariables {
31
32
  input: ProvisionBucketInput;
@@ -6357,19 +6357,19 @@ export interface FullTextFilter {
6357
6357
  notIn?: string[];
6358
6358
  }
6359
6359
  export interface ProvisionBucketPayload {
6360
- /** The logical bucket row that was queued for reconciliation. */
6360
+ /** The logical bucket row whose reconciliation was requested. */
6361
6361
  bucketId: string;
6362
6362
  bucketKey: string;
6363
- /** The reconciler job enqueued to provision this bucket. */
6364
- jobId: string;
6365
6363
  /** The physical bucket name already recorded, or null when reconciliation has not completed. */
6366
6364
  physicalName?: string | null;
6365
+ /** When reconciliation was last requested for this bucket. */
6366
+ provisionRequestedAt: string;
6367
6367
  }
6368
6368
  export type ProvisionBucketPayloadSelect = {
6369
6369
  bucketId?: boolean;
6370
6370
  bucketKey?: boolean;
6371
- jobId?: boolean;
6372
6371
  physicalName?: boolean;
6372
+ provisionRequestedAt?: boolean;
6373
6373
  };
6374
6374
  export interface CreateAgentPayload {
6375
6375
  /** The `Agent` that was created by this mutation. */
@@ -10,10 +10,11 @@ import type { ProvisionBucketInput, ProvisionBucketPayload, ProvisionBucketPaylo
10
10
  /**
11
11
  * Variables for provisionBucket
12
12
  * Reconcile an S3 bucket for a logical bucket in the database.
13
- Reads the bucket config via RLS, then enqueues the same
14
- storage:provision_bucket job used by the INSERT trigger. This is
15
- idempotent for an already-reconciled bucket; enqueue failures become
16
- GraphQL errors.
13
+ Records the request on the bucket row via RLS; the bucket's job
14
+ trigger then enqueues the same storage:provision_bucket job used on
15
+ INSERT, and repeated requests collapse into one pending job. This is
16
+ idempotent for an already-reconciled bucket; failures become GraphQL
17
+ errors.
17
18
  */
18
19
  export interface ProvisionBucketVariables {
19
20
  input: ProvisionBucketInput;
@@ -28,7 +28,6 @@ import { ForeignKeyConstraintModel } from './models/foreignKeyConstraint';
28
28
  import { FullTextSearchModel } from './models/fullTextSearch';
29
29
  import { FunctionModel } from './models/function';
30
30
  import { GetSitePreviewsRecordModel } from './models/getSitePreviewsRecord';
31
- import { HostnameBindingModel } from './models/hostnameBinding';
32
31
  import { IdentityProviderRegistryModel } from './models/identityProviderRegistry';
33
32
  import { IndexModel } from './models/index';
34
33
  import { ListSuspendedDatabasesRecordModel } from './models/listSuspendedDatabasesRecord';
@@ -63,7 +62,6 @@ import { PrimaryKeyConstraintModel } from './models/primaryKeyConstraint';
63
62
  import { PubkeySettingModel } from './models/pubkeySetting';
64
63
  import { RedirectModel } from './models/redirect';
65
64
  import { RlsSettingModel } from './models/rlsSetting';
66
- import { RouteBindingModel } from './models/routeBinding';
67
65
  import { RouteModel } from './models/route';
68
66
  import { SchemaModel } from './models/schema';
69
67
  import { SchemaGrantModel } from './models/schemaGrant';
@@ -151,7 +149,6 @@ export declare function createClient(config: OrmClientConfig): {
151
149
  fullTextSearch: FullTextSearchModel;
152
150
  function: FunctionModel;
153
151
  getSitePreviewsRecord: GetSitePreviewsRecordModel;
154
- hostnameBinding: HostnameBindingModel;
155
152
  identityProviderRegistry: IdentityProviderRegistryModel;
156
153
  index: IndexModel;
157
154
  listSuspendedDatabasesRecord: ListSuspendedDatabasesRecordModel;
@@ -186,7 +183,6 @@ export declare function createClient(config: OrmClientConfig): {
186
183
  pubkeySetting: PubkeySettingModel;
187
184
  redirect: RedirectModel;
188
185
  rlsSetting: RlsSettingModel;
189
- routeBinding: RouteBindingModel;
190
186
  route: RouteModel;
191
187
  schema: SchemaModel;
192
188
  schemaGrant: SchemaGrantModel;
@@ -225,6 +221,11 @@ export declare function createClient(config: OrmClientConfig): {
225
221
  }) => import("./query-builder").QueryBuilder<{
226
222
  applyRegistryDefaults: unknown | null;
227
223
  }>;
224
+ emailSharedAccount: (options?: {
225
+ select?: Record<string, unknown>;
226
+ }) => import("./query-builder").QueryBuilder<{
227
+ emailSharedAccount: unknown | null;
228
+ }>;
228
229
  getSitePreviewCommit: (args: import("./query").GetSitePreviewCommitVariables, options?: {
229
230
  select?: Record<string, unknown>;
230
231
  }) => import("./query-builder").QueryBuilder<{
@@ -317,6 +318,11 @@ export declare function createClient(config: OrmClientConfig): {
317
318
  } & import("./select-types").StrictSelect<S, import("./input-types").CancelDatabaseTransferPayloadSelect>) => import("./query-builder").QueryBuilder<{
318
319
  cancelDatabaseTransfer: import("./select-types").InferSelectResult<import("./input-types").CancelDatabaseTransferPayload, S> | null;
319
320
  }>;
321
+ createFunctionFromSource: <S extends import("./input-types").CreateFunctionPayloadSelect>(args: import("./mutation").CreateFunctionFromSourceVariables, options: {
322
+ select: S;
323
+ } & import("./select-types").StrictSelect<S, import("./input-types").CreateFunctionPayloadSelect>) => import("./query-builder").QueryBuilder<{
324
+ createFunctionFromSource: import("./select-types").InferSelectResult<import("./input-types").CreateFunctionPayload, S> | null;
325
+ }>;
320
326
  deleteSitePreview: <S extends import("./input-types").DeleteSitePreviewPayloadSelect>(args: import("./mutation").DeleteSitePreviewVariables, options: {
321
327
  select: S;
322
328
  } & import("./select-types").StrictSelect<S, import("./input-types").DeleteSitePreviewPayloadSelect>) => import("./query-builder").QueryBuilder<{
@@ -447,5 +453,10 @@ export declare function createClient(config: OrmClientConfig): {
447
453
  } & import("./select-types").StrictSelect<S, import("./input-types").UnsuspendDatabasePayloadSelect>) => import("./query-builder").QueryBuilder<{
448
454
  unsuspendDatabase: import("./select-types").InferSelectResult<import("./input-types").UnsuspendDatabasePayload, S> | null;
449
455
  }>;
456
+ updateFunctionFromSource: <S extends import("./input-types").UpdateFunctionPayloadSelect>(args: import("./mutation").UpdateFunctionFromSourceVariables, options: {
457
+ select: S;
458
+ } & import("./select-types").StrictSelect<S, import("./input-types").UpdateFunctionPayloadSelect>) => import("./query-builder").QueryBuilder<{
459
+ updateFunctionFromSource: import("./select-types").InferSelectResult<import("./input-types").UpdateFunctionPayload, S> | null;
460
+ }>;
450
461
  };
451
462
  };
package/api/orm/index.js CHANGED
@@ -51,7 +51,6 @@ const foreignKeyConstraint_1 = require("./models/foreignKeyConstraint");
51
51
  const fullTextSearch_1 = require("./models/fullTextSearch");
52
52
  const function_1 = require("./models/function");
53
53
  const getSitePreviewsRecord_1 = require("./models/getSitePreviewsRecord");
54
- const hostnameBinding_1 = require("./models/hostnameBinding");
55
54
  const identityProviderRegistry_1 = require("./models/identityProviderRegistry");
56
55
  const index_1 = require("./models/index");
57
56
  const listSuspendedDatabasesRecord_1 = require("./models/listSuspendedDatabasesRecord");
@@ -86,7 +85,6 @@ const primaryKeyConstraint_1 = require("./models/primaryKeyConstraint");
86
85
  const pubkeySetting_1 = require("./models/pubkeySetting");
87
86
  const redirect_1 = require("./models/redirect");
88
87
  const rlsSetting_1 = require("./models/rlsSetting");
89
- const routeBinding_1 = require("./models/routeBinding");
90
88
  const route_1 = require("./models/route");
91
89
  const schema_1 = require("./models/schema");
92
90
  const schemaGrant_1 = require("./models/schemaGrant");
@@ -182,7 +180,6 @@ function createClient(config) {
182
180
  fullTextSearch: new fullTextSearch_1.FullTextSearchModel(client),
183
181
  function: new function_1.FunctionModel(client),
184
182
  getSitePreviewsRecord: new getSitePreviewsRecord_1.GetSitePreviewsRecordModel(client),
185
- hostnameBinding: new hostnameBinding_1.HostnameBindingModel(client),
186
183
  identityProviderRegistry: new identityProviderRegistry_1.IdentityProviderRegistryModel(client),
187
184
  index: new index_1.IndexModel(client),
188
185
  listSuspendedDatabasesRecord: new listSuspendedDatabasesRecord_1.ListSuspendedDatabasesRecordModel(client),
@@ -217,7 +214,6 @@ function createClient(config) {
217
214
  pubkeySetting: new pubkeySetting_1.PubkeySettingModel(client),
218
215
  redirect: new redirect_1.RedirectModel(client),
219
216
  rlsSetting: new rlsSetting_1.RlsSettingModel(client),
220
- routeBinding: new routeBinding_1.RouteBindingModel(client),
221
217
  route: new route_1.RouteModel(client),
222
218
  schema: new schema_1.SchemaModel(client),
223
219
  schemaGrant: new schemaGrant_1.SchemaGrantModel(client),