@tailor-platform/sdk 1.22.0 → 1.24.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (69) hide show
  1. package/CHANGELOG.md +74 -0
  2. package/dist/app-config-BNKHurwr.d.mts +174 -0
  3. package/dist/{application-CTQe2HSB.mjs → application-DThE2HW7.mjs} +200 -215
  4. package/dist/application-DThE2HW7.mjs.map +1 -0
  5. package/dist/application-P1by1htu.mjs +8 -0
  6. package/dist/{brand-DyPrAzpM.mjs → brand-64NrPh_e.mjs} +1 -1
  7. package/dist/{brand-DyPrAzpM.mjs.map → brand-64NrPh_e.mjs.map} +1 -1
  8. package/dist/cli/index.d.mts +0 -1
  9. package/dist/cli/index.mjs +7 -7
  10. package/dist/cli/index.mjs.map +1 -1
  11. package/dist/cli/lib.d.mts +8 -9
  12. package/dist/cli/lib.mjs +7 -7
  13. package/dist/cli/lib.mjs.map +1 -1
  14. package/dist/cli/skills.d.mts +0 -1
  15. package/dist/configure/index.d.mts +5 -5
  16. package/dist/configure/index.mjs +3 -3
  17. package/dist/configure/index.mjs.map +1 -1
  18. package/dist/enum-constants-B5Nl-yzx.mjs.map +1 -1
  19. package/dist/env-CHwmMyfF.d.mts +32 -0
  20. package/dist/file-utils-sEOwAdJ4.mjs.map +1 -1
  21. package/dist/{index-Cwi86SUR.d.mts → index-BrIZ1rm2.d.mts} +2 -3
  22. package/dist/{index-BiutQT7m.d.mts → index-Df0aH5zp.d.mts} +55 -5
  23. package/dist/{index-DPN_P0w3.d.mts → index-DhtKJmgi.d.mts} +2 -3
  24. package/dist/{index-ClS0NClx.d.mts → index-DkRJwNw2.d.mts} +2 -3
  25. package/dist/{index-BGPX26_D.d.mts → index-zZUL7_2B.d.mts} +2 -3
  26. package/dist/{interceptor-DiARwPfw.mjs → interceptor-B-0OmiDZ.mjs} +1 -1
  27. package/dist/{interceptor-DiARwPfw.mjs.map → interceptor-B-0OmiDZ.mjs.map} +1 -1
  28. package/dist/{job-CRavYLLk.mjs → job-CnqcfVTI.mjs} +2 -2
  29. package/dist/{job-CRavYLLk.mjs.map → job-CnqcfVTI.mjs.map} +1 -1
  30. package/dist/kysely/index.d.mts +0 -1
  31. package/dist/kysely-type-CSlcwNFH.mjs.map +1 -1
  32. package/dist/{package-json-iVBhE5Ef.mjs → package-json-4G3gLWMd.mjs} +1 -1
  33. package/dist/{package-json-iVBhE5Ef.mjs.map → package-json-4G3gLWMd.mjs.map} +1 -1
  34. package/dist/package-json-BqvUKPBM.mjs +3 -0
  35. package/dist/plugin/builtin/enum-constants/index.d.mts +2 -3
  36. package/dist/plugin/builtin/file-utils/index.d.mts +2 -3
  37. package/dist/plugin/builtin/kysely-type/index.d.mts +2 -3
  38. package/dist/plugin/builtin/seed/index.d.mts +2 -3
  39. package/dist/plugin/builtin/seed/index.mjs +1 -1
  40. package/dist/plugin/index.d.mts +2 -2
  41. package/dist/plugin/index.mjs.map +1 -1
  42. package/dist/{types-bcuNRo1Y.d.mts → plugin-CE-BZZgX.d.mts} +1069 -1763
  43. package/dist/{query-Bz2oDGhw.mjs → query-CV5n7DRd.mjs} +496 -115
  44. package/dist/query-CV5n7DRd.mjs.map +1 -0
  45. package/dist/{schema-Cjm-OvPF.mjs → schema-0ByCZ2Ym.mjs} +2 -2
  46. package/dist/schema-0ByCZ2Ym.mjs.map +1 -0
  47. package/dist/{seed-CXvCW3Xc.mjs → seed-Cl5QXYsL.mjs} +13 -3
  48. package/dist/seed-Cl5QXYsL.mjs.map +1 -0
  49. package/dist/{telemetry-C46fds1l.mjs → telemetry-BPviAbME.mjs} +2 -2
  50. package/dist/{telemetry-C46fds1l.mjs.map → telemetry-BPviAbME.mjs.map} +1 -1
  51. package/dist/telemetry-Dq5FZUH0.mjs +3 -0
  52. package/dist/utils/test/index.d.mts +3 -4
  53. package/dist/utils/test/index.mjs +2 -2
  54. package/docs/cli/tailordb.md +1 -1
  55. package/docs/cli-reference.md +8 -8
  56. package/docs/services/auth.md +2 -2
  57. package/package.json +27 -25
  58. package/postinstall.mjs +4 -14
  59. package/dist/application-CTQe2HSB.mjs.map +0 -1
  60. package/dist/application-DdSu3baZ.mjs +0 -8
  61. package/dist/package-json-BI0ng3_5.mjs +0 -3
  62. package/dist/query-Bz2oDGhw.mjs.map +0 -1
  63. package/dist/schema-Cjm-OvPF.mjs.map +0 -1
  64. package/dist/seed-CXvCW3Xc.mjs.map +0 -1
  65. package/dist/telemetry-BAxP8-PR.mjs +0 -3
  66. package/dist/types-CBTSg-LK.mjs +0 -13
  67. package/dist/types-CBTSg-LK.mjs.map +0 -1
  68. package/dist/types-DVMQNdTs.d.mts +0 -246
  69. package/dist/user-defined.d.ts +0 -13
@@ -0,0 +1,8 @@
1
+ import "./brand-64NrPh_e.mjs";
2
+ import { n as generatePluginFilesIfNeeded, r as loadApplication, t as defineApplication } from "./application-DThE2HW7.mjs";
3
+ import "./package-json-4G3gLWMd.mjs";
4
+ import "./seed-Cl5QXYsL.mjs";
5
+ import "./file-utils-sEOwAdJ4.mjs";
6
+ import "./kysely-type-CSlcwNFH.mjs";
7
+
8
+ export { defineApplication };
@@ -25,4 +25,4 @@ function isSdkBranded(value) {
25
25
 
26
26
  //#endregion
27
27
  export { isSdkBranded as n, brandValue as t };
28
- //# sourceMappingURL=brand-DyPrAzpM.mjs.map
28
+ //# sourceMappingURL=brand-64NrPh_e.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"brand-DyPrAzpM.mjs","names":[],"sources":["../src/utils/brand.ts"],"sourcesContent":["// Symbol.for ensures the same symbol is returned across different ESM module instances,\n// avoiding identity mismatches when multiple copies of the SDK are loaded.\nexport const SDK_BRAND: unique symbol = Symbol.for(\"tailor-platform/sdk\");\n\n/**\n * Adds a non-enumerable SDK brand symbol to the given object (in-place).\n * @param value - The object to brand\n * @returns The same object with the brand applied\n */\nexport function brandValue<T extends object>(value: T): T {\n Object.defineProperty(value, SDK_BRAND, {\n value: true,\n enumerable: false,\n configurable: false,\n writable: false,\n });\n return value;\n}\n\n/**\n * Checks whether the given value has been branded by the SDK.\n * @param value - The value to check\n * @returns True if the value has the SDK brand symbol\n */\nexport function isSdkBranded(value: unknown): boolean {\n return value !== null && typeof value === \"object\" && SDK_BRAND in value;\n}\n"],"mappings":";AAEA,MAAa,YAA2B,OAAO,IAAI,sBAAsB;;;;;;AAOzE,SAAgB,WAA6B,OAAa;AACxD,QAAO,eAAe,OAAO,WAAW;EACtC,OAAO;EACP,YAAY;EACZ,cAAc;EACd,UAAU;EACX,CAAC;AACF,QAAO;;;;;;;AAQT,SAAgB,aAAa,OAAyB;AACpD,QAAO,UAAU,QAAQ,OAAO,UAAU,YAAY,aAAa"}
1
+ {"version":3,"file":"brand-64NrPh_e.mjs","names":[],"sources":["../src/utils/brand.ts"],"sourcesContent":["// Symbol.for ensures the same symbol is returned across different ESM module instances,\n// avoiding identity mismatches when multiple copies of the SDK are loaded.\nexport const SDK_BRAND: unique symbol = Symbol.for(\"tailor-platform/sdk\");\n\n/**\n * Adds a non-enumerable SDK brand symbol to the given object (in-place).\n * @param value - The object to brand\n * @returns The same object with the brand applied\n */\nexport function brandValue<T extends object>(value: T): T {\n Object.defineProperty(value, SDK_BRAND, {\n value: true,\n enumerable: false,\n configurable: false,\n writable: false,\n });\n return value;\n}\n\n/**\n * Checks whether the given value has been branded by the SDK.\n * @param value - The value to check\n * @returns True if the value has the SDK brand symbol\n */\nexport function isSdkBranded(value: unknown): boolean {\n return value !== null && typeof value === \"object\" && SDK_BRAND in value;\n}\n"],"mappings":";AAEA,MAAa,YAA2B,OAAO,IAAI,sBAAsB;;;;;;AAOzE,SAAgB,WAA6B,OAAa;AACxD,QAAO,eAAe,OAAO,WAAW;EACtC,OAAO;EACP,YAAY;EACZ,cAAc;EACd,UAAU;EACX,CAAC;AACF,QAAO;;;;;;;AAQT,SAAgB,aAAa,OAAyB;AACpD,QAAO,UAAU,QAAQ,OAAO,UAAU,YAAY,aAAa"}
@@ -1,4 +1,3 @@
1
- /// <reference path="./../user-defined.d.ts" />
2
1
  #!/usr/bin/env node
3
2
  import * as politty0 from "politty";
4
3
 
@@ -1,13 +1,13 @@
1
1
  #!/usr/bin/env node
2
- import "../schema-Cjm-OvPF.mjs";
3
- import "../brand-DyPrAzpM.mjs";
4
- import { A as truncateCommand, B as getCommand$2, Bt as getNamespacesWithMigrations, D as listCommand$8, F as showCommand, Ft as loadDiff, Gt as commonArgs, J as webhookCommand, Jt as jsonArgs, K as generate, Kt as confirmationArgs, L as removeCommand$1, M as generateCommand$1, Mt as getMigrationFiles, N as logBetaWarning, Ot as formatMigrationNumber, Pt as isValidMigrationNumber, R as listCommand$7, S as listCommand$9, T as resumeCommand, U as tokenCommand, Vt as trnPrefix, W as listCommand$6, Wt as apiCommand, Xt as workspaceArgs, Y as triggerCommand, Yt as withCommonArgs, Z as listCommand$5, _ as deleteCommand$3, a as removeCommand, at as getCommand$3, d as restoreCommand, dt as formatKeyValueTable, et as jobsCommand, ft as getCommand$1, h as getCommand$4, ht as executeScript, jt as getMigrationFilePath, l as inviteCommand, mt as apply, n as queryCommand, p as listCommand$11, qt as deploymentArgs, r as updateCommand$2, rt as startCommand, s as listCommand$10, st as executionsCommand, ut as functionExecutionStatusToString, vt as parseMigrationLabelNumber, w as healthCommand, y as createCommand$3 } from "../query-Bz2oDGhw.mjs";
5
- import { C as readPlatformConfig, D as fetchUserInfo, G as FunctionExecution_Type, O as initOAuth2Client, S as loadWorkspaceId, T as fetchAll, X as AuthInvokerSchema, a as loadConfig, c as ExecutorSchema, g as getDistDir, i as resolveInlineSourcemap, k as initOperatorClient, mt as styles, o as WorkflowJobSchema, pt as logger, rt as PATScope, u as ResolverSchema, v as fetchLatestToken, w as writePlatformConfig, y as loadAccessToken } from "../application-CTQe2HSB.mjs";
6
- import { t as readPackageJson } from "../package-json-iVBhE5Ef.mjs";
2
+ import "../schema-0ByCZ2Ym.mjs";
3
+ import "../brand-64NrPh_e.mjs";
4
+ import { A as truncateCommand, B as getCommand$2, Bt as getNamespacesWithMigrations, D as listCommand$8, F as showCommand, Ft as loadDiff, Gt as commonArgs, J as webhookCommand, Jt as jsonArgs, K as generate, Kt as confirmationArgs, L as removeCommand$1, M as generateCommand$1, Mt as getMigrationFiles, N as logBetaWarning, Ot as formatMigrationNumber, Pt as isValidMigrationNumber, R as listCommand$7, S as listCommand$9, T as resumeCommand, U as tokenCommand, Vt as trnPrefix, W as listCommand$6, Wt as apiCommand, Xt as workspaceArgs, Y as triggerCommand, Yt as withCommonArgs, Z as listCommand$5, _ as deleteCommand$3, a as removeCommand, at as getCommand$3, d as restoreCommand, dt as formatKeyValueTable, et as jobsCommand, ft as getCommand$1, h as getCommand$4, ht as executeScript, jt as getMigrationFilePath, l as inviteCommand, mt as apply, n as queryCommand, p as listCommand$11, qt as deploymentArgs, r as updateCommand$2, rt as startCommand, s as listCommand$10, st as executionsCommand, ut as functionExecutionStatusToString, vt as parseMigrationLabelNumber, w as healthCommand, y as createCommand$3 } from "../query-CV5n7DRd.mjs";
5
+ import { C as readPlatformConfig, D as fetchUserInfo, G as FunctionExecution_Type, O as initOAuth2Client, S as loadWorkspaceId, T as fetchAll, X as AuthInvokerSchema, a as loadConfig, c as ExecutorSchema, g as getDistDir, i as resolveInlineSourcemap, k as initOperatorClient, mt as styles, o as WorkflowJobSchema, pt as logger, rt as PATScope, u as ResolverSchema, v as fetchLatestToken, w as writePlatformConfig, y as loadAccessToken } from "../application-DThE2HW7.mjs";
6
+ import { t as readPackageJson } from "../package-json-4G3gLWMd.mjs";
7
+ import "../seed-Cl5QXYsL.mjs";
7
8
  import "../file-utils-sEOwAdJ4.mjs";
8
9
  import "../kysely-type-CSlcwNFH.mjs";
9
- import "../seed-CXvCW3Xc.mjs";
10
- import "../telemetry-C46fds1l.mjs";
10
+ import "../telemetry-BPviAbME.mjs";
11
11
  import { createRequire, register } from "node:module";
12
12
  import { arg, defineCommand, runCommand, runMain } from "politty";
13
13
  import { withCompletionCommand } from "politty/completion";