@tailor-platform/sdk 1.33.0 → 1.33.2
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.
- package/CHANGELOG.md +64 -0
- package/dist/{application-CfAom-vi.mjs → application-CYPU-WIc.mjs} +30 -23
- package/dist/application-CYPU-WIc.mjs.map +1 -0
- package/dist/application-dnB8CQiT.mjs +4 -0
- package/dist/cli/index.d.mts +2 -2
- package/dist/cli/index.mjs +25 -32
- package/dist/cli/index.mjs.map +1 -1
- package/dist/cli/lib.d.mts +101 -12
- package/dist/cli/lib.mjs +7 -13
- package/dist/cli/lib.mjs.map +1 -1
- package/dist/cli/skills.mjs +0 -1
- package/dist/cli/skills.mjs.map +1 -1
- package/dist/{client-D5P1myz0.mjs → client-CYGsf3Zl.mjs} +91 -27
- package/dist/client-CYGsf3Zl.mjs.map +1 -0
- package/dist/{client-gpRgZl1b.mjs → client-ea1w8SmG.mjs} +1 -4
- package/dist/configure/index.d.mts +5 -5
- package/dist/configure/index.mjs +0 -1
- package/dist/configure/index.mjs.map +1 -1
- package/dist/crash-report-CbueUPaP.mjs +4 -0
- package/dist/{crash-report-DnwITWeV.mjs → crash-report-OXafT1iS.mjs} +3 -3
- package/dist/{crash-report-DnwITWeV.mjs.map → crash-report-OXafT1iS.mjs.map} +1 -1
- package/dist/{enum-constants-Piv_E-2M.mjs → enum-constants-DI85-fPE.mjs} +1 -1
- package/dist/{enum-constants-Piv_E-2M.mjs.map → enum-constants-DI85-fPE.mjs.map} +1 -1
- package/dist/{env-CSZ9CKg7.d.mts → env-BvIWsJxg.d.mts} +2 -2
- package/dist/{file-utils-B7xME5IK.mjs → file-utils-C4rXlOVt.mjs} +1 -1
- package/dist/{file-utils-B7xME5IK.mjs.map → file-utils-C4rXlOVt.mjs.map} +1 -1
- package/dist/{index-dg3Sf-No.d.mts → index-0H-YH8Ya.d.mts} +2 -2
- package/dist/{index-IHl7P_9I.d.mts → index-BM2SqNfO.d.mts} +2 -2
- package/dist/{index-uNv9YJgx.d.mts → index-BU6fmwJC.d.mts} +2 -2
- package/dist/{index-BdlrrjvD.d.mts → index-DlivLpTN.d.mts} +16 -12
- package/dist/{index-Dlpe_4Nd.d.mts → index-mAV9kYJA.d.mts} +2 -2
- package/dist/{interceptor-1LL1gBsF.mjs → interceptor-f7slMkCC.mjs} +1 -2
- package/dist/{interceptor-1LL1gBsF.mjs.map → interceptor-f7slMkCC.mjs.map} +1 -1
- package/dist/kysely/index.d.mts +5 -1
- package/dist/kysely/index.mjs +0 -1
- package/dist/kysely/index.mjs.map +1 -1
- package/dist/{kysely-type-t5MbP7iJ.mjs → kysely-type-BwMqaL3z.mjs} +17 -7
- package/dist/kysely-type-BwMqaL3z.mjs.map +1 -0
- package/dist/{package-json-VqyFvGiP.mjs → package-json-CfUqjJaQ.mjs} +1 -1
- package/dist/{package-json-VqyFvGiP.mjs.map → package-json-CfUqjJaQ.mjs.map} +1 -1
- package/dist/package-json-D5Km1jjt.mjs +4 -0
- package/dist/plugin/builtin/enum-constants/index.d.mts +1 -1
- package/dist/plugin/builtin/enum-constants/index.mjs +1 -2
- package/dist/plugin/builtin/file-utils/index.d.mts +1 -1
- package/dist/plugin/builtin/file-utils/index.mjs +1 -2
- package/dist/plugin/builtin/kysely-type/index.d.mts +1 -1
- package/dist/plugin/builtin/kysely-type/index.mjs +1 -2
- package/dist/plugin/builtin/seed/index.d.mts +1 -1
- package/dist/plugin/builtin/seed/index.mjs +1 -2
- package/dist/plugin/index.d.mts +2 -2
- package/dist/plugin/index.mjs +0 -1
- package/dist/plugin/index.mjs.map +1 -1
- package/dist/{plugin-BC7WQrjm.d.mts → plugin-DQqzlulP.d.mts} +23 -21
- package/dist/{runtime-3P9JFpe9.mjs → runtime-CxDrzUC0.mjs} +28 -19
- package/dist/runtime-CxDrzUC0.mjs.map +1 -0
- package/dist/schema-D27cW0Ca.mjs.map +1 -1
- package/dist/seed/index.mjs +0 -1
- package/dist/seed/index.mjs.map +1 -1
- package/dist/{seed-DtYgudLq.mjs → seed-BZIFDG27.mjs} +1 -1
- package/dist/{seed-DtYgudLq.mjs.map → seed-BZIFDG27.mjs.map} +1 -1
- package/dist/telemetry-C508zIi1.mjs +4 -0
- package/dist/{telemetry-B4sp-dD2.mjs → telemetry-CREcGK8y.mjs} +2 -2
- package/dist/{telemetry-B4sp-dD2.mjs.map → telemetry-CREcGK8y.mjs.map} +1 -1
- package/dist/utils/test/index.d.mts +2 -2
- package/dist/utils/test/index.mjs +0 -2
- package/dist/utils/test/index.mjs.map +1 -1
- package/dist/{workflow.generated-Cd5dsFnf.d.mts → workflow.generated-u9MgzqbM.d.mts} +14 -3
- package/docs/cli/auth.md +1 -1
- package/docs/cli/crash-report.md +1 -1
- package/docs/cli/executor.md +2 -2
- package/docs/cli/secret.md +3 -3
- package/docs/cli/staticwebsite.md +1 -1
- package/docs/cli/tailordb.md +4 -2
- package/docs/cli/user.md +2 -2
- package/docs/cli-reference.md +116 -100
- package/docs/generator/builtin.md +1 -1
- package/docs/services/idp.md +22 -0
- package/package.json +17 -17
- package/dist/application-CfAom-vi.mjs.map +0 -1
- package/dist/application-ChVyhwe-.mjs +0 -12
- package/dist/chunk-COzJYswC.mjs +0 -9
- package/dist/client-D5P1myz0.mjs.map +0 -1
- package/dist/crash-report-Cm9vFmTN.mjs +0 -7
- package/dist/kysely-type-t5MbP7iJ.mjs.map +0 -1
- package/dist/package-json-88x7bPKC.mjs +0 -5
- package/dist/runtime-3P9JFpe9.mjs.map +0 -1
- package/dist/telemetry-DXIGGa6A.mjs +0 -5
package/dist/cli/index.d.mts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/// <reference types="@tailor-platform/function-types" />
|
|
2
|
-
import * as politty from "politty";
|
|
2
|
+
import * as _$politty from "politty";
|
|
3
3
|
|
|
4
4
|
//#region src/cli/index.d.ts
|
|
5
|
-
declare const mainCommand: politty.NonRunnableCommand<undefined, Record<string, never>>;
|
|
5
|
+
declare const mainCommand: _$politty.NonRunnableCommand<undefined, Record<string, never>>;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { mainCommand };
|
|
8
8
|
//# sourceMappingURL=index.d.mts.map
|
package/dist/cli/index.mjs
CHANGED
|
@@ -1,18 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
import "../
|
|
4
|
-
import "../schema-D27cW0Ca.mjs";
|
|
5
|
-
import "../brand-0SscafcY.mjs";
|
|
3
|
+
import { B as PATScope, D as FunctionExecution_Type, N as AuthInvokerSchema, i as fetchAll, l as initOAuth2Client, m as userAgent, n as closeConnectionPool, o as fetchPlatformMachineUserToken, s as fetchUserInfo, u as initOperatorClient } from "../client-CYGsf3Zl.mjs";
|
|
6
4
|
import { n as logger, r as styles } from "../logger-qz-Y4sBV.mjs";
|
|
7
|
-
import { At as functionExecutionStatusToString, B as updateCommand$3, Ct as startCommand, D as resumeCommand, Dt as executionsCommand, E as healthCommand, Ft as executeScript, I as showCommand, J as updateCommand$2, Jt as formatMigrationNumber, K as getCommand$4, L as logBetaWarning, M as truncateCommand, Mt as getCommand$1, P as generateCommand$1, Pt as apply, Q as getCommand$3, Qt as getMigrationFiles, Rt as parseMigrationLabelNumber, Tt as getCommand$5, U as treeCommand, W as listCommand$10, X as listCommand$9, Zt as getMigrationFilePath, _ as getCommand$6, _n as isVerbose, _t as listCommand$6, a as updateCommand$4, bt as jobsCommand, cn as sdkNameLabelKey, d as inviteCommand, en as isValidMigrationNumber, et as deleteCommand$3, fn as apiCommand, ft as generate, gn as deploymentArgs, h as listCommand$14, hn as confirmationArgs, ht as triggerCommand, i as isCLIError, it as listCommand$8, jt as formatKeyValueTable, k as listCommand$11, l as listCommand$13, ln as trnPrefix, lt as tokenCommand, mn as commonArgs, mt as webhookCommand, nt as createCommand$3, on as getNamespacesWithMigrations, ot as getCommand$2, p as restoreCommand, pn as defineAppCommand, r as queryCommand, s as removeCommand, sn as prompt, t as isNativeTypeScriptRuntime, tn as loadDiff, ut as listCommand$7, vn as workspaceArgs, w as listCommand$12, x as createCommand$4, y as deleteCommand$4, z as removeCommand$1 } from "../runtime-
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import "../seed-DtYgudLq.mjs";
|
|
12
|
-
import "../file-utils-B7xME5IK.mjs";
|
|
13
|
-
import "../kysely-type-t5MbP7iJ.mjs";
|
|
14
|
-
import "../telemetry-B4sp-dD2.mjs";
|
|
15
|
-
import { a as JSON_FOOTER_MARKER, i as CRASH_LOG_EXTENSION, o as parseCrashReportConfig, r as sendCrashReport, t as initCrashReporting } from "../crash-report-DnwITWeV.mjs";
|
|
5
|
+
import { At as functionExecutionStatusToString, B as updateCommand$3, Ct as startCommand, D as resumeCommand, Dt as executionsCommand, E as healthCommand, Ft as executeScript, I as showCommand, J as updateCommand$2, Jt as formatMigrationNumber, K as getCommand$4, L as logBetaWarning, M as truncateCommand, Mt as getCommand$1, P as generateCommand$1, Pt as apply, Q as getCommand$3, Qt as getMigrationFiles, Rt as parseMigrationLabelNumber, Tt as getCommand$5, U as treeCommand, W as listCommand$10, X as listCommand$9, Zt as getMigrationFilePath, _ as getCommand$6, _n as isVerbose, _t as listCommand$6, a as updateCommand$4, bt as jobsCommand, cn as sdkNameLabelKey, d as inviteCommand, en as isValidMigrationNumber, et as deleteCommand$3, fn as apiCommand, ft as generate, gn as deploymentArgs, h as listCommand$14, hn as confirmationArgs, ht as triggerCommand, i as isCLIError, it as listCommand$8, jt as formatKeyValueTable, k as listCommand$11, l as listCommand$13, ln as trnPrefix, lt as tokenCommand, mn as commonArgs, mt as webhookCommand, nt as createCommand$3, on as getNamespacesWithMigrations, ot as getCommand$2, p as restoreCommand, pn as defineAppCommand, r as queryCommand, s as removeCommand, sn as prompt, t as isNativeTypeScriptRuntime, tn as loadDiff, ut as listCommand$7, vn as workspaceArgs, w as listCommand$12, x as createCommand$4, y as deleteCommand$4, z as removeCommand$1 } from "../runtime-CxDrzUC0.mjs";
|
|
6
|
+
import { t as readPackageJson } from "../package-json-CfUqjJaQ.mjs";
|
|
7
|
+
import { C as resolveTokens, S as readPlatformConfig, T as writePlatformConfig, a as loadConfig, b as loadAccessToken, g as getDistDir, i as resolveInlineSourcemap, l as ExecutorSchema, o as WorkflowJobSchema, s as ResolverSchema, v as deleteUserTokens, w as saveUserTokens, x as loadWorkspaceId, y as fetchLatestToken } from "../application-CYPU-WIc.mjs";
|
|
8
|
+
import { a as JSON_FOOTER_MARKER, i as CRASH_LOG_EXTENSION, o as parseCrashReportConfig, r as sendCrashReport, t as initCrashReporting } from "../crash-report-OXafT1iS.mjs";
|
|
16
9
|
import { createRequire } from "node:module";
|
|
17
10
|
import { arg, defineCommand, runCommand, runMain } from "politty";
|
|
18
11
|
import { withCompletionCommand } from "politty/completion";
|
|
@@ -52,7 +45,7 @@ const applyCommand = defineAppCommand({
|
|
|
52
45
|
"clean-cache": arg(z.boolean().optional(), { description: "Clean the bundle cache before building" })
|
|
53
46
|
}).strict(),
|
|
54
47
|
run: async (args) => {
|
|
55
|
-
const { initTelemetry } = await import("../telemetry-
|
|
48
|
+
const { initTelemetry } = await import("../telemetry-C508zIi1.mjs");
|
|
56
49
|
await initTelemetry();
|
|
57
50
|
await apply({
|
|
58
51
|
workspaceId: args["workspace-id"],
|
|
@@ -157,8 +150,8 @@ const crashReportCommand = defineCommand({
|
|
|
157
150
|
name: "crash-report",
|
|
158
151
|
description: "Manage crash reports.",
|
|
159
152
|
subCommands: {
|
|
160
|
-
|
|
161
|
-
|
|
153
|
+
list: listCommand$5,
|
|
154
|
+
send: sendCommand
|
|
162
155
|
},
|
|
163
156
|
async run() {
|
|
164
157
|
await runCommand(listCommand$5, []);
|
|
@@ -171,10 +164,10 @@ const executorCommand = defineCommand({
|
|
|
171
164
|
name: "executor",
|
|
172
165
|
description: "Manage executors",
|
|
173
166
|
subCommands: {
|
|
167
|
+
trigger: triggerCommand,
|
|
168
|
+
jobs: jobsCommand,
|
|
174
169
|
list: listCommand$6,
|
|
175
170
|
get: getCommand$1,
|
|
176
|
-
jobs: jobsCommand,
|
|
177
|
-
trigger: triggerCommand,
|
|
178
171
|
webhook: webhookCommand
|
|
179
172
|
},
|
|
180
173
|
async run() {
|
|
@@ -804,7 +797,7 @@ const generateCommand = defineAppCommand({
|
|
|
804
797
|
})
|
|
805
798
|
}).strict(),
|
|
806
799
|
run: async (args) => {
|
|
807
|
-
const { initTelemetry } = await import("../telemetry-
|
|
800
|
+
const { initTelemetry } = await import("../telemetry-C508zIi1.mjs");
|
|
808
801
|
await initTelemetry();
|
|
809
802
|
await generate({
|
|
810
803
|
configPath: args.config,
|
|
@@ -1018,8 +1011,8 @@ const oauth2clientCommand = defineCommand({
|
|
|
1018
1011
|
name: "oauth2client",
|
|
1019
1012
|
description: "Manage OAuth2 clients in your Tailor Platform application.",
|
|
1020
1013
|
subCommands: {
|
|
1021
|
-
|
|
1022
|
-
|
|
1014
|
+
list: listCommand$8,
|
|
1015
|
+
get: getCommand$2
|
|
1023
1016
|
},
|
|
1024
1017
|
async run() {
|
|
1025
1018
|
await runCommand(listCommand$8, []);
|
|
@@ -1671,11 +1664,11 @@ const secretCommand = defineCommand({
|
|
|
1671
1664
|
name: "secret",
|
|
1672
1665
|
description: "Manage Secret Manager vaults and secrets.",
|
|
1673
1666
|
subCommands: {
|
|
1667
|
+
vault: vaultCommand,
|
|
1674
1668
|
create: createSecretCommand,
|
|
1675
|
-
delete: deleteSecretCommand,
|
|
1676
|
-
list: listSecretCommand,
|
|
1677
1669
|
update: updateSecretCommand,
|
|
1678
|
-
|
|
1670
|
+
list: listSecretCommand,
|
|
1671
|
+
delete: deleteSecretCommand
|
|
1679
1672
|
},
|
|
1680
1673
|
async run() {
|
|
1681
1674
|
await runCommand(vaultCommand, []);
|
|
@@ -2135,8 +2128,8 @@ const staticwebsiteCommand = defineCommand({
|
|
|
2135
2128
|
description: "Manage static websites in your workspace.",
|
|
2136
2129
|
subCommands: {
|
|
2137
2130
|
deploy: deployCommand,
|
|
2138
|
-
|
|
2139
|
-
|
|
2131
|
+
list: listCommand$2,
|
|
2132
|
+
get: getCommand
|
|
2140
2133
|
},
|
|
2141
2134
|
async run() {
|
|
2142
2135
|
await runCommand(listCommand$2, []);
|
|
@@ -2836,9 +2829,9 @@ const tailordbCommand = defineCommand({
|
|
|
2836
2829
|
name: "tailordb",
|
|
2837
2830
|
description: "Manage TailorDB tables and data.",
|
|
2838
2831
|
subCommands: {
|
|
2839
|
-
|
|
2832
|
+
truncate: truncateCommand,
|
|
2840
2833
|
migration: migrationCommand,
|
|
2841
|
-
|
|
2834
|
+
erd: erdCommand
|
|
2842
2835
|
}
|
|
2843
2836
|
});
|
|
2844
2837
|
|
|
@@ -3078,9 +3071,9 @@ const patCommand = defineCommand({
|
|
|
3078
3071
|
name: "pat",
|
|
3079
3072
|
description: "Manage personal access tokens.",
|
|
3080
3073
|
subCommands: {
|
|
3074
|
+
list: listCommand,
|
|
3081
3075
|
create: createCommand,
|
|
3082
3076
|
delete: deleteCommand,
|
|
3083
|
-
list: listCommand,
|
|
3084
3077
|
update: updateCommand
|
|
3085
3078
|
},
|
|
3086
3079
|
async run() {
|
|
@@ -3117,8 +3110,8 @@ const userCommand$1 = defineCommand({
|
|
|
3117
3110
|
subCommands: {
|
|
3118
3111
|
current: currentCommand,
|
|
3119
3112
|
list: listCommand$1,
|
|
3120
|
-
|
|
3121
|
-
|
|
3113
|
+
switch: switchCommand,
|
|
3114
|
+
pat: patCommand
|
|
3122
3115
|
},
|
|
3123
3116
|
async run() {
|
|
3124
3117
|
await runCommand(listCommand$1, []);
|
|
@@ -3244,11 +3237,11 @@ runMain(mainCommand, {
|
|
|
3244
3237
|
if (isVerbose() && error.stack) logger.debug(`\nStack trace:\n${error.stack}`);
|
|
3245
3238
|
} else logger.error(`Unknown error: ${error}`);
|
|
3246
3239
|
if (!isCLIError(error) && (!(error instanceof Error) || error instanceof TypeError || error instanceof RangeError)) {
|
|
3247
|
-
const { reportCrash } = await import("../crash-report-
|
|
3240
|
+
const { reportCrash } = await import("../crash-report-CbueUPaP.mjs");
|
|
3248
3241
|
await reportCrash(error, "handledError");
|
|
3249
3242
|
}
|
|
3250
3243
|
}
|
|
3251
|
-
const { shutdownTelemetry } = await import("../telemetry-
|
|
3244
|
+
const { shutdownTelemetry } = await import("../telemetry-C508zIi1.mjs");
|
|
3252
3245
|
await shutdownTelemetry();
|
|
3253
3246
|
}
|
|
3254
3247
|
});
|