@tailor-platform/sdk 1.19.0 → 1.21.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 (49) hide show
  1. package/CHANGELOG.md +44 -0
  2. package/dist/{application-A6PZjujv.mjs → application-CEv5c7TU.mjs} +97929 -97634
  3. package/dist/application-CEv5c7TU.mjs.map +1 -0
  4. package/dist/{application-nPS5veK6.mjs → application-DiCzM9b0.mjs} +3 -3
  5. package/dist/cli/index.mjs +118 -63
  6. package/dist/cli/index.mjs.map +1 -1
  7. package/dist/cli/lib.d.mts +117 -58
  8. package/dist/cli/lib.mjs +7 -7
  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 +5 -0
  14. package/dist/configure/index.mjs.map +1 -1
  15. package/dist/{index-B91ZpOcd.d.mts → index-BWVAwea4.d.mts} +2 -2
  16. package/dist/{index-ClLZCbcm.d.mts → index-CnHd6BNg.d.mts} +9 -43
  17. package/dist/{index-DDqKNFh4.d.mts → index-Dn61THJK.d.mts} +2 -2
  18. package/dist/{index-B6pvy1MK.d.mts → index-DxlmLUag.d.mts} +2 -2
  19. package/dist/{index-CPzbMghQ.d.mts → index-oZXVKyfX.d.mts} +2 -2
  20. package/dist/{package-json-DUY2kB6z.mjs → package-json-3H5gfhA4.mjs} +2 -2
  21. package/dist/package-json-3H5gfhA4.mjs.map +1 -0
  22. package/dist/package-json-DTDAqRRJ.mjs +3 -0
  23. package/dist/plugin/builtin/enum-constants/index.d.mts +2 -2
  24. package/dist/plugin/builtin/file-utils/index.d.mts +2 -2
  25. package/dist/plugin/builtin/kysely-type/index.d.mts +2 -2
  26. package/dist/plugin/builtin/seed/index.d.mts +2 -2
  27. package/dist/plugin/builtin/seed/index.mjs +1 -1
  28. package/dist/plugin/index.d.mts +1 -1
  29. package/dist/{seed-CeUEANfQ.mjs → seed-D-rYCN5F.mjs} +2 -2
  30. package/dist/{seed-CeUEANfQ.mjs.map → seed-D-rYCN5F.mjs.map} +1 -1
  31. package/dist/telemetry-Dhzj9Ncm.mjs +3 -0
  32. package/dist/{telemetry-rFq0QdvJ.mjs → telemetry-DuBhnd0X.mjs} +2 -2
  33. package/dist/telemetry-DuBhnd0X.mjs.map +1 -0
  34. package/dist/{types-CJF3Y1x8.d.mts → types-C0o90Cmb.d.mts} +87 -3
  35. package/dist/types-ClK_HJ0G.mjs.map +1 -1
  36. package/dist/{types-CblXasFV.d.mts → types-QKq1usl7.d.mts} +20 -9
  37. package/dist/{update-Cr5c7h1r.mjs → update-9MTRN1UA.mjs} +456 -244
  38. package/dist/update-9MTRN1UA.mjs.map +1 -0
  39. package/dist/utils/test/index.d.mts +3 -3
  40. package/docs/cli/application.md +2 -0
  41. package/docs/services/resolver.md +61 -0
  42. package/docs/services/tailordb.md +55 -0
  43. package/package.json +1 -1
  44. package/dist/application-A6PZjujv.mjs.map +0 -1
  45. package/dist/package-json-DUY2kB6z.mjs.map +0 -1
  46. package/dist/package-json-Dd1AnA5F.mjs +0 -3
  47. package/dist/telemetry-9A1BZqbl.mjs +0 -3
  48. package/dist/telemetry-rFq0QdvJ.mjs.map +0 -1
  49. package/dist/update-Cr5c7h1r.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-CblXasFV.mjs";
3
- import { t as AppConfig } from "../types-CJF3Y1x8.mjs";
4
- import { n as kyselyTypePlugin } from "../index-CPzbMghQ.mjs";
5
- import { n as enumConstantsPlugin } from "../index-B91ZpOcd.mjs";
6
- import { n as fileUtilsPlugin } from "../index-DDqKNFh4.mjs";
7
- import { n as seedPlugin } from "../index-B6pvy1MK.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-QKq1usl7.mjs";
3
+ import { t as AppConfig } from "../types-C0o90Cmb.mjs";
4
+ import { n as kyselyTypePlugin } from "../index-oZXVKyfX.mjs";
5
+ import { n as enumConstantsPlugin } from "../index-BWVAwea4.mjs";
6
+ import { n as fileUtilsPlugin } from "../index-Dn61THJK.mjs";
7
+ import { n as seedPlugin } from "../index-DxlmLUag.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
  */
@@ -11207,6 +11207,52 @@ declare type IdPService = Message<"tailor.v1.IdPService"> & {
11207
11207
  * @generated from field: bool publish_user_events = 6;
11208
11208
  */
11209
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;
11210
11256
  };
11211
11257
  /**
11212
11258
  * @generated from message tailor.v1.IdPClient
@@ -11418,6 +11464,11 @@ declare type CreateIdPServiceRequest = Message<"tailor.v1.CreateIdPServiceReques
11418
11464
  * @generated from field: bool publish_user_events = 6;
11419
11465
  */
11420
11466
  publishUserEvents: boolean;
11467
+
11468
+ /**
11469
+ * @generated from field: tailor.v1.IdPDisableGqlOperations disable_gql_operations = 7;
11470
+ */
11471
+ disableGqlOperations?: IdPDisableGqlOperations;
11421
11472
  };
11422
11473
  /**
11423
11474
  * Describes the message tailor.v1.CreateIdPServiceRequest.
@@ -11476,6 +11527,11 @@ declare type UpdateIdPServiceRequest = Message<"tailor.v1.UpdateIdPServiceReques
11476
11527
  * @generated from field: bool publish_user_events = 6;
11477
11528
  */
11478
11529
  publishUserEvents: boolean;
11530
+
11531
+ /**
11532
+ * @generated from field: tailor.v1.IdPDisableGqlOperations disable_gql_operations = 7;
11533
+ */
11534
+ disableGqlOperations?: IdPDisableGqlOperations;
11479
11535
  };
11480
11536
  /**
11481
11537
  * Describes the message tailor.v1.UpdateIdPServiceRequest.
@@ -15932,7 +15988,7 @@ declare const OperatorService: GenService<{
15932
15988
  };
15933
15989
  }>;
15934
15990
  //#endregion
15935
- //#region src/cli/client.d.ts
15991
+ //#region src/cli/shared/client.d.ts
15936
15992
  type OperatorClient = Client<typeof OperatorService>;
15937
15993
  /**
15938
15994
  * Initialize an Operator client with the given access token.
@@ -16982,7 +17038,7 @@ declare function initOperatorClient(accessToken: string): Promise<Client<_bufbui
16982
17038
  };
16983
17039
  }>>>;
16984
17040
  //#endregion
16985
- //#region src/cli/apply/index.d.ts
17041
+ //#region src/cli/commands/apply/apply.d.ts
16986
17042
  interface ApplyOptions {
16987
17043
  workspaceId?: string;
16988
17044
  profile?: string;
@@ -16990,6 +17046,8 @@ interface ApplyOptions {
16990
17046
  dryRun?: boolean;
16991
17047
  yes?: boolean;
16992
17048
  noSchemaCheck?: boolean;
17049
+ noCache?: boolean;
17050
+ cleanCache?: boolean;
16993
17051
  buildOnly?: boolean;
16994
17052
  }
16995
17053
  /**
@@ -16999,7 +17057,7 @@ interface ApplyOptions {
16999
17057
  */
17000
17058
  declare function apply(options?: ApplyOptions): Promise<void>;
17001
17059
  //#endregion
17002
- //#region src/cli/generator/types.d.ts
17060
+ //#region src/cli/commands/generate/types.d.ts
17003
17061
  interface GeneratedFile {
17004
17062
  path: string;
17005
17063
  content: string;
@@ -17120,13 +17178,13 @@ type TailorDBResolverGenerator<T = unknown, R = unknown, Ts = Record<string, T>,
17120
17178
  /** Full generator (all dependencies) */
17121
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>;
17122
17180
  //#endregion
17123
- //#region src/cli/generator/options.d.ts
17181
+ //#region src/cli/commands/generate/options.d.ts
17124
17182
  type GenerateOptions = {
17125
17183
  configPath?: string;
17126
17184
  watch?: boolean;
17127
17185
  };
17128
17186
  //#endregion
17129
- //#region src/cli/generator/index.d.ts
17187
+ //#region src/cli/commands/generate/service.d.ts
17130
17188
  /**
17131
17189
  * Run code generation using the Tailor configuration and generators.
17132
17190
  * @param options - Generation options
@@ -17134,7 +17192,7 @@ type GenerateOptions = {
17134
17192
  */
17135
17193
  declare function generate(options?: GenerateOptions): Promise<void>;
17136
17194
  //#endregion
17137
- //#region src/cli/type-generator.d.ts
17195
+ //#region src/cli/shared/type-generator.d.ts
17138
17196
  /**
17139
17197
  * Options for generating user type definitions
17140
17198
  */
@@ -17151,7 +17209,7 @@ interface GenerateUserTypesOptions {
17151
17209
  */
17152
17210
  declare function generateUserTypes(options: GenerateUserTypesOptions): Promise<void>;
17153
17211
  //#endregion
17154
- //#region src/cli/show.d.ts
17212
+ //#region src/cli/commands/show.d.ts
17155
17213
  interface ShowOptions {
17156
17214
  workspaceId?: string;
17157
17215
  profile?: string;
@@ -17181,7 +17239,7 @@ interface ShowInfo extends ApplicationInfo, WorkspaceInfo$1 {}
17181
17239
  */
17182
17240
  declare function show(options?: ShowOptions): Promise<ShowInfo>;
17183
17241
  //#endregion
17184
- //#region src/cli/remove.d.ts
17242
+ //#region src/cli/commands/remove.d.ts
17185
17243
  interface RemoveOptions {
17186
17244
  workspaceId?: string;
17187
17245
  profile?: string;
@@ -17194,7 +17252,7 @@ interface RemoveOptions {
17194
17252
  */
17195
17253
  declare function remove(options?: RemoveOptions): Promise<void>;
17196
17254
  //#endregion
17197
- //#region src/cli/workspace/transform.d.ts
17255
+ //#region src/cli/commands/workspace/transform.d.ts
17198
17256
  interface WorkspaceInfo {
17199
17257
  id: string;
17200
17258
  name: string;
@@ -17208,7 +17266,7 @@ interface WorkspaceDetails extends WorkspaceInfo {
17208
17266
  folderId: string;
17209
17267
  }
17210
17268
  //#endregion
17211
- //#region src/cli/workspace/create.d.ts
17269
+ //#region src/cli/commands/workspace/create.d.ts
17212
17270
  /**
17213
17271
  * Schema for workspace creation options
17214
17272
  * - name: 3-63 chars, lowercase alphanumeric and hyphens, cannot start/end with hyphen
@@ -17229,7 +17287,7 @@ type CreateWorkspaceOptions = z.input<typeof createWorkspaceOptionsSchema>;
17229
17287
  */
17230
17288
  declare function createWorkspace(options: CreateWorkspaceOptions): Promise<WorkspaceInfo>;
17231
17289
  //#endregion
17232
- //#region src/cli/workspace/list.d.ts
17290
+ //#region src/cli/commands/workspace/list.d.ts
17233
17291
  interface ListWorkspacesOptions {
17234
17292
  limit?: number;
17235
17293
  }
@@ -17240,7 +17298,7 @@ interface ListWorkspacesOptions {
17240
17298
  */
17241
17299
  declare function listWorkspaces(options?: ListWorkspacesOptions): Promise<WorkspaceInfo[]>;
17242
17300
  //#endregion
17243
- //#region src/cli/workspace/delete.d.ts
17301
+ //#region src/cli/commands/workspace/delete.d.ts
17244
17302
  declare const deleteWorkspaceOptionsSchema: z.ZodObject<{
17245
17303
  workspaceId: z.ZodUUID;
17246
17304
  }, z.core.$strip>;
@@ -17252,7 +17310,7 @@ type DeleteWorkspaceOptions = z.input<typeof deleteWorkspaceOptionsSchema>;
17252
17310
  */
17253
17311
  declare function deleteWorkspace(options: DeleteWorkspaceOptions): Promise<void>;
17254
17312
  //#endregion
17255
- //#region src/cli/workspace/get.d.ts
17313
+ //#region src/cli/commands/workspace/get.d.ts
17256
17314
  declare const getWorkspaceOptionsSchema: z.ZodObject<{
17257
17315
  workspaceId: z.ZodOptional<z.ZodUUID>;
17258
17316
  profile: z.ZodOptional<z.ZodString>;
@@ -17265,7 +17323,7 @@ type GetWorkspaceOptions = z.input<typeof getWorkspaceOptionsSchema>;
17265
17323
  */
17266
17324
  declare function getWorkspace(options: GetWorkspaceOptions): Promise<WorkspaceDetails>;
17267
17325
  //#endregion
17268
- //#region src/cli/workspace/restore.d.ts
17326
+ //#region src/cli/commands/workspace/restore.d.ts
17269
17327
  declare const restoreWorkspaceOptionsSchema: z.ZodObject<{
17270
17328
  workspaceId: z.ZodUUID;
17271
17329
  }, z.core.$strip>;
@@ -17277,14 +17335,14 @@ type RestoreWorkspaceOptions = z.input<typeof restoreWorkspaceOptionsSchema>;
17277
17335
  */
17278
17336
  declare function restoreWorkspace(options: RestoreWorkspaceOptions): Promise<void>;
17279
17337
  //#endregion
17280
- //#region src/cli/workspace/user/transform.d.ts
17338
+ //#region src/cli/commands/workspace/user/transform.d.ts
17281
17339
  interface UserInfo {
17282
17340
  userId: string;
17283
17341
  email: string;
17284
17342
  role: string;
17285
17343
  }
17286
17344
  //#endregion
17287
- //#region src/cli/workspace/user/list.d.ts
17345
+ //#region src/cli/commands/workspace/user/list.d.ts
17288
17346
  declare const listUsersOptionsSchema: z.ZodObject<{
17289
17347
  workspaceId: z.ZodOptional<z.ZodUUID>;
17290
17348
  profile: z.ZodOptional<z.ZodString>;
@@ -17298,7 +17356,7 @@ type ListUsersOptions = z.input<typeof listUsersOptionsSchema>;
17298
17356
  */
17299
17357
  declare function listUsers(options: ListUsersOptions): Promise<UserInfo[]>;
17300
17358
  //#endregion
17301
- //#region src/cli/workspace/user/invite.d.ts
17359
+ //#region src/cli/commands/workspace/user/invite.d.ts
17302
17360
  declare const inviteUserOptionsSchema: z.ZodObject<{
17303
17361
  workspaceId: z.ZodOptional<z.ZodUUID>;
17304
17362
  profile: z.ZodOptional<z.ZodString>;
@@ -17317,7 +17375,7 @@ type InviteUserOptions = z.input<typeof inviteUserOptionsSchema>;
17317
17375
  */
17318
17376
  declare function inviteUser(options: InviteUserOptions): Promise<void>;
17319
17377
  //#endregion
17320
- //#region src/cli/workspace/user/update.d.ts
17378
+ //#region src/cli/commands/workspace/user/update.d.ts
17321
17379
  declare const updateUserOptionsSchema: z.ZodObject<{
17322
17380
  workspaceId: z.ZodOptional<z.ZodUUID>;
17323
17381
  profile: z.ZodOptional<z.ZodString>;
@@ -17336,7 +17394,7 @@ type UpdateUserOptions = z.input<typeof updateUserOptionsSchema>;
17336
17394
  */
17337
17395
  declare function updateUser(options: UpdateUserOptions): Promise<void>;
17338
17396
  //#endregion
17339
- //#region src/cli/workspace/user/remove.d.ts
17397
+ //#region src/cli/commands/workspace/user/remove.d.ts
17340
17398
  declare const removeUserOptionsSchema: z.ZodObject<{
17341
17399
  workspaceId: z.ZodOptional<z.ZodUUID>;
17342
17400
  profile: z.ZodOptional<z.ZodString>;
@@ -17350,7 +17408,7 @@ type RemoveUserOptions = z.input<typeof removeUserOptionsSchema>;
17350
17408
  */
17351
17409
  declare function removeUser(options: RemoveUserOptions): Promise<void>;
17352
17410
  //#endregion
17353
- //#region src/cli/workspace/app/transform.d.ts
17411
+ //#region src/cli/commands/workspace/app/transform.d.ts
17354
17412
  interface AppInfo {
17355
17413
  name: string;
17356
17414
  domain: string;
@@ -17367,7 +17425,7 @@ interface AppHealthInfo {
17367
17425
  lastAttemptError: string;
17368
17426
  }
17369
17427
  //#endregion
17370
- //#region src/cli/workspace/app/list.d.ts
17428
+ //#region src/cli/commands/workspace/app/list.d.ts
17371
17429
  declare const listAppsOptionsSchema: z.ZodObject<{
17372
17430
  workspaceId: z.ZodOptional<z.ZodUUID>;
17373
17431
  profile: z.ZodOptional<z.ZodString>;
@@ -17381,7 +17439,7 @@ type ListAppsOptions = z.input<typeof listAppsOptionsSchema>;
17381
17439
  */
17382
17440
  declare function listApps(options: ListAppsOptions): Promise<AppInfo[]>;
17383
17441
  //#endregion
17384
- //#region src/cli/workspace/app/health.d.ts
17442
+ //#region src/cli/commands/workspace/app/health.d.ts
17385
17443
  declare const healthOptionsSchema: z.ZodObject<{
17386
17444
  workspaceId: z.ZodOptional<z.ZodUUID>;
17387
17445
  profile: z.ZodOptional<z.ZodString>;
@@ -17395,7 +17453,7 @@ type HealthOptions = z.input<typeof healthOptionsSchema>;
17395
17453
  */
17396
17454
  declare function getAppHealth(options: HealthOptions): Promise<AppHealthInfo>;
17397
17455
  //#endregion
17398
- //#region src/cli/machineuser/list.d.ts
17456
+ //#region src/cli/commands/machineuser/list.d.ts
17399
17457
  interface ListMachineUsersOptions {
17400
17458
  workspaceId?: string;
17401
17459
  profile?: string;
@@ -17416,7 +17474,7 @@ interface MachineUserInfo {
17416
17474
  */
17417
17475
  declare function listMachineUsers(options?: ListMachineUsersOptions): Promise<MachineUserInfo[]>;
17418
17476
  //#endregion
17419
- //#region src/cli/machineuser/token.d.ts
17477
+ //#region src/cli/commands/machineuser/token.d.ts
17420
17478
  interface GetMachineUserTokenOptions {
17421
17479
  name: string;
17422
17480
  workspaceId?: string;
@@ -17435,7 +17493,7 @@ interface MachineUserTokenInfo {
17435
17493
  */
17436
17494
  declare function getMachineUserToken(options: GetMachineUserTokenOptions): Promise<MachineUserTokenInfo>;
17437
17495
  //#endregion
17438
- //#region src/cli/oauth2client/transform.d.ts
17496
+ //#region src/cli/commands/oauth2client/transform.d.ts
17439
17497
  interface OAuth2ClientInfo {
17440
17498
  name: string;
17441
17499
  description: string;
@@ -17454,7 +17512,7 @@ interface OAuth2ClientCredentials {
17454
17512
  createdAt: Date | null;
17455
17513
  }
17456
17514
  //#endregion
17457
- //#region src/cli/oauth2client/get.d.ts
17515
+ //#region src/cli/commands/oauth2client/get.d.ts
17458
17516
  interface GetOAuth2ClientOptions {
17459
17517
  name: string;
17460
17518
  workspaceId?: string;
@@ -17468,7 +17526,7 @@ interface GetOAuth2ClientOptions {
17468
17526
  */
17469
17527
  declare function getOAuth2Client(options: GetOAuth2ClientOptions): Promise<OAuth2ClientCredentials>;
17470
17528
  //#endregion
17471
- //#region src/cli/oauth2client/list.d.ts
17529
+ //#region src/cli/commands/oauth2client/list.d.ts
17472
17530
  interface ListOAuth2ClientsOptions {
17473
17531
  workspaceId?: string;
17474
17532
  profile?: string;
@@ -17481,7 +17539,7 @@ interface ListOAuth2ClientsOptions {
17481
17539
  */
17482
17540
  declare function listOAuth2Clients(options?: ListOAuth2ClientsOptions): Promise<OAuth2ClientInfo[]>;
17483
17541
  //#endregion
17484
- //#region src/cli/workflow/transform.d.ts
17542
+ //#region src/cli/commands/workflow/transform.d.ts
17485
17543
  interface WorkflowListInfo {
17486
17544
  name: string;
17487
17545
  mainJob: string;
@@ -17513,7 +17571,7 @@ interface WorkflowExecutionInfo {
17513
17571
  finishedAt: Date | null;
17514
17572
  }
17515
17573
  //#endregion
17516
- //#region src/cli/workflow/list.d.ts
17574
+ //#region src/cli/commands/workflow/list.d.ts
17517
17575
  interface ListWorkflowsOptions {
17518
17576
  workspaceId?: string;
17519
17577
  profile?: string;
@@ -17525,7 +17583,7 @@ interface ListWorkflowsOptions {
17525
17583
  */
17526
17584
  declare function listWorkflows(options?: ListWorkflowsOptions): Promise<WorkflowListInfo[]>;
17527
17585
  //#endregion
17528
- //#region src/cli/workflow/get.d.ts
17586
+ //#region src/cli/commands/workflow/get.d.ts
17529
17587
  type WorkflowLike$2 = {
17530
17588
  name: string;
17531
17589
  };
@@ -17550,7 +17608,7 @@ interface GetWorkflowOptions {
17550
17608
  declare function getWorkflow<W extends WorkflowLike$2>(options: GetWorkflowTypedOptions<W>): Promise<WorkflowInfo>;
17551
17609
  declare function getWorkflow(options: GetWorkflowOptions): Promise<WorkflowInfo>;
17552
17610
  //#endregion
17553
- //#region src/cli/workflow/start.d.ts
17611
+ //#region src/cli/commands/workflow/start.d.ts
17554
17612
  type WorkflowLike$1 = {
17555
17613
  name: string;
17556
17614
  mainJob: {
@@ -17605,7 +17663,7 @@ interface StartWorkflowResultWithWait {
17605
17663
  declare function startWorkflow<W extends WorkflowLike$1>(options: StartWorkflowTypedOptions<W>): Promise<StartWorkflowResultWithWait>;
17606
17664
  declare function startWorkflow(options: StartWorkflowOptions): Promise<StartWorkflowResultWithWait>;
17607
17665
  //#endregion
17608
- //#region src/cli/workflow/executions.d.ts
17666
+ //#region src/cli/commands/workflow/executions.d.ts
17609
17667
  type WorkflowLike = {
17610
17668
  name: string;
17611
17669
  };
@@ -17655,7 +17713,7 @@ declare function listWorkflowExecutions(options?: ListWorkflowExecutionsOptions)
17655
17713
  */
17656
17714
  declare function getWorkflowExecution(options: GetWorkflowExecutionOptions): Promise<GetWorkflowExecutionResult>;
17657
17715
  //#endregion
17658
- //#region src/cli/workflow/resume.d.ts
17716
+ //#region src/cli/commands/workflow/resume.d.ts
17659
17717
  interface ResumeWorkflowOptions {
17660
17718
  executionId: string;
17661
17719
  workspaceId?: string;
@@ -17673,7 +17731,7 @@ interface ResumeWorkflowResultWithWait {
17673
17731
  */
17674
17732
  declare function resumeWorkflow(options: ResumeWorkflowOptions): Promise<ResumeWorkflowResultWithWait>;
17675
17733
  //#endregion
17676
- //#region src/cli/executor/trigger.d.ts
17734
+ //#region src/cli/commands/executor/trigger.d.ts
17677
17735
  type ManualTrigger = IncomingWebhookTrigger | ScheduleTriggerInput;
17678
17736
  type ManualTriggerExecutor<T extends ManualTrigger = ManualTrigger> = T extends ManualTrigger ? {
17679
17737
  name: string;
@@ -17709,7 +17767,7 @@ interface TriggerExecutorResult {
17709
17767
  declare function triggerExecutor<E extends ManualTriggerExecutor>(options: TriggerExecutorTypedOptions<E>): Promise<TriggerExecutorResult>;
17710
17768
  declare function triggerExecutor(options: TriggerExecutorOptions): Promise<TriggerExecutorResult>;
17711
17769
  //#endregion
17712
- //#region src/cli/executor/transform.d.ts
17770
+ //#region src/cli/commands/executor/transform.d.ts
17713
17771
  interface ExecutorJobListInfo {
17714
17772
  id: string;
17715
17773
  executorName: string;
@@ -17749,7 +17807,7 @@ interface ExecutorInfo {
17749
17807
  targetConfig: string;
17750
17808
  }
17751
17809
  //#endregion
17752
- //#region src/cli/executor/jobs.d.ts
17810
+ //#region src/cli/commands/executor/jobs.d.ts
17753
17811
  type ExecutorLike$1 = {
17754
17812
  name: string;
17755
17813
  };
@@ -17846,7 +17904,7 @@ declare function getExecutorJob(options: GetExecutorJobOptions): Promise<Executo
17846
17904
  declare function watchExecutorJob<E extends ExecutorLike$1>(options: WatchExecutorJobTypedOptions<E>): Promise<WatchExecutorJobResult>;
17847
17905
  declare function watchExecutorJob(options: WatchExecutorJobOptions): Promise<WatchExecutorJobResult>;
17848
17906
  //#endregion
17849
- //#region src/cli/executor/list.d.ts
17907
+ //#region src/cli/commands/executor/list.d.ts
17850
17908
  interface ListExecutorsOptions {
17851
17909
  workspaceId?: string;
17852
17910
  profile?: string;
@@ -17858,7 +17916,7 @@ interface ListExecutorsOptions {
17858
17916
  */
17859
17917
  declare function listExecutors(options?: ListExecutorsOptions): Promise<ExecutorListInfo[]>;
17860
17918
  //#endregion
17861
- //#region src/cli/executor/get.d.ts
17919
+ //#region src/cli/commands/executor/get.d.ts
17862
17920
  type ExecutorLike = {
17863
17921
  name: string;
17864
17922
  };
@@ -17883,7 +17941,7 @@ interface GetExecutorOptions {
17883
17941
  declare function getExecutor<E extends ExecutorLike>(options: GetExecutorTypedOptions<E>): Promise<ExecutorInfo>;
17884
17942
  declare function getExecutor(options: GetExecutorOptions): Promise<ExecutorInfo>;
17885
17943
  //#endregion
17886
- //#region src/cli/executor/webhook.d.ts
17944
+ //#region src/cli/commands/executor/webhook.d.ts
17887
17945
  interface WebhookExecutorInfo {
17888
17946
  name: string;
17889
17947
  webhookUrl: string;
@@ -17900,7 +17958,7 @@ interface ListWebhookExecutorsOptions {
17900
17958
  */
17901
17959
  declare function listWebhookExecutors(options?: ListWebhookExecutorsOptions): Promise<WebhookExecutorInfo[]>;
17902
17960
  //#endregion
17903
- //#region src/cli/context.d.ts
17961
+ //#region src/cli/shared/context.d.ts
17904
17962
  type LoadWorkspaceIdOptions = {
17905
17963
  workspaceId?: string;
17906
17964
  profile?: string;
@@ -17929,7 +17987,7 @@ declare function loadWorkspaceId(opts?: LoadWorkspaceIdOptions): string;
17929
17987
  */
17930
17988
  declare function loadAccessToken(opts?: LoadAccessTokenOptions): Promise<string>;
17931
17989
  //#endregion
17932
- //#region src/cli/api.d.ts
17990
+ //#region src/cli/commands/api.d.ts
17933
17991
  interface ApiCallOptions {
17934
17992
  profile?: string;
17935
17993
  endpoint: string;
@@ -17947,7 +18005,7 @@ interface ApiCallResult {
17947
18005
  */
17948
18006
  declare function apiCall(options: ApiCallOptions): Promise<ApiCallResult>;
17949
18007
  //#endregion
17950
- //#region src/cli/tailordb/truncate.d.ts
18008
+ //#region src/cli/commands/tailordb/truncate.d.ts
17951
18009
  interface TruncateOptions {
17952
18010
  workspaceId?: string;
17953
18011
  profile?: string;
@@ -17963,7 +18021,7 @@ interface TruncateOptions {
17963
18021
  */
17964
18022
  declare function truncate(options?: TruncateOptions): Promise<void>;
17965
18023
  //#endregion
17966
- //#region src/cli/tailordb/migrate/generate.d.ts
18024
+ //#region src/cli/commands/tailordb/migrate/generate.d.ts
17967
18025
  interface GenerateOptions$1 {
17968
18026
  configPath?: string;
17969
18027
  name?: string;
@@ -17977,7 +18035,7 @@ interface GenerateOptions$1 {
17977
18035
  */
17978
18036
  declare function generate$1(options: GenerateOptions$1): Promise<void>;
17979
18037
  //#endregion
17980
- //#region src/cli/tailordb/migrate/diff-calculator.d.ts
18038
+ //#region src/cli/commands/tailordb/migrate/diff-calculator.d.ts
17981
18039
  /**
17982
18040
  * Diff calculator and formatter for TailorDB schema migrations
17983
18041
  *
@@ -18058,13 +18116,13 @@ declare function formatMigrationDiff(diff: MigrationDiff): string;
18058
18116
  */
18059
18117
  declare function formatDiffSummary(diff: MigrationDiff): string;
18060
18118
  //#endregion
18061
- //#region src/cli/tailordb/migrate/types.d.ts
18119
+ //#region src/cli/commands/tailordb/migrate/types.d.ts
18062
18120
  /**
18063
18121
  * Label key for storing migration state in TailorDB Service metadata
18064
18122
  */
18065
18123
  declare const MIGRATION_LABEL_KEY = "sdk-migration";
18066
18124
  //#endregion
18067
- //#region src/cli/tailordb/migrate/snapshot.d.ts
18125
+ //#region src/cli/commands/tailordb/migrate/snapshot.d.ts
18068
18126
  /**
18069
18127
  * Initial schema migration number (0000)
18070
18128
  */
@@ -18219,6 +18277,7 @@ interface SnapshotType {
18219
18277
  delete?: boolean;
18220
18278
  read?: boolean;
18221
18279
  };
18280
+ publishEvents?: boolean;
18222
18281
  };
18223
18282
  indexes?: Record<string, SnapshotIndexConfig>;
18224
18283
  files?: Record<string, string>;
@@ -18329,7 +18388,7 @@ declare function compareSnapshots(previous: SchemaSnapshot, current: SchemaSnaps
18329
18388
  */
18330
18389
  declare function compareLocalTypesWithSnapshot(snapshot: SchemaSnapshot, localTypes: Record<string, TailorDBType>, namespace: string): MigrationDiff;
18331
18390
  //#endregion
18332
- //#region src/cli/tailordb/migrate/config.d.ts
18391
+ //#region src/cli/commands/tailordb/migrate/config.d.ts
18333
18392
  /**
18334
18393
  * Namespace with migrations configuration
18335
18394
  */
@@ -18345,7 +18404,7 @@ interface NamespaceWithMigrations {
18345
18404
  */
18346
18405
  declare function getNamespacesWithMigrations(config: AppConfig, configDir: string): NamespaceWithMigrations[];
18347
18406
  //#endregion
18348
- //#region src/cli/utils/seed-chunker.d.ts
18407
+ //#region src/cli/shared/seed-chunker.d.ts
18349
18408
  /**
18350
18409
  * Seed data chunker for splitting large seed data into manageable message sizes.
18351
18410
  *
@@ -18394,7 +18453,7 @@ type ChunkSeedDataOptions = {
18394
18453
  */
18395
18454
  declare function chunkSeedData(options: ChunkSeedDataOptions): SeedChunk[];
18396
18455
  //#endregion
18397
- //#region src/cli/bundler/seed/seed-bundler.d.ts
18456
+ //#region src/cli/commands/generate/seed/bundler.d.ts
18398
18457
  /**
18399
18458
  * Seed script bundler for TailorDB seed data
18400
18459
  *
@@ -18419,7 +18478,7 @@ type SeedBundleResult = {
18419
18478
  */
18420
18479
  declare function bundleSeedScript(namespace: string, typeNames: string[]): Promise<SeedBundleResult>;
18421
18480
  //#endregion
18422
- //#region src/cli/bundler/migration/migration-bundler.d.ts
18481
+ //#region src/cli/commands/tailordb/migrate/bundler.d.ts
18423
18482
  /**
18424
18483
  * Migration script bundler for TailorDB migrations
18425
18484
  *
@@ -18445,7 +18504,7 @@ interface MigrationBundleResult {
18445
18504
  */
18446
18505
  declare function bundleMigrationScript(sourceFile: string, namespace: string, migrationNumber: number): Promise<MigrationBundleResult>;
18447
18506
  //#endregion
18448
- //#region src/cli/utils/script-executor.d.ts
18507
+ //#region src/cli/shared/script-executor.d.ts
18449
18508
  /**
18450
18509
  * Options for script execution
18451
18510
  */
package/dist/cli/lib.mjs CHANGED
@@ -1,14 +1,14 @@
1
1
  import "../chunk-CqAI0b6X.mjs";
2
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-Cr5c7h1r.mjs";
5
- import { S as initOperatorClient, f as loadAccessToken, h as loadWorkspaceId, i as loadConfig, ot as logger, s as getDistDir } from "../application-A6PZjujv.mjs";
6
- import "../package-json-DUY2kB6z.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-9MTRN1UA.mjs";
5
+ import { _ as loadWorkspaceId, ct as logger, d as getDistDir, i as loadConfig, m as loadAccessToken, w as initOperatorClient } from "../application-CEv5c7TU.mjs";
6
+ import "../package-json-3H5gfhA4.mjs";
7
7
  import { n as enumConstantsPlugin } from "../enum-constants-CGVvu3dd.mjs";
8
8
  import { n as fileUtilsPlugin } from "../file-utils-GX_tGWl4.mjs";
9
9
  import { n as kyselyTypePlugin } from "../kysely-type-Cpq5TNGY.mjs";
10
- import { n as seedPlugin } from "../seed-CeUEANfQ.mjs";
11
- import "../telemetry-rFq0QdvJ.mjs";
10
+ import { n as seedPlugin } from "../seed-D-rYCN5F.mjs";
11
+ import "../telemetry-DuBhnd0X.mjs";
12
12
  import { createRequire, register } from "node:module";
13
13
  import * as fs$1 from "node:fs";
14
14
  import * as path from "pathe";
@@ -16,7 +16,7 @@ import { resolveTSConfig } from "pkg-types";
16
16
  import ml from "multiline-ts";
17
17
  import * as rolldown from "rolldown";
18
18
 
19
- //#region src/cli/utils/seed-chunker.ts
19
+ //#region src/cli/shared/seed-chunker.ts
20
20
  /** Default maximum message size: 3.5MB (conservative limit for gRPC) */
21
21
  const DEFAULT_MAX_MESSAGE_SIZE = 3.5 * 1024 * 1024;
22
22
  /** Reserved bytes for message metadata overhead */
@@ -143,7 +143,7 @@ function byteSize(str) {
143
143
  }
144
144
 
145
145
  //#endregion
146
- //#region src/cli/bundler/seed/seed-bundler.ts
146
+ //#region src/cli/commands/generate/seed/bundler.ts
147
147
  /**
148
148
  * Seed script bundler for TailorDB seed data
149
149
  *