@tailor-platform/sdk 1.18.0 → 1.20.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 (63) hide show
  1. package/CHANGELOG.md +53 -0
  2. package/dist/{application-gWUyKuzv.mjs → application-Bli2ieqY.mjs} +2704 -2394
  3. package/dist/application-Bli2ieqY.mjs.map +1 -0
  4. package/dist/application-CZdieD3K.mjs +9 -0
  5. package/dist/cli/index.mjs +121 -64
  6. package/dist/cli/index.mjs.map +1 -1
  7. package/dist/cli/lib.d.mts +122 -58
  8. package/dist/cli/lib.mjs +11 -9
  9. package/dist/cli/lib.mjs.map +1 -1
  10. package/dist/cli/skills.mjs +1 -1
  11. package/dist/cli/skills.mjs.map +1 -1
  12. package/dist/configure/index.d.mts +4 -4
  13. package/dist/configure/index.mjs +1 -1
  14. package/dist/configure/index.mjs.map +1 -1
  15. package/dist/{enum-constants-Cwd4qdpa.mjs → enum-constants-CGVvu3dd.mjs} +1 -1
  16. package/dist/{enum-constants-Cwd4qdpa.mjs.map → enum-constants-CGVvu3dd.mjs.map} +1 -1
  17. package/dist/{file-utils-cqcpFk87.mjs → file-utils-GX_tGWl4.mjs} +1 -1
  18. package/dist/{file-utils-cqcpFk87.mjs.map → file-utils-GX_tGWl4.mjs.map} +1 -1
  19. package/dist/{index-sSDpuVQY.d.mts → index-B86CIKCW.d.mts} +2 -2
  20. package/dist/{index-SqWgrTnF.d.mts → index-CGjiOz_W.d.mts} +2 -2
  21. package/dist/{index-BKXch-td.d.mts → index-CIXOwe6g.d.mts} +2 -2
  22. package/dist/{index-DP8EB9FK.d.mts → index-DcY0e3S5.d.mts} +10 -43
  23. package/dist/{index-C3Ib7pFc.d.mts → index-i6QUsr5p.d.mts} +2 -2
  24. package/dist/interceptor-D8MeZOxX.mjs +33 -0
  25. package/dist/interceptor-D8MeZOxX.mjs.map +1 -0
  26. package/dist/{jiti-DHlauMCo.mjs → jiti-DfS9jItj.mjs} +1 -1
  27. package/dist/{jiti-DHlauMCo.mjs.map → jiti-DfS9jItj.mjs.map} +1 -1
  28. package/dist/{kysely-type-DtUUoAi3.mjs → kysely-type-Cpq5TNGY.mjs} +2 -1
  29. package/dist/kysely-type-Cpq5TNGY.mjs.map +1 -0
  30. package/dist/package-json-3H5gfhA4.mjs +17 -0
  31. package/dist/package-json-3H5gfhA4.mjs.map +1 -0
  32. package/dist/package-json-DTDAqRRJ.mjs +3 -0
  33. package/dist/plugin/builtin/enum-constants/index.d.mts +2 -2
  34. package/dist/plugin/builtin/enum-constants/index.mjs +1 -1
  35. package/dist/plugin/builtin/file-utils/index.d.mts +2 -2
  36. package/dist/plugin/builtin/file-utils/index.mjs +1 -1
  37. package/dist/plugin/builtin/kysely-type/index.d.mts +2 -2
  38. package/dist/plugin/builtin/kysely-type/index.mjs +1 -1
  39. package/dist/plugin/builtin/seed/index.d.mts +2 -2
  40. package/dist/plugin/builtin/seed/index.mjs +1 -1
  41. package/dist/plugin/index.d.mts +1 -1
  42. package/dist/{schema-WDvc7Zel.mjs → schema-D5Cpd8fQ.mjs} +45 -3
  43. package/dist/schema-D5Cpd8fQ.mjs.map +1 -0
  44. package/dist/{seed-Dm7lrGZ3.mjs → seed-CeUEANfQ.mjs} +1 -1
  45. package/dist/{seed-Dm7lrGZ3.mjs.map → seed-CeUEANfQ.mjs.map} +1 -1
  46. package/dist/{src-i4uqS1G4.mjs → src-Bb1UVstT.mjs} +1 -1
  47. package/dist/{src-i4uqS1G4.mjs.map → src-Bb1UVstT.mjs.map} +1 -1
  48. package/dist/telemetry-Dhzj9Ncm.mjs +3 -0
  49. package/dist/telemetry-DuBhnd0X.mjs +84 -0
  50. package/dist/telemetry-DuBhnd0X.mjs.map +1 -0
  51. package/dist/{types-Bhl_wAM2.d.mts → types-C14GuyPI.d.mts} +94 -3
  52. package/dist/{types-DdvTxFiD.d.mts → types-CNw4p8V7.d.mts} +34 -10
  53. package/dist/types-ClK_HJ0G.mjs.map +1 -1
  54. package/dist/{update-BoNKMti-.mjs → update-DkpWgrzL.mjs} +548 -300
  55. package/dist/update-DkpWgrzL.mjs.map +1 -0
  56. package/dist/utils/test/index.d.mts +3 -3
  57. package/docs/cli/application.md +2 -0
  58. package/package.json +7 -1
  59. package/dist/application-Csj7Ow5Q.mjs +0 -8
  60. package/dist/application-gWUyKuzv.mjs.map +0 -1
  61. package/dist/kysely-type-DtUUoAi3.mjs.map +0 -1
  62. package/dist/schema-WDvc7Zel.mjs.map +0 -1
  63. package/dist/update-BoNKMti-.mjs.map +0 -1
@@ -1,10 +1,10 @@
1
1
  /// <reference path="./../user-defined.d.ts" />
2
- import { At as Resolver, Q as IdProviderConfig, R as IncomingWebhookTrigger, V as ScheduleTriggerInput, d as PluginAttachment, et as OAuth2ClientInput, j as Executor, n as TypeSourceInfoEntry, t as TailorDBType, u as Plugin } from "../types-DdvTxFiD.mjs";
3
- import { t as AppConfig } from "../types-Bhl_wAM2.mjs";
4
- import { n as kyselyTypePlugin } from "../index-BKXch-td.mjs";
5
- import { n as enumConstantsPlugin } from "../index-sSDpuVQY.mjs";
6
- import { n as fileUtilsPlugin } from "../index-C3Ib7pFc.mjs";
7
- import { n as seedPlugin } from "../index-SqWgrTnF.mjs";
2
+ import { At as Resolver, Q as IdProviderConfig, R as IncomingWebhookTrigger, V as ScheduleTriggerInput, d as PluginAttachment, et as OAuth2ClientInput, j as Executor, n as TypeSourceInfoEntry, t as TailorDBType, u as Plugin } from "../types-CNw4p8V7.mjs";
3
+ import { t as AppConfig } from "../types-C14GuyPI.mjs";
4
+ import { n as kyselyTypePlugin } from "../index-CIXOwe6g.mjs";
5
+ import { n as enumConstantsPlugin } from "../index-B86CIKCW.mjs";
6
+ import { n as fileUtilsPlugin } from "../index-i6QUsr5p.mjs";
7
+ import { n as seedPlugin } from "../index-CGjiOz_W.mjs";
8
8
  import "politty";
9
9
  import { z } from "zod";
10
10
  import { OAuth2Client } from "@badgateway/oauth2-client";
@@ -16,7 +16,7 @@ import "rolldown";
16
16
  import { JsonObject, Message } from "@bufbuild/protobuf";
17
17
  import { Jsonifiable } from "type-fest";
18
18
 
19
- //#region src/cli/config-loader.d.ts
19
+ //#region src/cli/shared/config-loader.d.ts
20
20
  /**
21
21
  * Loaded configuration with resolved path
22
22
  */
@@ -3346,6 +3346,11 @@ declare type TailorDBType_FieldConfig = Message<"tailor.v1.TailorDBType.FieldCon
3346
3346
  * @generated from field: tailor.v1.TailorDBType.Serial serial = 17;
3347
3347
  */
3348
3348
  serial?: TailorDBType_Serial;
3349
+
3350
+ /**
3351
+ * @generated from field: optional int32 scale = 18;
3352
+ */
3353
+ scale?: number;
3349
3354
  };
3350
3355
  /**
3351
3356
  * @generated from message tailor.v1.TailorDBType.RelationshipConfig
@@ -11202,6 +11207,52 @@ declare type IdPService = Message<"tailor.v1.IdPService"> & {
11202
11207
  * @generated from field: bool publish_user_events = 6;
11203
11208
  */
11204
11209
  publishUserEvents: boolean;
11210
+
11211
+ /**
11212
+ * @generated from field: tailor.v1.IdPDisableGqlOperations disable_gql_operations = 7;
11213
+ */
11214
+ disableGqlOperations?: IdPDisableGqlOperations;
11215
+ };
11216
+ /**
11217
+ * IdPDisableGqlOperations controls which IdP-related GraphQL operations are disabled.
11218
+ *
11219
+ * @generated from message tailor.v1.IdPDisableGqlOperations
11220
+ */
11221
+ declare type IdPDisableGqlOperations = Message<"tailor.v1.IdPDisableGqlOperations"> & {
11222
+ /**
11223
+ * create disables the _createUser GraphQL mutation.
11224
+ *
11225
+ * @generated from field: bool create = 1;
11226
+ */
11227
+ create: boolean;
11228
+
11229
+ /**
11230
+ * update disables the _updateUser GraphQL mutation.
11231
+ *
11232
+ * @generated from field: bool update = 2;
11233
+ */
11234
+ update: boolean;
11235
+
11236
+ /**
11237
+ * delete disables the _deleteUser GraphQL mutation.
11238
+ *
11239
+ * @generated from field: bool delete = 3;
11240
+ */
11241
+ delete: boolean;
11242
+
11243
+ /**
11244
+ * read disables the _users and _user GraphQL queries.
11245
+ *
11246
+ * @generated from field: bool read = 4;
11247
+ */
11248
+ read: boolean;
11249
+
11250
+ /**
11251
+ * send_password_reset_email disables the _sendPasswordResetEmail GraphQL mutation.
11252
+ *
11253
+ * @generated from field: bool send_password_reset_email = 5;
11254
+ */
11255
+ sendPasswordResetEmail: boolean;
11205
11256
  };
11206
11257
  /**
11207
11258
  * @generated from message tailor.v1.IdPClient
@@ -11413,6 +11464,11 @@ declare type CreateIdPServiceRequest = Message<"tailor.v1.CreateIdPServiceReques
11413
11464
  * @generated from field: bool publish_user_events = 6;
11414
11465
  */
11415
11466
  publishUserEvents: boolean;
11467
+
11468
+ /**
11469
+ * @generated from field: tailor.v1.IdPDisableGqlOperations disable_gql_operations = 7;
11470
+ */
11471
+ disableGqlOperations?: IdPDisableGqlOperations;
11416
11472
  };
11417
11473
  /**
11418
11474
  * Describes the message tailor.v1.CreateIdPServiceRequest.
@@ -11471,6 +11527,11 @@ declare type UpdateIdPServiceRequest = Message<"tailor.v1.UpdateIdPServiceReques
11471
11527
  * @generated from field: bool publish_user_events = 6;
11472
11528
  */
11473
11529
  publishUserEvents: boolean;
11530
+
11531
+ /**
11532
+ * @generated from field: tailor.v1.IdPDisableGqlOperations disable_gql_operations = 7;
11533
+ */
11534
+ disableGqlOperations?: IdPDisableGqlOperations;
11474
11535
  };
11475
11536
  /**
11476
11537
  * Describes the message tailor.v1.UpdateIdPServiceRequest.
@@ -15927,7 +15988,7 @@ declare const OperatorService: GenService<{
15927
15988
  };
15928
15989
  }>;
15929
15990
  //#endregion
15930
- //#region src/cli/client.d.ts
15991
+ //#region src/cli/shared/client.d.ts
15931
15992
  type OperatorClient = Client<typeof OperatorService>;
15932
15993
  /**
15933
15994
  * Initialize an Operator client with the given access token.
@@ -16977,7 +17038,7 @@ declare function initOperatorClient(accessToken: string): Promise<Client<_bufbui
16977
17038
  };
16978
17039
  }>>>;
16979
17040
  //#endregion
16980
- //#region src/cli/apply/index.d.ts
17041
+ //#region src/cli/commands/apply/apply.d.ts
16981
17042
  interface ApplyOptions {
16982
17043
  workspaceId?: string;
16983
17044
  profile?: string;
@@ -16985,6 +17046,8 @@ interface ApplyOptions {
16985
17046
  dryRun?: boolean;
16986
17047
  yes?: boolean;
16987
17048
  noSchemaCheck?: boolean;
17049
+ noCache?: boolean;
17050
+ cleanCache?: boolean;
16988
17051
  buildOnly?: boolean;
16989
17052
  }
16990
17053
  /**
@@ -16994,7 +17057,7 @@ interface ApplyOptions {
16994
17057
  */
16995
17058
  declare function apply(options?: ApplyOptions): Promise<void>;
16996
17059
  //#endregion
16997
- //#region src/cli/generator/types.d.ts
17060
+ //#region src/cli/commands/generate/types.d.ts
16998
17061
  interface GeneratedFile {
16999
17062
  path: string;
17000
17063
  content: string;
@@ -17115,13 +17178,13 @@ type TailorDBResolverGenerator<T = unknown, R = unknown, Ts = Record<string, T>,
17115
17178
  /** Full generator (all dependencies) */
17116
17179
  type FullCodeGenerator<T = unknown, R = unknown, E = unknown, Ts = Record<string, T>, Rs = Record<string, R>> = CodeGenerator<readonly ["tailordb", "resolver", "executor"], T, R, E, Ts, Rs>;
17117
17180
  //#endregion
17118
- //#region src/cli/generator/options.d.ts
17181
+ //#region src/cli/commands/generate/options.d.ts
17119
17182
  type GenerateOptions = {
17120
17183
  configPath?: string;
17121
17184
  watch?: boolean;
17122
17185
  };
17123
17186
  //#endregion
17124
- //#region src/cli/generator/index.d.ts
17187
+ //#region src/cli/commands/generate/service.d.ts
17125
17188
  /**
17126
17189
  * Run code generation using the Tailor configuration and generators.
17127
17190
  * @param options - Generation options
@@ -17129,7 +17192,7 @@ type GenerateOptions = {
17129
17192
  */
17130
17193
  declare function generate(options?: GenerateOptions): Promise<void>;
17131
17194
  //#endregion
17132
- //#region src/cli/type-generator.d.ts
17195
+ //#region src/cli/shared/type-generator.d.ts
17133
17196
  /**
17134
17197
  * Options for generating user type definitions
17135
17198
  */
@@ -17146,7 +17209,7 @@ interface GenerateUserTypesOptions {
17146
17209
  */
17147
17210
  declare function generateUserTypes(options: GenerateUserTypesOptions): Promise<void>;
17148
17211
  //#endregion
17149
- //#region src/cli/show.d.ts
17212
+ //#region src/cli/commands/show.d.ts
17150
17213
  interface ShowOptions {
17151
17214
  workspaceId?: string;
17152
17215
  profile?: string;
@@ -17176,7 +17239,7 @@ interface ShowInfo extends ApplicationInfo, WorkspaceInfo$1 {}
17176
17239
  */
17177
17240
  declare function show(options?: ShowOptions): Promise<ShowInfo>;
17178
17241
  //#endregion
17179
- //#region src/cli/remove.d.ts
17242
+ //#region src/cli/commands/remove.d.ts
17180
17243
  interface RemoveOptions {
17181
17244
  workspaceId?: string;
17182
17245
  profile?: string;
@@ -17189,7 +17252,7 @@ interface RemoveOptions {
17189
17252
  */
17190
17253
  declare function remove(options?: RemoveOptions): Promise<void>;
17191
17254
  //#endregion
17192
- //#region src/cli/workspace/transform.d.ts
17255
+ //#region src/cli/commands/workspace/transform.d.ts
17193
17256
  interface WorkspaceInfo {
17194
17257
  id: string;
17195
17258
  name: string;
@@ -17203,7 +17266,7 @@ interface WorkspaceDetails extends WorkspaceInfo {
17203
17266
  folderId: string;
17204
17267
  }
17205
17268
  //#endregion
17206
- //#region src/cli/workspace/create.d.ts
17269
+ //#region src/cli/commands/workspace/create.d.ts
17207
17270
  /**
17208
17271
  * Schema for workspace creation options
17209
17272
  * - name: 3-63 chars, lowercase alphanumeric and hyphens, cannot start/end with hyphen
@@ -17224,7 +17287,7 @@ type CreateWorkspaceOptions = z.input<typeof createWorkspaceOptionsSchema>;
17224
17287
  */
17225
17288
  declare function createWorkspace(options: CreateWorkspaceOptions): Promise<WorkspaceInfo>;
17226
17289
  //#endregion
17227
- //#region src/cli/workspace/list.d.ts
17290
+ //#region src/cli/commands/workspace/list.d.ts
17228
17291
  interface ListWorkspacesOptions {
17229
17292
  limit?: number;
17230
17293
  }
@@ -17235,7 +17298,7 @@ interface ListWorkspacesOptions {
17235
17298
  */
17236
17299
  declare function listWorkspaces(options?: ListWorkspacesOptions): Promise<WorkspaceInfo[]>;
17237
17300
  //#endregion
17238
- //#region src/cli/workspace/delete.d.ts
17301
+ //#region src/cli/commands/workspace/delete.d.ts
17239
17302
  declare const deleteWorkspaceOptionsSchema: z.ZodObject<{
17240
17303
  workspaceId: z.ZodUUID;
17241
17304
  }, z.core.$strip>;
@@ -17247,7 +17310,7 @@ type DeleteWorkspaceOptions = z.input<typeof deleteWorkspaceOptionsSchema>;
17247
17310
  */
17248
17311
  declare function deleteWorkspace(options: DeleteWorkspaceOptions): Promise<void>;
17249
17312
  //#endregion
17250
- //#region src/cli/workspace/get.d.ts
17313
+ //#region src/cli/commands/workspace/get.d.ts
17251
17314
  declare const getWorkspaceOptionsSchema: z.ZodObject<{
17252
17315
  workspaceId: z.ZodOptional<z.ZodUUID>;
17253
17316
  profile: z.ZodOptional<z.ZodString>;
@@ -17260,7 +17323,7 @@ type GetWorkspaceOptions = z.input<typeof getWorkspaceOptionsSchema>;
17260
17323
  */
17261
17324
  declare function getWorkspace(options: GetWorkspaceOptions): Promise<WorkspaceDetails>;
17262
17325
  //#endregion
17263
- //#region src/cli/workspace/restore.d.ts
17326
+ //#region src/cli/commands/workspace/restore.d.ts
17264
17327
  declare const restoreWorkspaceOptionsSchema: z.ZodObject<{
17265
17328
  workspaceId: z.ZodUUID;
17266
17329
  }, z.core.$strip>;
@@ -17272,14 +17335,14 @@ type RestoreWorkspaceOptions = z.input<typeof restoreWorkspaceOptionsSchema>;
17272
17335
  */
17273
17336
  declare function restoreWorkspace(options: RestoreWorkspaceOptions): Promise<void>;
17274
17337
  //#endregion
17275
- //#region src/cli/workspace/user/transform.d.ts
17338
+ //#region src/cli/commands/workspace/user/transform.d.ts
17276
17339
  interface UserInfo {
17277
17340
  userId: string;
17278
17341
  email: string;
17279
17342
  role: string;
17280
17343
  }
17281
17344
  //#endregion
17282
- //#region src/cli/workspace/user/list.d.ts
17345
+ //#region src/cli/commands/workspace/user/list.d.ts
17283
17346
  declare const listUsersOptionsSchema: z.ZodObject<{
17284
17347
  workspaceId: z.ZodOptional<z.ZodUUID>;
17285
17348
  profile: z.ZodOptional<z.ZodString>;
@@ -17293,7 +17356,7 @@ type ListUsersOptions = z.input<typeof listUsersOptionsSchema>;
17293
17356
  */
17294
17357
  declare function listUsers(options: ListUsersOptions): Promise<UserInfo[]>;
17295
17358
  //#endregion
17296
- //#region src/cli/workspace/user/invite.d.ts
17359
+ //#region src/cli/commands/workspace/user/invite.d.ts
17297
17360
  declare const inviteUserOptionsSchema: z.ZodObject<{
17298
17361
  workspaceId: z.ZodOptional<z.ZodUUID>;
17299
17362
  profile: z.ZodOptional<z.ZodString>;
@@ -17312,7 +17375,7 @@ type InviteUserOptions = z.input<typeof inviteUserOptionsSchema>;
17312
17375
  */
17313
17376
  declare function inviteUser(options: InviteUserOptions): Promise<void>;
17314
17377
  //#endregion
17315
- //#region src/cli/workspace/user/update.d.ts
17378
+ //#region src/cli/commands/workspace/user/update.d.ts
17316
17379
  declare const updateUserOptionsSchema: z.ZodObject<{
17317
17380
  workspaceId: z.ZodOptional<z.ZodUUID>;
17318
17381
  profile: z.ZodOptional<z.ZodString>;
@@ -17331,7 +17394,7 @@ type UpdateUserOptions = z.input<typeof updateUserOptionsSchema>;
17331
17394
  */
17332
17395
  declare function updateUser(options: UpdateUserOptions): Promise<void>;
17333
17396
  //#endregion
17334
- //#region src/cli/workspace/user/remove.d.ts
17397
+ //#region src/cli/commands/workspace/user/remove.d.ts
17335
17398
  declare const removeUserOptionsSchema: z.ZodObject<{
17336
17399
  workspaceId: z.ZodOptional<z.ZodUUID>;
17337
17400
  profile: z.ZodOptional<z.ZodString>;
@@ -17345,7 +17408,7 @@ type RemoveUserOptions = z.input<typeof removeUserOptionsSchema>;
17345
17408
  */
17346
17409
  declare function removeUser(options: RemoveUserOptions): Promise<void>;
17347
17410
  //#endregion
17348
- //#region src/cli/workspace/app/transform.d.ts
17411
+ //#region src/cli/commands/workspace/app/transform.d.ts
17349
17412
  interface AppInfo {
17350
17413
  name: string;
17351
17414
  domain: string;
@@ -17362,7 +17425,7 @@ interface AppHealthInfo {
17362
17425
  lastAttemptError: string;
17363
17426
  }
17364
17427
  //#endregion
17365
- //#region src/cli/workspace/app/list.d.ts
17428
+ //#region src/cli/commands/workspace/app/list.d.ts
17366
17429
  declare const listAppsOptionsSchema: z.ZodObject<{
17367
17430
  workspaceId: z.ZodOptional<z.ZodUUID>;
17368
17431
  profile: z.ZodOptional<z.ZodString>;
@@ -17376,7 +17439,7 @@ type ListAppsOptions = z.input<typeof listAppsOptionsSchema>;
17376
17439
  */
17377
17440
  declare function listApps(options: ListAppsOptions): Promise<AppInfo[]>;
17378
17441
  //#endregion
17379
- //#region src/cli/workspace/app/health.d.ts
17442
+ //#region src/cli/commands/workspace/app/health.d.ts
17380
17443
  declare const healthOptionsSchema: z.ZodObject<{
17381
17444
  workspaceId: z.ZodOptional<z.ZodUUID>;
17382
17445
  profile: z.ZodOptional<z.ZodString>;
@@ -17390,7 +17453,7 @@ type HealthOptions = z.input<typeof healthOptionsSchema>;
17390
17453
  */
17391
17454
  declare function getAppHealth(options: HealthOptions): Promise<AppHealthInfo>;
17392
17455
  //#endregion
17393
- //#region src/cli/machineuser/list.d.ts
17456
+ //#region src/cli/commands/machineuser/list.d.ts
17394
17457
  interface ListMachineUsersOptions {
17395
17458
  workspaceId?: string;
17396
17459
  profile?: string;
@@ -17411,7 +17474,7 @@ interface MachineUserInfo {
17411
17474
  */
17412
17475
  declare function listMachineUsers(options?: ListMachineUsersOptions): Promise<MachineUserInfo[]>;
17413
17476
  //#endregion
17414
- //#region src/cli/machineuser/token.d.ts
17477
+ //#region src/cli/commands/machineuser/token.d.ts
17415
17478
  interface GetMachineUserTokenOptions {
17416
17479
  name: string;
17417
17480
  workspaceId?: string;
@@ -17430,7 +17493,7 @@ interface MachineUserTokenInfo {
17430
17493
  */
17431
17494
  declare function getMachineUserToken(options: GetMachineUserTokenOptions): Promise<MachineUserTokenInfo>;
17432
17495
  //#endregion
17433
- //#region src/cli/oauth2client/transform.d.ts
17496
+ //#region src/cli/commands/oauth2client/transform.d.ts
17434
17497
  interface OAuth2ClientInfo {
17435
17498
  name: string;
17436
17499
  description: string;
@@ -17449,7 +17512,7 @@ interface OAuth2ClientCredentials {
17449
17512
  createdAt: Date | null;
17450
17513
  }
17451
17514
  //#endregion
17452
- //#region src/cli/oauth2client/get.d.ts
17515
+ //#region src/cli/commands/oauth2client/get.d.ts
17453
17516
  interface GetOAuth2ClientOptions {
17454
17517
  name: string;
17455
17518
  workspaceId?: string;
@@ -17463,7 +17526,7 @@ interface GetOAuth2ClientOptions {
17463
17526
  */
17464
17527
  declare function getOAuth2Client(options: GetOAuth2ClientOptions): Promise<OAuth2ClientCredentials>;
17465
17528
  //#endregion
17466
- //#region src/cli/oauth2client/list.d.ts
17529
+ //#region src/cli/commands/oauth2client/list.d.ts
17467
17530
  interface ListOAuth2ClientsOptions {
17468
17531
  workspaceId?: string;
17469
17532
  profile?: string;
@@ -17476,7 +17539,7 @@ interface ListOAuth2ClientsOptions {
17476
17539
  */
17477
17540
  declare function listOAuth2Clients(options?: ListOAuth2ClientsOptions): Promise<OAuth2ClientInfo[]>;
17478
17541
  //#endregion
17479
- //#region src/cli/workflow/transform.d.ts
17542
+ //#region src/cli/commands/workflow/transform.d.ts
17480
17543
  interface WorkflowListInfo {
17481
17544
  name: string;
17482
17545
  mainJob: string;
@@ -17508,7 +17571,7 @@ interface WorkflowExecutionInfo {
17508
17571
  finishedAt: Date | null;
17509
17572
  }
17510
17573
  //#endregion
17511
- //#region src/cli/workflow/list.d.ts
17574
+ //#region src/cli/commands/workflow/list.d.ts
17512
17575
  interface ListWorkflowsOptions {
17513
17576
  workspaceId?: string;
17514
17577
  profile?: string;
@@ -17520,7 +17583,7 @@ interface ListWorkflowsOptions {
17520
17583
  */
17521
17584
  declare function listWorkflows(options?: ListWorkflowsOptions): Promise<WorkflowListInfo[]>;
17522
17585
  //#endregion
17523
- //#region src/cli/workflow/get.d.ts
17586
+ //#region src/cli/commands/workflow/get.d.ts
17524
17587
  type WorkflowLike$2 = {
17525
17588
  name: string;
17526
17589
  };
@@ -17545,7 +17608,7 @@ interface GetWorkflowOptions {
17545
17608
  declare function getWorkflow<W extends WorkflowLike$2>(options: GetWorkflowTypedOptions<W>): Promise<WorkflowInfo>;
17546
17609
  declare function getWorkflow(options: GetWorkflowOptions): Promise<WorkflowInfo>;
17547
17610
  //#endregion
17548
- //#region src/cli/workflow/start.d.ts
17611
+ //#region src/cli/commands/workflow/start.d.ts
17549
17612
  type WorkflowLike$1 = {
17550
17613
  name: string;
17551
17614
  mainJob: {
@@ -17600,7 +17663,7 @@ interface StartWorkflowResultWithWait {
17600
17663
  declare function startWorkflow<W extends WorkflowLike$1>(options: StartWorkflowTypedOptions<W>): Promise<StartWorkflowResultWithWait>;
17601
17664
  declare function startWorkflow(options: StartWorkflowOptions): Promise<StartWorkflowResultWithWait>;
17602
17665
  //#endregion
17603
- //#region src/cli/workflow/executions.d.ts
17666
+ //#region src/cli/commands/workflow/executions.d.ts
17604
17667
  type WorkflowLike = {
17605
17668
  name: string;
17606
17669
  };
@@ -17650,7 +17713,7 @@ declare function listWorkflowExecutions(options?: ListWorkflowExecutionsOptions)
17650
17713
  */
17651
17714
  declare function getWorkflowExecution(options: GetWorkflowExecutionOptions): Promise<GetWorkflowExecutionResult>;
17652
17715
  //#endregion
17653
- //#region src/cli/workflow/resume.d.ts
17716
+ //#region src/cli/commands/workflow/resume.d.ts
17654
17717
  interface ResumeWorkflowOptions {
17655
17718
  executionId: string;
17656
17719
  workspaceId?: string;
@@ -17668,7 +17731,7 @@ interface ResumeWorkflowResultWithWait {
17668
17731
  */
17669
17732
  declare function resumeWorkflow(options: ResumeWorkflowOptions): Promise<ResumeWorkflowResultWithWait>;
17670
17733
  //#endregion
17671
- //#region src/cli/executor/trigger.d.ts
17734
+ //#region src/cli/commands/executor/trigger.d.ts
17672
17735
  type ManualTrigger = IncomingWebhookTrigger | ScheduleTriggerInput;
17673
17736
  type ManualTriggerExecutor<T extends ManualTrigger = ManualTrigger> = T extends ManualTrigger ? {
17674
17737
  name: string;
@@ -17704,7 +17767,7 @@ interface TriggerExecutorResult {
17704
17767
  declare function triggerExecutor<E extends ManualTriggerExecutor>(options: TriggerExecutorTypedOptions<E>): Promise<TriggerExecutorResult>;
17705
17768
  declare function triggerExecutor(options: TriggerExecutorOptions): Promise<TriggerExecutorResult>;
17706
17769
  //#endregion
17707
- //#region src/cli/executor/transform.d.ts
17770
+ //#region src/cli/commands/executor/transform.d.ts
17708
17771
  interface ExecutorJobListInfo {
17709
17772
  id: string;
17710
17773
  executorName: string;
@@ -17744,7 +17807,7 @@ interface ExecutorInfo {
17744
17807
  targetConfig: string;
17745
17808
  }
17746
17809
  //#endregion
17747
- //#region src/cli/executor/jobs.d.ts
17810
+ //#region src/cli/commands/executor/jobs.d.ts
17748
17811
  type ExecutorLike$1 = {
17749
17812
  name: string;
17750
17813
  };
@@ -17841,7 +17904,7 @@ declare function getExecutorJob(options: GetExecutorJobOptions): Promise<Executo
17841
17904
  declare function watchExecutorJob<E extends ExecutorLike$1>(options: WatchExecutorJobTypedOptions<E>): Promise<WatchExecutorJobResult>;
17842
17905
  declare function watchExecutorJob(options: WatchExecutorJobOptions): Promise<WatchExecutorJobResult>;
17843
17906
  //#endregion
17844
- //#region src/cli/executor/list.d.ts
17907
+ //#region src/cli/commands/executor/list.d.ts
17845
17908
  interface ListExecutorsOptions {
17846
17909
  workspaceId?: string;
17847
17910
  profile?: string;
@@ -17853,7 +17916,7 @@ interface ListExecutorsOptions {
17853
17916
  */
17854
17917
  declare function listExecutors(options?: ListExecutorsOptions): Promise<ExecutorListInfo[]>;
17855
17918
  //#endregion
17856
- //#region src/cli/executor/get.d.ts
17919
+ //#region src/cli/commands/executor/get.d.ts
17857
17920
  type ExecutorLike = {
17858
17921
  name: string;
17859
17922
  };
@@ -17878,7 +17941,7 @@ interface GetExecutorOptions {
17878
17941
  declare function getExecutor<E extends ExecutorLike>(options: GetExecutorTypedOptions<E>): Promise<ExecutorInfo>;
17879
17942
  declare function getExecutor(options: GetExecutorOptions): Promise<ExecutorInfo>;
17880
17943
  //#endregion
17881
- //#region src/cli/executor/webhook.d.ts
17944
+ //#region src/cli/commands/executor/webhook.d.ts
17882
17945
  interface WebhookExecutorInfo {
17883
17946
  name: string;
17884
17947
  webhookUrl: string;
@@ -17895,7 +17958,7 @@ interface ListWebhookExecutorsOptions {
17895
17958
  */
17896
17959
  declare function listWebhookExecutors(options?: ListWebhookExecutorsOptions): Promise<WebhookExecutorInfo[]>;
17897
17960
  //#endregion
17898
- //#region src/cli/context.d.ts
17961
+ //#region src/cli/shared/context.d.ts
17899
17962
  type LoadWorkspaceIdOptions = {
17900
17963
  workspaceId?: string;
17901
17964
  profile?: string;
@@ -17924,7 +17987,7 @@ declare function loadWorkspaceId(opts?: LoadWorkspaceIdOptions): string;
17924
17987
  */
17925
17988
  declare function loadAccessToken(opts?: LoadAccessTokenOptions): Promise<string>;
17926
17989
  //#endregion
17927
- //#region src/cli/api.d.ts
17990
+ //#region src/cli/commands/api.d.ts
17928
17991
  interface ApiCallOptions {
17929
17992
  profile?: string;
17930
17993
  endpoint: string;
@@ -17942,7 +18005,7 @@ interface ApiCallResult {
17942
18005
  */
17943
18006
  declare function apiCall(options: ApiCallOptions): Promise<ApiCallResult>;
17944
18007
  //#endregion
17945
- //#region src/cli/tailordb/truncate.d.ts
18008
+ //#region src/cli/commands/tailordb/truncate.d.ts
17946
18009
  interface TruncateOptions {
17947
18010
  workspaceId?: string;
17948
18011
  profile?: string;
@@ -17958,7 +18021,7 @@ interface TruncateOptions {
17958
18021
  */
17959
18022
  declare function truncate(options?: TruncateOptions): Promise<void>;
17960
18023
  //#endregion
17961
- //#region src/cli/tailordb/migrate/generate.d.ts
18024
+ //#region src/cli/commands/tailordb/migrate/generate.d.ts
17962
18025
  interface GenerateOptions$1 {
17963
18026
  configPath?: string;
17964
18027
  name?: string;
@@ -17972,7 +18035,7 @@ interface GenerateOptions$1 {
17972
18035
  */
17973
18036
  declare function generate$1(options: GenerateOptions$1): Promise<void>;
17974
18037
  //#endregion
17975
- //#region src/cli/tailordb/migrate/diff-calculator.d.ts
18038
+ //#region src/cli/commands/tailordb/migrate/diff-calculator.d.ts
17976
18039
  /**
17977
18040
  * Diff calculator and formatter for TailorDB schema migrations
17978
18041
  *
@@ -18053,13 +18116,13 @@ declare function formatMigrationDiff(diff: MigrationDiff): string;
18053
18116
  */
18054
18117
  declare function formatDiffSummary(diff: MigrationDiff): string;
18055
18118
  //#endregion
18056
- //#region src/cli/tailordb/migrate/types.d.ts
18119
+ //#region src/cli/commands/tailordb/migrate/types.d.ts
18057
18120
  /**
18058
18121
  * Label key for storing migration state in TailorDB Service metadata
18059
18122
  */
18060
18123
  declare const MIGRATION_LABEL_KEY = "sdk-migration";
18061
18124
  //#endregion
18062
- //#region src/cli/tailordb/migrate/snapshot.d.ts
18125
+ //#region src/cli/commands/tailordb/migrate/snapshot.d.ts
18063
18126
  /**
18064
18127
  * Initial schema migration number (0000)
18065
18128
  */
@@ -18122,6 +18185,7 @@ interface SnapshotFieldConfig {
18122
18185
  };
18123
18186
  validate?: SnapshotValidation[];
18124
18187
  serial?: SnapshotSerial;
18188
+ scale?: number;
18125
18189
  /** Nested fields (recursive) */
18126
18190
  fields?: Record<string, SnapshotFieldConfig>;
18127
18191
  }
@@ -18323,7 +18387,7 @@ declare function compareSnapshots(previous: SchemaSnapshot, current: SchemaSnaps
18323
18387
  */
18324
18388
  declare function compareLocalTypesWithSnapshot(snapshot: SchemaSnapshot, localTypes: Record<string, TailorDBType>, namespace: string): MigrationDiff;
18325
18389
  //#endregion
18326
- //#region src/cli/tailordb/migrate/config.d.ts
18390
+ //#region src/cli/commands/tailordb/migrate/config.d.ts
18327
18391
  /**
18328
18392
  * Namespace with migrations configuration
18329
18393
  */
@@ -18339,7 +18403,7 @@ interface NamespaceWithMigrations {
18339
18403
  */
18340
18404
  declare function getNamespacesWithMigrations(config: AppConfig, configDir: string): NamespaceWithMigrations[];
18341
18405
  //#endregion
18342
- //#region src/cli/utils/seed-chunker.d.ts
18406
+ //#region src/cli/shared/seed-chunker.d.ts
18343
18407
  /**
18344
18408
  * Seed data chunker for splitting large seed data into manageable message sizes.
18345
18409
  *
@@ -18388,7 +18452,7 @@ type ChunkSeedDataOptions = {
18388
18452
  */
18389
18453
  declare function chunkSeedData(options: ChunkSeedDataOptions): SeedChunk[];
18390
18454
  //#endregion
18391
- //#region src/cli/bundler/seed/seed-bundler.d.ts
18455
+ //#region src/cli/commands/generate/seed/bundler.d.ts
18392
18456
  /**
18393
18457
  * Seed script bundler for TailorDB seed data
18394
18458
  *
@@ -18413,7 +18477,7 @@ type SeedBundleResult = {
18413
18477
  */
18414
18478
  declare function bundleSeedScript(namespace: string, typeNames: string[]): Promise<SeedBundleResult>;
18415
18479
  //#endregion
18416
- //#region src/cli/bundler/migration/migration-bundler.d.ts
18480
+ //#region src/cli/commands/tailordb/migrate/bundler.d.ts
18417
18481
  /**
18418
18482
  * Migration script bundler for TailorDB migrations
18419
18483
  *
@@ -18439,7 +18503,7 @@ interface MigrationBundleResult {
18439
18503
  */
18440
18504
  declare function bundleMigrationScript(sourceFile: string, namespace: string, migrationNumber: number): Promise<MigrationBundleResult>;
18441
18505
  //#endregion
18442
- //#region src/cli/utils/script-executor.d.ts
18506
+ //#region src/cli/shared/script-executor.d.ts
18443
18507
  /**
18444
18508
  * Options for script execution
18445
18509
  */
package/dist/cli/lib.mjs CHANGED
@@ -1,12 +1,14 @@
1
1
  import "../chunk-CqAI0b6X.mjs";
2
- import "../schema-WDvc7Zel.mjs";
2
+ import "../schema-D5Cpd8fQ.mjs";
3
3
  import "../brand-BZJCv6UY.mjs";
4
- import { At as getMigrationDirPath, B as getMachineUserToken, Bt as getNamespacesWithMigrations, Ct as MIGRATE_FILE_NAME, D as truncate, Dt as createSnapshotFromLocalTypes, E as listWorkflows, Et as compareSnapshots, Ht as generateUserTypes, It as reconstructSnapshotFromMigrations, K as listWebhookExecutors, L as listOAuth2Clients, Lt as formatDiffSummary, M as show, Mt as getMigrationFiles, Nt as getNextMigrationNumber, P as remove, Q as getExecutorJob, Rt as formatMigrationDiff, St as INITIAL_SCHEMA_NUMBER, Tt as compareLocalTypesWithSnapshot, U as listMachineUsers, Ut as apiCall, W as generate, Y as triggerExecutor, Z as listExecutors, _t as MIGRATION_LABEL_KEY, at as getWorkflow, bt as DB_TYPES_FILE_NAME, c as inviteUser, ct as listWorkflowExecutions, et as listExecutorJobs, f as listWorkspaces, ft as getExecutor, g as deleteWorkspace, gt as waitForExecution, ht as executeScript, i as removeUser, jt as getMigrationFilePath, k as generate$1, kt as getLatestMigrationNumber, m as getWorkspace, n as updateUser, o as listUsers, pt as apply, rt as startWorkflow, st as getWorkflowExecution, tt as watchExecutorJob, u as restoreWorkspace, v as createWorkspace, w as resumeWorkflow, wt as SCHEMA_FILE_NAME, x as getAppHealth, xt as DIFF_FILE_NAME, y as listApps, yt as bundleMigrationScript, z as getOAuth2Client, zt as hasChanges } from "../update-BoNKMti-.mjs";
5
- import { S as initOperatorClient, f as loadAccessToken, h as loadWorkspaceId, i as loadConfig, s as getDistDir, st as logger } from "../application-gWUyKuzv.mjs";
6
- import { n as enumConstantsPlugin } from "../enum-constants-Cwd4qdpa.mjs";
7
- import { n as fileUtilsPlugin } from "../file-utils-cqcpFk87.mjs";
8
- import { n as kyselyTypePlugin } from "../kysely-type-DtUUoAi3.mjs";
9
- import { n as seedPlugin } from "../seed-Dm7lrGZ3.mjs";
4
+ import { $ as listExecutorJobs, At as getMigrationFiles, B as getMachineUserToken, Bt as generateUserTypes, Ct as compareLocalTypesWithSnapshot, D as truncate, Dt as getLatestMigrationNumber, E as listWorkflows, Ft as formatDiffSummary, G as listWebhookExecutors, It as formatMigrationDiff, J as triggerExecutor, L as listOAuth2Clients, Lt as hasChanges, M as show, Ot as getMigrationDirPath, P as remove, Pt as reconstructSnapshotFromMigrations, Rt as getNamespacesWithMigrations, St as SCHEMA_FILE_NAME, Tt as createSnapshotFromLocalTypes, U as listMachineUsers, Vt as apiCall, W as generate, X as listExecutors, Z as getExecutorJob, _t as bundleMigrationScript, bt as INITIAL_SCHEMA_NUMBER, c as inviteUser, dt as getExecutor, et as watchExecutorJob, f as listWorkspaces, ft as apply, g as deleteWorkspace, ht as MIGRATION_LABEL_KEY, i as removeUser, it as getWorkflow, jt as getNextMigrationNumber, k as generate$1, kt as getMigrationFilePath, m as getWorkspace, mt as waitForExecution, n as updateUser, nt as startWorkflow, o as listUsers, ot as getWorkflowExecution, pt as executeScript, st as listWorkflowExecutions, u as restoreWorkspace, v as createWorkspace, vt as DB_TYPES_FILE_NAME, w as resumeWorkflow, wt as compareSnapshots, x as getAppHealth, xt as MIGRATE_FILE_NAME, y as listApps, yt as DIFF_FILE_NAME, z as getOAuth2Client } from "../update-DkpWgrzL.mjs";
5
+ import { _ as loadWorkspaceId, ct as logger, d as getDistDir, i as loadConfig, m as loadAccessToken, w as initOperatorClient } from "../application-Bli2ieqY.mjs";
6
+ import "../package-json-3H5gfhA4.mjs";
7
+ import { n as enumConstantsPlugin } from "../enum-constants-CGVvu3dd.mjs";
8
+ import { n as fileUtilsPlugin } from "../file-utils-GX_tGWl4.mjs";
9
+ import { n as kyselyTypePlugin } from "../kysely-type-Cpq5TNGY.mjs";
10
+ import { n as seedPlugin } from "../seed-CeUEANfQ.mjs";
11
+ import "../telemetry-DuBhnd0X.mjs";
10
12
  import { createRequire, register } from "node:module";
11
13
  import * as fs$1 from "node:fs";
12
14
  import * as path from "pathe";
@@ -14,7 +16,7 @@ import { resolveTSConfig } from "pkg-types";
14
16
  import ml from "multiline-ts";
15
17
  import * as rolldown from "rolldown";
16
18
 
17
- //#region src/cli/utils/seed-chunker.ts
19
+ //#region src/cli/shared/seed-chunker.ts
18
20
  /** Default maximum message size: 3.5MB (conservative limit for gRPC) */
19
21
  const DEFAULT_MAX_MESSAGE_SIZE = 3.5 * 1024 * 1024;
20
22
  /** Reserved bytes for message metadata overhead */
@@ -141,7 +143,7 @@ function byteSize(str) {
141
143
  }
142
144
 
143
145
  //#endregion
144
- //#region src/cli/bundler/seed/seed-bundler.ts
146
+ //#region src/cli/commands/generate/seed/bundler.ts
145
147
  /**
146
148
  * Seed script bundler for TailorDB seed data
147
149
  *