@constructive-io/sdk 1.20.4 → 1.20.6

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
@@ -32,7 +32,6 @@ export { ForeignKeyConstraintModel } from './foreignKeyConstraint';
32
32
  export { FullTextSearchModel } from './fullTextSearch';
33
33
  export { FunctionModel } from './function';
34
34
  export { GetSitePreviewsRecordModel } from './getSitePreviewsRecord';
35
- export { HostnameBindingModel } from './hostnameBinding';
36
35
  export { IdentityProviderRegistryModel } from './identityProviderRegistry';
37
36
  export { IndexModel } from './indexModel';
38
37
  export { ListSuspendedDatabasesRecordModel } from './listSuspendedDatabasesRecord';
@@ -67,7 +66,6 @@ export { PrimaryKeyConstraintModel } from './primaryKeyConstraint';
67
66
  export { PubkeySettingModel } from './pubkeySetting';
68
67
  export { RedirectModel } from './redirect';
69
68
  export { RlsSettingModel } from './rlsSetting';
70
- export { RouteBindingModel } from './routeBinding';
71
69
  export { RouteModel } from './route';
72
70
  export { SchemaModel } from './schema';
73
71
  export { SchemaGrantModel } from './schemaGrant';
@@ -32,7 +32,6 @@ export { ForeignKeyConstraintModel } from './foreignKeyConstraint';
32
32
  export { FullTextSearchModel } from './fullTextSearch';
33
33
  export { FunctionModel } from './function';
34
34
  export { GetSitePreviewsRecordModel } from './getSitePreviewsRecord';
35
- export { HostnameBindingModel } from './hostnameBinding';
36
35
  export { IdentityProviderRegistryModel } from './identityProviderRegistry';
37
36
  export { IndexModel } from './indexModel';
38
37
  export { ListSuspendedDatabasesRecordModel } from './listSuspendedDatabasesRecord';
@@ -67,7 +66,6 @@ export { PrimaryKeyConstraintModel } from './primaryKeyConstraint';
67
66
  export { PubkeySettingModel } from './pubkeySetting';
68
67
  export { RedirectModel } from './redirect';
69
68
  export { RlsSettingModel } from './rlsSetting';
70
- export { RouteBindingModel } from './routeBinding';
71
69
  export { RouteModel } from './route';
72
70
  export { SchemaModel } from './schema';
73
71
  export { SchemaGrantModel } from './schemaGrant';
@@ -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 { AcceptDatabaseTransferInput, ApplyRlsInput, CancelDatabaseTransferInput, DeleteSitePreviewInput, DomainsAssignSubdomainInput, MintSitePreviewTokenInput, PagesInstallPagesInput, PlatformDeleteSitePreviewInput, PlatformDomainsAssignSubdomainInput, PlatformMintSitePreviewTokenInput, PlatformPagesInstallPagesInput, PlatformProvisionSitePreviewInput, PlatformSetSitePreviewInput, PlatformSiteMetadataInstallRobotsInput, PlatformSitesInstallContentPresetInput, PlatformSitesInstallMantraInput, PlatformSitesProvisionStaticSiteInput, ProvisionBucketInput, ProvisionSitePreviewInput, RejectDatabaseTransferInput, RequestDatabaseInput, SetFieldOrderInput, SetSitePreviewInput, SiteMetadataInstallRobotsInput, SitesInstallContentPresetInput, SitesInstallMantraInput, SitesProvisionStaticSiteInput, SuspendDatabaseInput, UnsuspendDatabaseInput, AcceptDatabaseTransferPayload, ApplyRlsPayload, CancelDatabaseTransferPayload, DeleteSitePreviewPayload, DomainsAssignSubdomainPayload, MintSitePreviewTokenPayload, PagesInstallPagesPayload, PlatformDeleteSitePreviewPayload, PlatformDomainsAssignSubdomainPayload, PlatformMintSitePreviewTokenPayload, PlatformPagesInstallPagesPayload, PlatformProvisionSitePreviewPayload, PlatformSetSitePreviewPayload, PlatformSiteMetadataInstallRobotsPayload, PlatformSitesInstallContentPresetPayload, PlatformSitesInstallMantraPayload, PlatformSitesProvisionStaticSitePayload, ProvisionBucketPayload, ProvisionSitePreviewPayload, RejectDatabaseTransferPayload, RequestDatabasePayload, SetFieldOrderPayload, SetSitePreviewPayload, SiteMetadataInstallRobotsPayload, SitesInstallContentPresetPayload, SitesInstallMantraPayload, SitesProvisionStaticSitePayload, SuspendDatabasePayload, UnsuspendDatabasePayload, AcceptDatabaseTransferPayloadSelect, ApplyRlsPayloadSelect, CancelDatabaseTransferPayloadSelect, DeleteSitePreviewPayloadSelect, DomainsAssignSubdomainPayloadSelect, MintSitePreviewTokenPayloadSelect, PagesInstallPagesPayloadSelect, PlatformDeleteSitePreviewPayloadSelect, PlatformDomainsAssignSubdomainPayloadSelect, PlatformMintSitePreviewTokenPayloadSelect, PlatformPagesInstallPagesPayloadSelect, PlatformProvisionSitePreviewPayloadSelect, PlatformSetSitePreviewPayloadSelect, PlatformSiteMetadataInstallRobotsPayloadSelect, PlatformSitesInstallContentPresetPayloadSelect, PlatformSitesInstallMantraPayloadSelect, PlatformSitesProvisionStaticSitePayloadSelect, ProvisionBucketPayloadSelect, ProvisionSitePreviewPayloadSelect, RejectDatabaseTransferPayloadSelect, RequestDatabasePayloadSelect, SetFieldOrderPayloadSelect, SetSitePreviewPayloadSelect, SiteMetadataInstallRobotsPayloadSelect, SitesInstallContentPresetPayloadSelect, SitesInstallMantraPayloadSelect, SitesProvisionStaticSitePayloadSelect, SuspendDatabasePayloadSelect, UnsuspendDatabasePayloadSelect } from '../input-types';
9
+ import type { AcceptDatabaseTransferInput, ApplyRlsInput, CancelDatabaseTransferInput, CreateFunctionFromSourceInput, DeleteSitePreviewInput, DomainsAssignSubdomainInput, MintSitePreviewTokenInput, PagesInstallPagesInput, PlatformDeleteSitePreviewInput, PlatformDomainsAssignSubdomainInput, PlatformMintSitePreviewTokenInput, PlatformPagesInstallPagesInput, PlatformProvisionSitePreviewInput, PlatformSetSitePreviewInput, PlatformSiteMetadataInstallRobotsInput, PlatformSitesInstallContentPresetInput, PlatformSitesInstallMantraInput, PlatformSitesProvisionStaticSiteInput, ProvisionBucketInput, ProvisionSitePreviewInput, RejectDatabaseTransferInput, RequestDatabaseInput, SetFieldOrderInput, SetSitePreviewInput, SiteMetadataInstallRobotsInput, SitesInstallContentPresetInput, SitesInstallMantraInput, SitesProvisionStaticSiteInput, SuspendDatabaseInput, UnsuspendDatabaseInput, UpdateFunctionFromSourceInput, AcceptDatabaseTransferPayload, ApplyRlsPayload, CancelDatabaseTransferPayload, CreateFunctionPayload, DeleteSitePreviewPayload, DomainsAssignSubdomainPayload, MintSitePreviewTokenPayload, PagesInstallPagesPayload, PlatformDeleteSitePreviewPayload, PlatformDomainsAssignSubdomainPayload, PlatformMintSitePreviewTokenPayload, PlatformPagesInstallPagesPayload, PlatformProvisionSitePreviewPayload, PlatformSetSitePreviewPayload, PlatformSiteMetadataInstallRobotsPayload, PlatformSitesInstallContentPresetPayload, PlatformSitesInstallMantraPayload, PlatformSitesProvisionStaticSitePayload, ProvisionBucketPayload, ProvisionSitePreviewPayload, RejectDatabaseTransferPayload, RequestDatabasePayload, SetFieldOrderPayload, SetSitePreviewPayload, SiteMetadataInstallRobotsPayload, SitesInstallContentPresetPayload, SitesInstallMantraPayload, SitesProvisionStaticSitePayload, SuspendDatabasePayload, UnsuspendDatabasePayload, UpdateFunctionPayload, AcceptDatabaseTransferPayloadSelect, ApplyRlsPayloadSelect, CancelDatabaseTransferPayloadSelect, CreateFunctionPayloadSelect, DeleteSitePreviewPayloadSelect, DomainsAssignSubdomainPayloadSelect, MintSitePreviewTokenPayloadSelect, PagesInstallPagesPayloadSelect, PlatformDeleteSitePreviewPayloadSelect, PlatformDomainsAssignSubdomainPayloadSelect, PlatformMintSitePreviewTokenPayloadSelect, PlatformPagesInstallPagesPayloadSelect, PlatformProvisionSitePreviewPayloadSelect, PlatformSetSitePreviewPayloadSelect, PlatformSiteMetadataInstallRobotsPayloadSelect, PlatformSitesInstallContentPresetPayloadSelect, PlatformSitesInstallMantraPayloadSelect, PlatformSitesProvisionStaticSitePayloadSelect, ProvisionBucketPayloadSelect, ProvisionSitePreviewPayloadSelect, RejectDatabaseTransferPayloadSelect, RequestDatabasePayloadSelect, SetFieldOrderPayloadSelect, SetSitePreviewPayloadSelect, SiteMetadataInstallRobotsPayloadSelect, SitesInstallContentPresetPayloadSelect, SitesInstallMantraPayloadSelect, SitesProvisionStaticSitePayloadSelect, SuspendDatabasePayloadSelect, UnsuspendDatabasePayloadSelect, UpdateFunctionPayloadSelect } from '../input-types';
10
10
  export interface AcceptDatabaseTransferVariables {
11
11
  input: AcceptDatabaseTransferInput;
12
12
  }
@@ -16,6 +16,13 @@ export interface ApplyRlsVariables {
16
16
  export interface CancelDatabaseTransferVariables {
17
17
  input: CancelDatabaseTransferInput;
18
18
  }
19
+ /**
20
+ * Variables for createFunctionFromSource
21
+ * Creates a `Function` from its `CREATE FUNCTION` source text.
22
+ */
23
+ export interface CreateFunctionFromSourceVariables {
24
+ input: CreateFunctionFromSourceInput;
25
+ }
19
26
  export interface DeleteSitePreviewVariables {
20
27
  input: DeleteSitePreviewInput;
21
28
  }
@@ -61,10 +68,11 @@ export interface PlatformSitesProvisionStaticSiteVariables {
61
68
  /**
62
69
  * Variables for provisionBucket
63
70
  * Reconcile an S3 bucket for a logical bucket in the database.
64
- Reads the bucket config via RLS, then enqueues the same
65
- storage:provision_bucket job used by the INSERT trigger. This is
66
- idempotent for an already-reconciled bucket; enqueue failures become
67
- GraphQL errors.
71
+ Records the request on the bucket row via RLS; the bucket's job
72
+ trigger then enqueues the same storage:provision_bucket job used on
73
+ INSERT, and repeated requests collapse into one pending job. This is
74
+ idempotent for an already-reconciled bucket; failures become GraphQL
75
+ errors.
68
76
  */
69
77
  export interface ProvisionBucketVariables {
70
78
  input: ProvisionBucketInput;
@@ -113,6 +121,13 @@ export interface SuspendDatabaseVariables {
113
121
  export interface UnsuspendDatabaseVariables {
114
122
  input: UnsuspendDatabaseInput;
115
123
  }
124
+ /**
125
+ * Variables for updateFunctionFromSource
126
+ * Replaces a `Function`'s definition from its source text; its database, schema and exposure are unchanged.
127
+ */
128
+ export interface UpdateFunctionFromSourceVariables {
129
+ input: UpdateFunctionFromSourceInput;
130
+ }
116
131
  export declare function createMutationOperations(client: OrmClient): {
117
132
  acceptDatabaseTransfer: <S extends AcceptDatabaseTransferPayloadSelect>(args: AcceptDatabaseTransferVariables, options: {
118
133
  select: S;
@@ -129,6 +144,11 @@ export declare function createMutationOperations(client: OrmClient): {
129
144
  } & StrictSelect<S, CancelDatabaseTransferPayloadSelect>) => QueryBuilder<{
130
145
  cancelDatabaseTransfer: InferSelectResult<CancelDatabaseTransferPayload, S> | null;
131
146
  }>;
147
+ createFunctionFromSource: <S extends CreateFunctionPayloadSelect>(args: CreateFunctionFromSourceVariables, options: {
148
+ select: S;
149
+ } & StrictSelect<S, CreateFunctionPayloadSelect>) => QueryBuilder<{
150
+ createFunctionFromSource: InferSelectResult<CreateFunctionPayload, S> | null;
151
+ }>;
132
152
  deleteSitePreview: <S extends DeleteSitePreviewPayloadSelect>(args: DeleteSitePreviewVariables, options: {
133
153
  select: S;
134
154
  } & StrictSelect<S, DeleteSitePreviewPayloadSelect>) => QueryBuilder<{
@@ -259,4 +279,9 @@ export declare function createMutationOperations(client: OrmClient): {
259
279
  } & StrictSelect<S, UnsuspendDatabasePayloadSelect>) => QueryBuilder<{
260
280
  unsuspendDatabase: InferSelectResult<UnsuspendDatabasePayload, S> | null;
261
281
  }>;
282
+ updateFunctionFromSource: <S extends UpdateFunctionPayloadSelect>(args: UpdateFunctionFromSourceVariables, options: {
283
+ select: S;
284
+ } & StrictSelect<S, UpdateFunctionPayloadSelect>) => QueryBuilder<{
285
+ updateFunctionFromSource: InferSelectResult<UpdateFunctionPayload, S> | null;
286
+ }>;
262
287
  };
@@ -38,6 +38,18 @@ export function createMutationOperations(client) {
38
38
  },
39
39
  ], connectionFieldsMap, 'CancelDatabaseTransferPayload'),
40
40
  }),
41
+ createFunctionFromSource: (args, options) => new QueryBuilder({
42
+ client,
43
+ operation: 'mutation',
44
+ operationName: 'CreateFunctionFromSource',
45
+ fieldName: 'createFunctionFromSource',
46
+ ...buildCustomDocument('mutation', 'CreateFunctionFromSource', 'createFunctionFromSource', options.select, args, [
47
+ {
48
+ name: 'input',
49
+ type: 'CreateFunctionFromSourceInput!',
50
+ },
51
+ ], connectionFieldsMap, 'CreateFunctionPayload'),
52
+ }),
41
53
  deleteSitePreview: (args, options) => new QueryBuilder({
42
54
  client,
43
55
  operation: 'mutation',
@@ -350,5 +362,17 @@ export function createMutationOperations(client) {
350
362
  },
351
363
  ], connectionFieldsMap, 'UnsuspendDatabasePayload'),
352
364
  }),
365
+ updateFunctionFromSource: (args, options) => new QueryBuilder({
366
+ client,
367
+ operation: 'mutation',
368
+ operationName: 'UpdateFunctionFromSource',
369
+ fieldName: 'updateFunctionFromSource',
370
+ ...buildCustomDocument('mutation', 'UpdateFunctionFromSource', 'updateFunctionFromSource', options.select, args, [
371
+ {
372
+ name: 'input',
373
+ type: 'UpdateFunctionFromSourceInput!',
374
+ },
375
+ ], connectionFieldsMap, 'UpdateFunctionPayload'),
376
+ }),
353
377
  };
354
378
  }
@@ -83,6 +83,11 @@ export declare function createQueryOperations(client: OrmClient): {
83
83
  }) => QueryBuilder<{
84
84
  applyRegistryDefaults: unknown | null;
85
85
  }>;
86
+ emailSharedAccount: (options?: {
87
+ select?: Record<string, unknown>;
88
+ }) => QueryBuilder<{
89
+ emailSharedAccount: unknown | null;
90
+ }>;
86
91
  getSitePreviewCommit: (args: GetSitePreviewCommitVariables, options?: {
87
92
  select?: Record<string, unknown>;
88
93
  }) => QueryBuilder<{
@@ -30,6 +30,13 @@ export function createQueryOperations(client) {
30
30
  },
31
31
  ], connectionFieldsMap, undefined),
32
32
  }),
33
+ emailSharedAccount: (options) => new QueryBuilder({
34
+ client,
35
+ operation: 'query',
36
+ operationName: 'EmailSharedAccount',
37
+ fieldName: 'emailSharedAccount',
38
+ ...buildCustomDocument('query', 'EmailSharedAccount', 'emailSharedAccount', options?.select, undefined, [], connectionFieldsMap, undefined),
39
+ }),
33
40
  getSitePreviewCommit: (args, options) => new QueryBuilder({
34
41
  client,
35
42
  operation: 'query',
@@ -1847,6 +1847,7 @@ export interface RequestCrossOriginTokenInput {
1847
1847
  export interface RequestMagicLinkInput {
1848
1848
  clientMutationId?: string;
1849
1849
  email?: string;
1850
+ next?: string;
1850
1851
  }
1851
1852
  export interface ResetPasswordInput {
1852
1853
  clientMutationId?: string;
@@ -1945,13 +1946,10 @@ export interface SignOutInput {
1945
1946
  }
1946
1947
  export interface SignUpInput {
1947
1948
  clientMutationId?: string;
1948
- credentialKind?: string;
1949
1949
  csrfToken?: string;
1950
- deviceToken?: string;
1951
1950
  email?: string;
1952
1951
  inviteToken?: string;
1953
1952
  password?: string;
1954
- rememberMe?: boolean;
1955
1953
  }
1956
1954
  export interface SignUpMagicLinkInput {
1957
1955
  clientMutationId?: string;
@@ -3525,19 +3523,19 @@ export type MintAccessTokenPayloadSelect = {
3525
3523
  };
3526
3524
  };
3527
3525
  export interface ProvisionBucketPayload {
3528
- /** The logical bucket row that was queued for reconciliation. */
3526
+ /** The logical bucket row whose reconciliation was requested. */
3529
3527
  bucketId: string;
3530
3528
  bucketKey: string;
3531
- /** The reconciler job enqueued to provision this bucket. */
3532
- jobId: string;
3533
3529
  /** The physical bucket name already recorded, or null when reconciliation has not completed. */
3534
3530
  physicalName?: string | null;
3531
+ /** When reconciliation was last requested for this bucket. */
3532
+ provisionRequestedAt: string;
3535
3533
  }
3536
3534
  export type ProvisionBucketPayloadSelect = {
3537
3535
  bucketId?: boolean;
3538
3536
  bucketKey?: boolean;
3539
- jobId?: boolean;
3540
3537
  physicalName?: boolean;
3538
+ provisionRequestedAt?: boolean;
3541
3539
  };
3542
3540
  export interface RefreshAccessTokenPayload {
3543
3541
  clientMutationId?: string | null;
@@ -3715,13 +3713,9 @@ export type SignOutPayloadSelect = {
3715
3713
  };
3716
3714
  export interface SignUpPayload {
3717
3715
  clientMutationId?: string | null;
3718
- result?: SignUpRecord | null;
3719
3716
  }
3720
3717
  export type SignUpPayloadSelect = {
3721
3718
  clientMutationId?: boolean;
3722
- result?: {
3723
- select: SignUpRecordSelect;
3724
- };
3725
3719
  };
3726
3720
  export interface SignUpMagicLinkPayload {
3727
3721
  clientMutationId?: string | null;
@@ -4362,24 +4356,6 @@ export type SignInSmsOtpRecordSelect = {
4362
4356
  outDeviceToken?: boolean;
4363
4357
  userId?: boolean;
4364
4358
  };
4365
- export interface SignUpRecord {
4366
- accessToken?: string | null;
4367
- accessTokenExpiresAt?: string | null;
4368
- id?: string | null;
4369
- isVerified?: boolean | null;
4370
- outDeviceToken?: string | null;
4371
- totpEnabled?: boolean | null;
4372
- userId?: string | null;
4373
- }
4374
- export type SignUpRecordSelect = {
4375
- accessToken?: boolean;
4376
- accessTokenExpiresAt?: boolean;
4377
- id?: boolean;
4378
- isVerified?: boolean;
4379
- outDeviceToken?: boolean;
4380
- totpEnabled?: boolean;
4381
- userId?: boolean;
4382
- };
4383
4359
  export interface SignUpMagicLinkRecord {
4384
4360
  accessToken?: string | null;
4385
4361
  accessTokenExpiresAt?: string | null;
@@ -82,10 +82,11 @@ export interface MintAccessTokenVariables {
82
82
  /**
83
83
  * Variables for provisionBucket
84
84
  * Reconcile an S3 bucket for a logical bucket in the database.
85
- Reads the bucket config via RLS, then enqueues the same
86
- storage:provision_bucket job used by the INSERT trigger. This is
87
- idempotent for an already-reconciled bucket; enqueue failures become
88
- GraphQL errors.
85
+ Records the request on the bucket row via RLS; the bucket's job
86
+ trigger then enqueues the same storage:provision_bucket job used on
87
+ INSERT, and repeated requests collapse into one pending job. This is
88
+ idempotent for an already-reconciled bucket; failures become GraphQL
89
+ errors.
89
90
  */
90
91
  export interface ProvisionBucketVariables {
91
92
  input: ProvisionBucketInput;
@@ -1121,6 +1121,8 @@ export interface FunctionInvocation {
1121
1121
  id: string;
1122
1122
  /** FK to app_jobs.jobs — the underlying transport */
1123
1123
  jobId?: string | null;
1124
+ /** Job dedupe key: a pending or retrying invocation with this key absorbs repeat requests */
1125
+ jobKey?: string | null;
1124
1126
  /** Organization identity propagated with the invocation */
1125
1127
  organizationId?: string | null;
1126
1128
  /** Parent invocation when this is a child node of a flow graph execution */
@@ -1131,6 +1133,8 @@ export interface FunctionInvocation {
1131
1133
  principalId?: string | null;
1132
1134
  /** Non-secret channel-specific invocation provenance (route/binding/event identifiers only) */
1133
1135
  provenance?: Record<string, unknown> | null;
1136
+ /** Job queue: jobs sharing a queue run one at a time, in order */
1137
+ queueName?: string | null;
1134
1138
  /** Function return value (success) or structured error (failure) */
1135
1139
  result?: Record<string, unknown> | null;
1136
1140
  /** When execution started */
@@ -1735,6 +1739,8 @@ export interface PlatformFunctionInvocation {
1735
1739
  id: string;
1736
1740
  /** FK to app_jobs.jobs — the underlying transport */
1737
1741
  jobId?: string | null;
1742
+ /** Job dedupe key: a pending or retrying invocation with this key absorbs repeat requests */
1743
+ jobKey?: string | null;
1738
1744
  /** Organization identity propagated with the invocation */
1739
1745
  organizationId?: string | null;
1740
1746
  /** Parent invocation when this is a child node of a flow graph execution */
@@ -1745,6 +1751,8 @@ export interface PlatformFunctionInvocation {
1745
1751
  principalId?: string | null;
1746
1752
  /** Non-secret channel-specific invocation provenance (route/binding/event identifiers only) */
1747
1753
  provenance?: Record<string, unknown> | null;
1754
+ /** Job queue: jobs sharing a queue run one at a time, in order */
1755
+ queueName?: string | null;
1748
1756
  /** Function return value (success) or structured error (failure) */
1749
1757
  result?: Record<string, unknown> | null;
1750
1758
  /** When execution started */
@@ -4686,11 +4694,13 @@ export type FunctionInvocationSelect = {
4686
4694
  graphExecutionId?: boolean;
4687
4695
  id?: boolean;
4688
4696
  jobId?: boolean;
4697
+ jobKey?: boolean;
4689
4698
  organizationId?: boolean;
4690
4699
  parentInvocationId?: boolean;
4691
4700
  payload?: boolean;
4692
4701
  principalId?: boolean;
4693
4702
  provenance?: boolean;
4703
+ queueName?: boolean;
4694
4704
  result?: boolean;
4695
4705
  startedAt?: boolean;
4696
4706
  status?: boolean;
@@ -5145,11 +5155,13 @@ export type PlatformFunctionInvocationSelect = {
5145
5155
  graphExecutionId?: boolean;
5146
5156
  id?: boolean;
5147
5157
  jobId?: boolean;
5158
+ jobKey?: boolean;
5148
5159
  organizationId?: boolean;
5149
5160
  parentInvocationId?: boolean;
5150
5161
  payload?: boolean;
5151
5162
  principalId?: boolean;
5152
5163
  provenance?: boolean;
5164
+ queueName?: boolean;
5153
5165
  result?: boolean;
5154
5166
  startedAt?: boolean;
5155
5167
  status?: boolean;
@@ -7973,6 +7985,8 @@ export interface FunctionInvocationFilter {
7973
7985
  id?: UUIDFilter;
7974
7986
  /** Filter by the object’s `jobId` field. */
7975
7987
  jobId?: BigIntFilter;
7988
+ /** Filter by the object’s `jobKey` field. */
7989
+ jobKey?: StringFilter;
7976
7990
  /** Negates the expression. */
7977
7991
  not?: FunctionInvocationFilter;
7978
7992
  /** Checks for any expressions in this list. */
@@ -7987,6 +8001,8 @@ export interface FunctionInvocationFilter {
7987
8001
  principalId?: UUIDFilter;
7988
8002
  /** Filter by the object’s `provenance` field. */
7989
8003
  provenance?: JSONFilter;
8004
+ /** Filter by the object’s `queueName` field. */
8005
+ queueName?: StringFilter;
7990
8006
  /** Filter by the object’s `result` field. */
7991
8007
  result?: JSONFilter;
7992
8008
  /** Filter by the object’s `startedAt` field. */
@@ -8825,6 +8841,8 @@ export interface PlatformFunctionInvocationFilter {
8825
8841
  id?: UUIDFilter;
8826
8842
  /** Filter by the object’s `jobId` field. */
8827
8843
  jobId?: BigIntFilter;
8844
+ /** Filter by the object’s `jobKey` field. */
8845
+ jobKey?: StringFilter;
8828
8846
  /** Negates the expression. */
8829
8847
  not?: PlatformFunctionInvocationFilter;
8830
8848
  /** Checks for any expressions in this list. */
@@ -8839,6 +8857,8 @@ export interface PlatformFunctionInvocationFilter {
8839
8857
  principalId?: UUIDFilter;
8840
8858
  /** Filter by the object’s `provenance` field. */
8841
8859
  provenance?: JSONFilter;
8860
+ /** Filter by the object’s `queueName` field. */
8861
+ queueName?: StringFilter;
8842
8862
  /** Filter by the object’s `result` field. */
8843
8863
  result?: JSONFilter;
8844
8864
  /** Filter by the object’s `startedAt` field. */
@@ -11880,7 +11900,7 @@ export type FunctionGraphObjectOrderBy = 'CREATED_AT_ASC' | 'CREATED_AT_DESC' |
11880
11900
  export type FunctionGraphRefOrderBy = 'COMMIT_ID_ASC' | 'COMMIT_ID_DESC' | 'ID_ASC' | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'SCOPE_ID_ASC' | 'SCOPE_ID_DESC' | 'STORE_ID_ASC' | 'STORE_ID_DESC';
11881
11901
  export type FunctionGraphStoreOrderBy = 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'HASH_ASC' | 'HASH_DESC' | 'ID_ASC' | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'SCOPE_ID_ASC' | 'SCOPE_ID_DESC';
11882
11902
  export type FunctionInvocationAttemptOrderBy = 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' | 'ATTEMPT_ASC' | 'ATTEMPT_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'DURATION_MS_ASC' | 'DURATION_MS_DESC' | 'ERROR_ASC' | 'ERROR_DESC' | 'ERROR_DETAIL_ASC' | 'ERROR_DETAIL_DESC' | 'ID_ASC' | 'ID_DESC' | 'INVOCATION_CREATED_AT_ASC' | 'INVOCATION_CREATED_AT_DESC' | 'INVOCATION_ID_ASC' | 'INVOCATION_ID_DESC' | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'STARTED_AT_ASC' | 'STARTED_AT_DESC' | 'SUCCESS_ASC' | 'SUCCESS_DESC' | 'TASK_IDENTIFIER_ASC' | 'TASK_IDENTIFIER_DESC';
11883
- export type FunctionInvocationOrderBy = 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' | 'API_BINDING_ID_ASC' | 'API_BINDING_ID_DESC' | 'CHANNEL_ASC' | 'CHANNEL_DESC' | 'COMPLETED_AT_ASC' | 'COMPLETED_AT_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'CREATED_BY_PRINCIPAL_ASC' | 'CREATED_BY_PRINCIPAL_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'DEFINITION_SCOPE_ASC' | 'DEFINITION_SCOPE_DESC' | 'DURATION_MS_ASC' | 'DURATION_MS_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC' | 'ENTITY_TYPE_ASC' | 'ENTITY_TYPE_DESC' | 'ERROR_ASC' | 'ERROR_DESC' | 'FUNCTION_DEFINITION_ID_ASC' | 'FUNCTION_DEFINITION_ID_DESC' | 'GRAPH_EXECUTION_ID_ASC' | 'GRAPH_EXECUTION_ID_DESC' | 'ID_ASC' | 'ID_DESC' | 'JOB_ID_ASC' | 'JOB_ID_DESC' | 'NATURAL' | 'ORGANIZATION_ID_ASC' | 'ORGANIZATION_ID_DESC' | 'PARENT_INVOCATION_ID_ASC' | 'PARENT_INVOCATION_ID_DESC' | 'PAYLOAD_ASC' | 'PAYLOAD_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'PRINCIPAL_ID_ASC' | 'PRINCIPAL_ID_DESC' | 'PROVENANCE_ASC' | 'PROVENANCE_DESC' | 'RESULT_ASC' | 'RESULT_DESC' | 'STARTED_AT_ASC' | 'STARTED_AT_DESC' | 'STATUS_ASC' | 'STATUS_DESC' | 'TASK_IDENTIFIER_ASC' | 'TASK_IDENTIFIER_DESC';
11903
+ export type FunctionInvocationOrderBy = 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' | 'API_BINDING_ID_ASC' | 'API_BINDING_ID_DESC' | 'CHANNEL_ASC' | 'CHANNEL_DESC' | 'COMPLETED_AT_ASC' | 'COMPLETED_AT_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'CREATED_BY_PRINCIPAL_ASC' | 'CREATED_BY_PRINCIPAL_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'DEFINITION_SCOPE_ASC' | 'DEFINITION_SCOPE_DESC' | 'DURATION_MS_ASC' | 'DURATION_MS_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC' | 'ENTITY_TYPE_ASC' | 'ENTITY_TYPE_DESC' | 'ERROR_ASC' | 'ERROR_DESC' | 'FUNCTION_DEFINITION_ID_ASC' | 'FUNCTION_DEFINITION_ID_DESC' | 'GRAPH_EXECUTION_ID_ASC' | 'GRAPH_EXECUTION_ID_DESC' | 'ID_ASC' | 'ID_DESC' | 'JOB_ID_ASC' | 'JOB_ID_DESC' | 'JOB_KEY_ASC' | 'JOB_KEY_DESC' | 'NATURAL' | 'ORGANIZATION_ID_ASC' | 'ORGANIZATION_ID_DESC' | 'PARENT_INVOCATION_ID_ASC' | 'PARENT_INVOCATION_ID_DESC' | 'PAYLOAD_ASC' | 'PAYLOAD_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'PRINCIPAL_ID_ASC' | 'PRINCIPAL_ID_DESC' | 'PROVENANCE_ASC' | 'PROVENANCE_DESC' | 'QUEUE_NAME_ASC' | 'QUEUE_NAME_DESC' | 'RESULT_ASC' | 'RESULT_DESC' | 'STARTED_AT_ASC' | 'STARTED_AT_DESC' | 'STATUS_ASC' | 'STATUS_DESC' | 'TASK_IDENTIFIER_ASC' | 'TASK_IDENTIFIER_DESC';
11884
11904
  export type FunctionScheduleOrderBy = 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'DESCRIPTION_ASC' | 'DESCRIPTION_DESC' | 'FUNCTION_DEFINITION_ID_ASC' | 'FUNCTION_DEFINITION_ID_DESC' | 'ID_ASC' | 'ID_DESC' | 'IS_ACTIVE_ASC' | 'IS_ACTIVE_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'NATURAL' | 'PAYLOAD_ASC' | 'PAYLOAD_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'SCHEDULE_INFO_ASC' | 'SCHEDULE_INFO_DESC' | 'SUSPENDED_AT_ASC' | 'SUSPENDED_AT_DESC' | 'SUSPENDED_REASON_ASC' | 'SUSPENDED_REASON_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC';
11885
11905
  export type GetAllTreeNodesRecordsOrderBy = 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'NATURAL' | 'DATA_ASC' | 'DATA_DESC' | 'PATH_ASC' | 'PATH_DESC';
11886
11906
  export type ImageOrderBy = 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'CREATED_BY_PRINCIPAL_ASC' | 'CREATED_BY_PRINCIPAL_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'DESCRIPTION_ASC' | 'DESCRIPTION_DESC' | 'DIGEST_ASC' | 'DIGEST_DESC' | 'EXPIRES_AT_ASC' | 'EXPIRES_AT_DESC' | 'ID_ASC' | 'ID_DESC' | 'IS_PUBLISHED_ASC' | 'IS_PUBLISHED_DESC' | 'LABELS_ASC' | 'LABELS_DESC' | 'METADATA_ASC' | 'METADATA_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'NATURAL' | 'OWNER_ID_ASC' | 'OWNER_ID_DESC' | 'PLATFORM_ONLY_ASC' | 'PLATFORM_ONLY_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'REGISTRY_HOST_ASC' | 'REGISTRY_HOST_DESC' | 'REPOSITORY_ASC' | 'REPOSITORY_DESC' | 'RUNTIME_ASC' | 'RUNTIME_DESC' | 'TAG_ASC' | 'TAG_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'UPDATED_BY_PRINCIPAL_ASC' | 'UPDATED_BY_PRINCIPAL_DESC';
@@ -11903,7 +11923,7 @@ export type PlatformFunctionDeploymentOrderBy = 'ANNOTATIONS_ASC' | 'ANNOTATIONS
11903
11923
  export type PlatformFunctionDeploymentEventOrderBy = 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'DEPLOYMENT_ID_ASC' | 'DEPLOYMENT_ID_DESC' | 'EVENT_TYPE_ASC' | 'EVENT_TYPE_DESC' | 'ID_ASC' | 'ID_DESC' | 'MESSAGE_ASC' | 'MESSAGE_DESC' | 'METADATA_ASC' | 'METADATA_DESC' | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC';
11904
11924
  export type PlatformFunctionExecutionLogOrderBy = 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'ID_ASC' | 'ID_DESC' | 'INVOCATION_ID_ASC' | 'INVOCATION_ID_DESC' | 'LOG_LEVEL_ASC' | 'LOG_LEVEL_DESC' | 'MESSAGE_ASC' | 'MESSAGE_DESC' | 'METADATA_ASC' | 'METADATA_DESC' | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'TASK_IDENTIFIER_ASC' | 'TASK_IDENTIFIER_DESC';
11905
11925
  export type PlatformFunctionInvocationAttemptOrderBy = 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' | 'ATTEMPT_ASC' | 'ATTEMPT_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'DURATION_MS_ASC' | 'DURATION_MS_DESC' | 'ERROR_ASC' | 'ERROR_DESC' | 'ERROR_DETAIL_ASC' | 'ERROR_DETAIL_DESC' | 'ID_ASC' | 'ID_DESC' | 'INVOCATION_CREATED_AT_ASC' | 'INVOCATION_CREATED_AT_DESC' | 'INVOCATION_ID_ASC' | 'INVOCATION_ID_DESC' | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'STARTED_AT_ASC' | 'STARTED_AT_DESC' | 'SUCCESS_ASC' | 'SUCCESS_DESC' | 'TASK_IDENTIFIER_ASC' | 'TASK_IDENTIFIER_DESC';
11906
- export type PlatformFunctionInvocationOrderBy = 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' | 'API_BINDING_ID_ASC' | 'API_BINDING_ID_DESC' | 'CHANNEL_ASC' | 'CHANNEL_DESC' | 'COMPLETED_AT_ASC' | 'COMPLETED_AT_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'CREATED_BY_PRINCIPAL_ASC' | 'CREATED_BY_PRINCIPAL_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'DEFINITION_SCOPE_ASC' | 'DEFINITION_SCOPE_DESC' | 'DURATION_MS_ASC' | 'DURATION_MS_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC' | 'ENTITY_TYPE_ASC' | 'ENTITY_TYPE_DESC' | 'ERROR_ASC' | 'ERROR_DESC' | 'FUNCTION_DEFINITION_ID_ASC' | 'FUNCTION_DEFINITION_ID_DESC' | 'GRAPH_EXECUTION_ID_ASC' | 'GRAPH_EXECUTION_ID_DESC' | 'ID_ASC' | 'ID_DESC' | 'JOB_ID_ASC' | 'JOB_ID_DESC' | 'NATURAL' | 'ORGANIZATION_ID_ASC' | 'ORGANIZATION_ID_DESC' | 'PARENT_INVOCATION_ID_ASC' | 'PARENT_INVOCATION_ID_DESC' | 'PAYLOAD_ASC' | 'PAYLOAD_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'PRINCIPAL_ID_ASC' | 'PRINCIPAL_ID_DESC' | 'PROVENANCE_ASC' | 'PROVENANCE_DESC' | 'RESULT_ASC' | 'RESULT_DESC' | 'STARTED_AT_ASC' | 'STARTED_AT_DESC' | 'STATUS_ASC' | 'STATUS_DESC' | 'TASK_IDENTIFIER_ASC' | 'TASK_IDENTIFIER_DESC';
11926
+ export type PlatformFunctionInvocationOrderBy = 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' | 'API_BINDING_ID_ASC' | 'API_BINDING_ID_DESC' | 'CHANNEL_ASC' | 'CHANNEL_DESC' | 'COMPLETED_AT_ASC' | 'COMPLETED_AT_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'CREATED_BY_PRINCIPAL_ASC' | 'CREATED_BY_PRINCIPAL_DESC' | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'DEFINITION_SCOPE_ASC' | 'DEFINITION_SCOPE_DESC' | 'DURATION_MS_ASC' | 'DURATION_MS_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC' | 'ENTITY_TYPE_ASC' | 'ENTITY_TYPE_DESC' | 'ERROR_ASC' | 'ERROR_DESC' | 'FUNCTION_DEFINITION_ID_ASC' | 'FUNCTION_DEFINITION_ID_DESC' | 'GRAPH_EXECUTION_ID_ASC' | 'GRAPH_EXECUTION_ID_DESC' | 'ID_ASC' | 'ID_DESC' | 'JOB_ID_ASC' | 'JOB_ID_DESC' | 'JOB_KEY_ASC' | 'JOB_KEY_DESC' | 'NATURAL' | 'ORGANIZATION_ID_ASC' | 'ORGANIZATION_ID_DESC' | 'PARENT_INVOCATION_ID_ASC' | 'PARENT_INVOCATION_ID_DESC' | 'PAYLOAD_ASC' | 'PAYLOAD_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'PRINCIPAL_ID_ASC' | 'PRINCIPAL_ID_DESC' | 'PROVENANCE_ASC' | 'PROVENANCE_DESC' | 'QUEUE_NAME_ASC' | 'QUEUE_NAME_DESC' | 'RESULT_ASC' | 'RESULT_DESC' | 'STARTED_AT_ASC' | 'STARTED_AT_DESC' | 'STATUS_ASC' | 'STATUS_DESC' | 'TASK_IDENTIFIER_ASC' | 'TASK_IDENTIFIER_DESC';
11907
11927
  export type PlatformFunctionScheduleOrderBy = 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'DESCRIPTION_ASC' | 'DESCRIPTION_DESC' | 'FUNCTION_DEFINITION_ID_ASC' | 'FUNCTION_DEFINITION_ID_DESC' | 'ID_ASC' | 'ID_DESC' | 'IS_ACTIVE_ASC' | 'IS_ACTIVE_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'NATURAL' | 'PAYLOAD_ASC' | 'PAYLOAD_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'SCHEDULE_INFO_ASC' | 'SCHEDULE_INFO_DESC' | 'SUSPENDED_AT_ASC' | 'SUSPENDED_AT_DESC' | 'SUSPENDED_REASON_ASC' | 'SUSPENDED_REASON_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC';
11908
11928
  export type PlatformImageOrderBy = 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'CREATED_BY_PRINCIPAL_ASC' | 'CREATED_BY_PRINCIPAL_DESC' | 'DESCRIPTION_ASC' | 'DESCRIPTION_DESC' | 'DIGEST_ASC' | 'DIGEST_DESC' | 'EXPIRES_AT_ASC' | 'EXPIRES_AT_DESC' | 'ID_ASC' | 'ID_DESC' | 'IS_PUBLISHED_ASC' | 'IS_PUBLISHED_DESC' | 'LABELS_ASC' | 'LABELS_DESC' | 'METADATA_ASC' | 'METADATA_DESC' | 'NAME_ASC' | 'NAME_DESC' | 'NATURAL' | 'OWNER_ID_ASC' | 'OWNER_ID_DESC' | 'PLATFORM_ONLY_ASC' | 'PLATFORM_ONLY_DESC' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'REGISTRY_HOST_ASC' | 'REGISTRY_HOST_DESC' | 'REPOSITORY_ASC' | 'REPOSITORY_DESC' | 'RUNTIME_ASC' | 'RUNTIME_DESC' | 'TAG_ASC' | 'TAG_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'UPDATED_BY_PRINCIPAL_ASC' | 'UPDATED_BY_PRINCIPAL_DESC';
11909
11929
  export type PlatformImageGrantOrderBy = 'ACTIONS_ASC' | 'ACTIONS_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'CREATED_BY_PRINCIPAL_ASC' | 'CREATED_BY_PRINCIPAL_DESC' | 'EXPIRES_AT_ASC' | 'EXPIRES_AT_DESC' | 'GRANTED_BY_ASC' | 'GRANTED_BY_DESC' | 'GRANTEE_KEY_ASC' | 'GRANTEE_KEY_DESC' | 'GRANTEE_SCOPE_ASC' | 'GRANTEE_SCOPE_DESC' | 'ID_ASC' | 'ID_DESC' | 'IMAGE_ID_ASC' | 'IMAGE_ID_DESC' | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC' | 'UPDATED_BY_PRINCIPAL_ASC' | 'UPDATED_BY_PRINCIPAL_DESC';
@@ -13140,11 +13160,13 @@ export interface CreateFunctionInvocationInput {
13140
13160
  functionDefinitionId?: string;
13141
13161
  graphExecutionId?: string;
13142
13162
  jobId?: string;
13163
+ jobKey?: string;
13143
13164
  organizationId?: string;
13144
13165
  parentInvocationId?: string;
13145
13166
  payload?: Record<string, unknown>;
13146
13167
  principalId?: string;
13147
13168
  provenance?: Record<string, unknown>;
13169
+ queueName?: string;
13148
13170
  result?: Record<string, unknown>;
13149
13171
  startedAt?: string;
13150
13172
  status?: string;
@@ -13166,11 +13188,13 @@ export interface FunctionInvocationPatch {
13166
13188
  functionDefinitionId?: string | null;
13167
13189
  graphExecutionId?: string | null;
13168
13190
  jobId?: string | null;
13191
+ jobKey?: string | null;
13169
13192
  organizationId?: string | null;
13170
13193
  parentInvocationId?: string | null;
13171
13194
  payload?: Record<string, unknown> | null;
13172
13195
  principalId?: string | null;
13173
13196
  provenance?: Record<string, unknown> | null;
13197
+ queueName?: string | null;
13174
13198
  result?: Record<string, unknown> | null;
13175
13199
  startedAt?: string | null;
13176
13200
  status?: string | null;
@@ -13998,11 +14022,13 @@ export interface CreatePlatformFunctionInvocationInput {
13998
14022
  functionDefinitionId?: string;
13999
14023
  graphExecutionId?: string;
14000
14024
  jobId?: string;
14025
+ jobKey?: string;
14001
14026
  organizationId?: string;
14002
14027
  parentInvocationId?: string;
14003
14028
  payload?: Record<string, unknown>;
14004
14029
  principalId?: string;
14005
14030
  provenance?: Record<string, unknown>;
14031
+ queueName?: string;
14006
14032
  result?: Record<string, unknown>;
14007
14033
  startedAt?: string;
14008
14034
  status?: string;
@@ -14024,11 +14050,13 @@ export interface PlatformFunctionInvocationPatch {
14024
14050
  functionDefinitionId?: string | null;
14025
14051
  graphExecutionId?: string | null;
14026
14052
  jobId?: string | null;
14053
+ jobKey?: string | null;
14027
14054
  organizationId?: string | null;
14028
14055
  parentInvocationId?: string | null;
14029
14056
  payload?: Record<string, unknown> | null;
14030
14057
  principalId?: string | null;
14031
14058
  provenance?: Record<string, unknown> | null;
14059
+ queueName?: string | null;
14032
14060
  result?: Record<string, unknown> | null;
14033
14061
  startedAt?: string | null;
14034
14062
  status?: string | null;
@@ -19001,6 +19029,8 @@ export interface FunctionInvocationInput {
19001
19029
  id?: string;
19002
19030
  /** FK to app_jobs.jobs — the underlying transport */
19003
19031
  jobId?: string;
19032
+ /** Job dedupe key: a pending or retrying invocation with this key absorbs repeat requests */
19033
+ jobKey?: string;
19004
19034
  /** Organization identity propagated with the invocation */
19005
19035
  organizationId?: string;
19006
19036
  /** Parent invocation when this is a child node of a flow graph execution */
@@ -19011,6 +19041,8 @@ export interface FunctionInvocationInput {
19011
19041
  principalId?: string;
19012
19042
  /** Non-secret channel-specific invocation provenance (route/binding/event identifiers only) */
19013
19043
  provenance?: Record<string, unknown>;
19044
+ /** Job queue: jobs sharing a queue run one at a time, in order */
19045
+ queueName?: string;
19014
19046
  /** Function return value (success) or structured error (failure) */
19015
19047
  result?: Record<string, unknown>;
19016
19048
  /** When execution started */
@@ -19597,6 +19629,8 @@ export interface PlatformFunctionInvocationInput {
19597
19629
  id?: string;
19598
19630
  /** FK to app_jobs.jobs — the underlying transport */
19599
19631
  jobId?: string;
19632
+ /** Job dedupe key: a pending or retrying invocation with this key absorbs repeat requests */
19633
+ jobKey?: string;
19600
19634
  /** Organization identity propagated with the invocation */
19601
19635
  organizationId?: string;
19602
19636
  /** Parent invocation when this is a child node of a flow graph execution */
@@ -19607,6 +19641,8 @@ export interface PlatformFunctionInvocationInput {
19607
19641
  principalId?: string;
19608
19642
  /** Non-secret channel-specific invocation provenance (route/binding/event identifiers only) */
19609
19643
  provenance?: Record<string, unknown>;
19644
+ /** Job queue: jobs sharing a queue run one at a time, in order */
19645
+ queueName?: string;
19610
19646
  /** Function return value (success) or structured error (failure) */
19611
19647
  result?: Record<string, unknown>;
19612
19648
  /** When execution started */
@@ -21331,6 +21367,8 @@ export interface FunctionInvocationFilter {
21331
21367
  id?: UUIDFilter;
21332
21368
  /** Filter by the object’s `jobId` field. */
21333
21369
  jobId?: BigIntFilter;
21370
+ /** Filter by the object’s `jobKey` field. */
21371
+ jobKey?: StringFilter;
21334
21372
  /** Negates the expression. */
21335
21373
  not?: FunctionInvocationFilter;
21336
21374
  /** Checks for any expressions in this list. */
@@ -21345,6 +21383,8 @@ export interface FunctionInvocationFilter {
21345
21383
  principalId?: UUIDFilter;
21346
21384
  /** Filter by the object’s `provenance` field. */
21347
21385
  provenance?: JSONFilter;
21386
+ /** Filter by the object’s `queueName` field. */
21387
+ queueName?: StringFilter;
21348
21388
  /** Filter by the object’s `result` field. */
21349
21389
  result?: JSONFilter;
21350
21390
  /** Filter by the object’s `startedAt` field. */
@@ -22174,6 +22214,8 @@ export interface PlatformFunctionInvocationFilter {
22174
22214
  id?: UUIDFilter;
22175
22215
  /** Filter by the object’s `jobId` field. */
22176
22216
  jobId?: BigIntFilter;
22217
+ /** Filter by the object’s `jobKey` field. */
22218
+ jobKey?: StringFilter;
22177
22219
  /** Negates the expression. */
22178
22220
  not?: PlatformFunctionInvocationFilter;
22179
22221
  /** Checks for any expressions in this list. */
@@ -22188,6 +22230,8 @@ export interface PlatformFunctionInvocationFilter {
22188
22230
  principalId?: UUIDFilter;
22189
22231
  /** Filter by the object’s `provenance` field. */
22190
22232
  provenance?: JSONFilter;
22233
+ /** Filter by the object’s `queueName` field. */
22234
+ queueName?: StringFilter;
22191
22235
  /** Filter by the object’s `result` field. */
22192
22236
  result?: JSONFilter;
22193
22237
  /** Filter by the object’s `startedAt` field. */
@@ -25288,19 +25332,19 @@ export type PlatformResourceInstallationsUpgradePayloadSelect = {
25288
25332
  clientMutationId?: boolean;
25289
25333
  };
25290
25334
  export interface ProvisionBucketPayload {
25291
- /** The logical bucket row that was queued for reconciliation. */
25335
+ /** The logical bucket row whose reconciliation was requested. */
25292
25336
  bucketId: string;
25293
25337
  bucketKey: string;
25294
- /** The reconciler job enqueued to provision this bucket. */
25295
- jobId: string;
25296
25338
  /** The physical bucket name already recorded, or null when reconciliation has not completed. */
25297
25339
  physicalName?: string | null;
25340
+ /** When reconciliation was last requested for this bucket. */
25341
+ provisionRequestedAt: string;
25298
25342
  }
25299
25343
  export type ProvisionBucketPayloadSelect = {
25300
25344
  bucketId?: boolean;
25301
25345
  bucketKey?: boolean;
25302
- jobId?: boolean;
25303
25346
  physicalName?: boolean;
25347
+ provisionRequestedAt?: boolean;
25304
25348
  };
25305
25349
  export interface ResourceInstallationsInstallPayload {
25306
25350
  clientMutationId?: string | null;
@@ -163,10 +163,11 @@ export interface PlatformResourceInstallationsUpgradeVariables {
163
163
  /**
164
164
  * Variables for provisionBucket
165
165
  * Reconcile an S3 bucket for a logical bucket in the database.
166
- Reads the bucket config via RLS, then enqueues the same
167
- storage:provision_bucket job used by the INSERT trigger. This is
168
- idempotent for an already-reconciled bucket; enqueue failures become
169
- GraphQL errors.
166
+ Records the request on the bucket row via RLS; the bucket's job
167
+ trigger then enqueues the same storage:provision_bucket job used on
168
+ INSERT, and repeated requests collapse into one pending job. This is
169
+ idempotent for an already-reconciled bucket; failures become GraphQL
170
+ errors.
170
171
  */
171
172
  export interface ProvisionBucketVariables {
172
173
  input: ProvisionBucketInput;
@@ -1559,19 +1559,19 @@ export type PlatformSecretsSetPayloadSelect = {
1559
1559
  result?: boolean;
1560
1560
  };
1561
1561
  export interface ProvisionBucketPayload {
1562
- /** The logical bucket row that was queued for reconciliation. */
1562
+ /** The logical bucket row whose reconciliation was requested. */
1563
1563
  bucketId: string;
1564
1564
  bucketKey: string;
1565
- /** The reconciler job enqueued to provision this bucket. */
1566
- jobId: string;
1567
1565
  /** The physical bucket name already recorded, or null when reconciliation has not completed. */
1568
1566
  physicalName?: string | null;
1567
+ /** When reconciliation was last requested for this bucket. */
1568
+ provisionRequestedAt: string;
1569
1569
  }
1570
1570
  export type ProvisionBucketPayloadSelect = {
1571
1571
  bucketId?: boolean;
1572
1572
  bucketKey?: boolean;
1573
- jobId?: boolean;
1574
1573
  physicalName?: boolean;
1574
+ provisionRequestedAt?: boolean;
1575
1575
  };
1576
1576
  export interface CreateConfigPayload {
1577
1577
  clientMutationId?: string | null;
@@ -70,10 +70,11 @@ export interface PlatformSecretsSetVariables {
70
70
  /**
71
71
  * Variables for provisionBucket
72
72
  * Reconcile an S3 bucket for a logical bucket in the database.
73
- Reads the bucket config via RLS, then enqueues the same
74
- storage:provision_bucket job used by the INSERT trigger. This is
75
- idempotent for an already-reconciled bucket; enqueue failures become
76
- GraphQL errors.
73
+ Records the request on the bucket row via RLS; the bucket's job
74
+ trigger then enqueues the same storage:provision_bucket job used on
75
+ INSERT, and repeated requests collapse into one pending job. This is
76
+ idempotent for an already-reconciled bucket; failures become GraphQL
77
+ errors.
77
78
  */
78
79
  export interface ProvisionBucketVariables {
79
80
  input: ProvisionBucketInput;