@tailor-platform/sdk 1.33.1 → 1.34.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.
- package/CHANGELOG.md +14 -0
- package/dist/application-CLKuNo-l.mjs +4 -0
- package/dist/{application-CYPU-WIc.mjs → application-CluuzA0-.mjs} +18 -2
- package/dist/application-CluuzA0-.mjs.map +1 -0
- package/dist/cli/index.mjs +291 -40
- package/dist/cli/index.mjs.map +1 -1
- package/dist/cli/lib.d.mts +6 -6
- package/dist/cli/lib.mjs +3 -3
- package/dist/{client-ea1w8SmG.mjs → client-BmQP4kKS.mjs} +1 -1
- package/dist/{client-CYGsf3Zl.mjs → client-CA2NM_4R.mjs} +10 -2
- package/dist/{client-CYGsf3Zl.mjs.map → client-CA2NM_4R.mjs.map} +1 -1
- package/dist/configure/index.d.mts +4 -5
- package/dist/configure/index.mjs +3 -0
- package/dist/configure/index.mjs.map +1 -1
- package/dist/{crash-report-CbueUPaP.mjs → crash-report-Bd2T8BhU.mjs} +1 -1
- package/dist/{crash-report-OXafT1iS.mjs → crash-report-CPkI2-cp.mjs} +2 -2
- package/dist/{crash-report-OXafT1iS.mjs.map → crash-report-CPkI2-cp.mjs.map} +1 -1
- package/dist/{index-DlivLpTN.d.mts → index--9iVDOXn.d.mts} +7 -8
- package/dist/{index-mAV9kYJA.d.mts → index-D4pBPp65.d.mts} +2 -2
- package/dist/{index-0H-YH8Ya.d.mts → index-DTJkkO-t.d.mts} +2 -2
- package/dist/{index-BM2SqNfO.d.mts → index-niQ9Qblw.d.mts} +2 -2
- package/dist/{index-BU6fmwJC.d.mts → index-qVqjEYnr.d.mts} +2 -2
- package/dist/plugin/builtin/enum-constants/index.d.mts +1 -1
- package/dist/plugin/builtin/file-utils/index.d.mts +1 -1
- package/dist/plugin/builtin/kysely-type/index.d.mts +1 -1
- package/dist/plugin/builtin/seed/index.d.mts +1 -1
- package/dist/plugin/index.d.mts +1 -2
- package/dist/{plugin-DQqzlulP.d.mts → plugin-D8hKE6rZ.d.mts} +59 -3
- package/dist/{runtime-CDvdBV66.mjs → runtime-8G74KN_M.mjs} +293 -61
- package/dist/runtime-8G74KN_M.mjs.map +1 -0
- package/dist/utils/test/index.d.mts +2 -2
- package/dist/{workflow.generated-u9MgzqbM.d.mts → workflow.generated-DMt8PNVd.d.mts} +2 -2
- package/docs/cli/auth.md +162 -1
- package/docs/cli-reference.md +9 -6
- package/docs/services/auth.md +115 -0
- package/package.json +1 -1
- package/dist/application-CYPU-WIc.mjs.map +0 -1
- package/dist/application-dnB8CQiT.mjs +0 -4
- package/dist/env-BvIWsJxg.d.mts +0 -30
- package/dist/runtime-CDvdBV66.mjs.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @tailor-platform/sdk
|
|
2
2
|
|
|
3
|
+
## 1.34.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#819](https://github.com/tailor-platform/sdk/pull/819) [`a63948d`](https://github.com/tailor-platform/sdk/commit/a63948de613f43eab7cc1208d23f92c1e15ae31b) Thanks [@toiroakr](https://github.com/toiroakr)! - Add auth connection support for managing OAuth2 connections with external providers
|
|
8
|
+
|
|
9
|
+
- [#855](https://github.com/tailor-platform/sdk/pull/855) [`150296e`](https://github.com/tailor-platform/sdk/commit/150296efbadcfa2dfe011c728c29dbbd63eb5634) Thanks [@dqn](https://github.com/dqn)! - Delegate deploy logic to a shared composite action (tailor-platform/actions/deploy) instead of generating local composite actions
|
|
10
|
+
|
|
11
|
+
## 1.33.2
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- [#899](https://github.com/tailor-platform/sdk/pull/899) [`ce19ee7`](https://github.com/tailor-platform/sdk/commit/ce19ee7dbb5bbf45d13ad06b6a02ea770f17435b) Thanks [@remiposo](https://github.com/remiposo)! - Fix SQL query command rewriting user input, which broke INSERT/UPDATE statements and PascalCase table names
|
|
16
|
+
|
|
3
17
|
## 1.33.1
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
import { l as initOAuth2Client } from "./client-
|
|
2
|
+
import { l as initOAuth2Client } from "./client-CA2NM_4R.mjs";
|
|
3
3
|
import { n as isSdkBranded } from "./brand-0SscafcY.mjs";
|
|
4
4
|
import { n as logger, r as styles } from "./logger-qz-Y4sBV.mjs";
|
|
5
5
|
import { t as readPackageJson } from "./package-json-CfUqjJaQ.mjs";
|
|
@@ -3127,6 +3127,18 @@ function createTailorDBService(params) {
|
|
|
3127
3127
|
};
|
|
3128
3128
|
}
|
|
3129
3129
|
|
|
3130
|
+
//#endregion
|
|
3131
|
+
//#region src/parser/service/auth-connection/schema.ts
|
|
3132
|
+
const AuthConnectionOAuth2ConfigSchema = z.object({
|
|
3133
|
+
providerUrl: z.string().describe("OAuth2 provider URL"),
|
|
3134
|
+
issuerUrl: z.string().describe("OAuth2 issuer URL"),
|
|
3135
|
+
clientId: z.string().describe("OAuth2 client ID"),
|
|
3136
|
+
clientSecret: z.string().describe("OAuth2 client secret"),
|
|
3137
|
+
authUrl: z.string().optional().describe("OAuth2 authorization endpoint override"),
|
|
3138
|
+
tokenUrl: z.string().optional().describe("OAuth2 token endpoint override")
|
|
3139
|
+
});
|
|
3140
|
+
const AuthConnectionConfigSchema = z.object({ type: z.literal("oauth2").describe("Connection type") }).and(AuthConnectionOAuth2ConfigSchema);
|
|
3141
|
+
|
|
3130
3142
|
//#endregion
|
|
3131
3143
|
//#region src/parser/service/field/schema.ts
|
|
3132
3144
|
const TailorFieldTypeSchema = z.enum([
|
|
@@ -3342,6 +3354,7 @@ const AuthConfigBaseSchema = z.object({
|
|
|
3342
3354
|
idProvider: IdProviderSchema.optional().describe("Identity provider configuration"),
|
|
3343
3355
|
scim: SCIMSchema.optional().describe("SCIM provisioning configuration"),
|
|
3344
3356
|
tenantProvider: TenantProviderSchema.optional().describe("Multi-tenant provider configuration"),
|
|
3357
|
+
connections: z.record(z.string(), AuthConnectionConfigSchema).optional().describe("Auth connection definitions for external OAuth2 providers"),
|
|
3345
3358
|
publishSessionEvents: z.boolean().optional().describe("Enable publishing session events")
|
|
3346
3359
|
});
|
|
3347
3360
|
const AuthConfigSchema = z.union([AuthConfigBaseSchema.extend({
|
|
@@ -3369,12 +3382,15 @@ function createAuthService(config, tailorDBServices, externalTailorDBNamespaces)
|
|
|
3369
3382
|
...config,
|
|
3370
3383
|
idProvider: IdProviderSchema.optional().parse(config.idProvider)
|
|
3371
3384
|
};
|
|
3385
|
+
const connections = {};
|
|
3386
|
+
if (config.connections) for (const [name, connConfig] of Object.entries(config.connections)) connections[name] = AuthConnectionConfigSchema.parse(connConfig);
|
|
3372
3387
|
let userProfile;
|
|
3373
3388
|
return {
|
|
3374
3389
|
config,
|
|
3375
3390
|
tailorDBServices,
|
|
3376
3391
|
externalTailorDBNamespaces,
|
|
3377
3392
|
parsedConfig,
|
|
3393
|
+
connections,
|
|
3378
3394
|
get userProfile() {
|
|
3379
3395
|
return userProfile;
|
|
3380
3396
|
},
|
|
@@ -4949,4 +4965,4 @@ async function loadApplication(params) {
|
|
|
4949
4965
|
|
|
4950
4966
|
//#endregion
|
|
4951
4967
|
export { resolveTokens as C, readPlatformConfig as S, writePlatformConfig as T, hashFile as _, loadConfig as a, loadAccessToken as b, createExecutorService as c, TailorDBTypeSchema as d, stringifyFunction as f, getDistDir as g, createBundleCache as h, resolveInlineSourcemap as i, ExecutorSchema as l, loadFilesWithIgnores as m, generatePluginFilesIfNeeded as n, WorkflowJobSchema as o, tailorUserMap as p, loadApplication as r, ResolverSchema as s, defineApplication as t, OAuth2ClientSchema as u, deleteUserTokens as v, saveUserTokens as w, loadWorkspaceId as x, fetchLatestToken as y };
|
|
4952
|
-
//# sourceMappingURL=application-
|
|
4968
|
+
//# sourceMappingURL=application-CluuzA0-.mjs.map
|