@tailor-platform/sdk 1.6.0 → 1.6.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 CHANGED
@@ -1,5 +1,26 @@
1
1
  # @tailor-platform/sdk
2
2
 
3
+ ## 1.6.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [#498](https://github.com/tailor-platform/sdk/pull/498) [`254fb04`](https://github.com/tailor-platform/sdk/commit/254fb048302668cd15298138baa9bff77a90bec5) Thanks [@dqn](https://github.com/dqn)! - Migrate CLI framework from citty to politty
8
+
9
+ ## 1.6.1
10
+
11
+ ### Patch Changes
12
+
13
+ - [#499](https://github.com/tailor-platform/sdk/pull/499) [`b8c3e77`](https://github.com/tailor-platform/sdk/commit/b8c3e77400c86577cd9609924fd0ee29885fe74b) Thanks [@k1LoW](https://github.com/k1LoW)! - Add IdP and Auth event triggers for executor
14
+
15
+ New trigger functions:
16
+
17
+ - `idpUserCreatedTrigger()` - fires when an IdP user is created
18
+ - `idpUserUpdatedTrigger()` - fires when an IdP user is updated
19
+ - `idpUserDeletedTrigger()` - fires when an IdP user is deleted
20
+ - `authAccessTokenIssuedTrigger()` - fires when an access token is issued
21
+ - `authAccessTokenRefreshedTrigger()` - fires when an access token is refreshed
22
+ - `authAccessTokenRevokedTrigger()` - fires when an access token is revoked
23
+
3
24
  ## 1.6.0
4
25
 
5
26
  ### Minor Changes
package/README.md CHANGED
@@ -37,7 +37,7 @@ pnpm add @tailor-platform/sdk
37
37
  Create a new project using the CLI:
38
38
 
39
39
  ```bash
40
- npm create @tailor-platform/sdk my-app --template hello-world
40
+ npm create @tailor-platform/sdk -- --template hello-world my-app
41
41
  cd my-app
42
42
  npm run deploy -- --workspace-id <your-workspace-id>
43
43
  ```
@@ -0,0 +1,5 @@
1
+ import "./chunk-CIV_ash9.mjs";
2
+ import "./auth-0Zh4xp4z.mjs";
3
+ import { t as defineApplication } from "./application-4cO5Zvfo.mjs";
4
+
5
+ export { defineApplication };
@@ -1,10 +1,10 @@
1
1
  import { a as __toCommonJS, i as __require, n as __esmMin, o as __toESM, r as __exportAll, t as __commonJSMin } from "./chunk-CIV_ash9.mjs";
2
2
  import Module, { createRequire } from "node:module";
3
+ import { z } from "zod";
3
4
  import * as fs$15 from "node:fs";
4
5
  import fs from "node:fs";
5
6
  import util, { formatWithOptions } from "node:util";
6
7
  import * as path$20 from "pathe";
7
- import { z } from "zod";
8
8
  import chalk from "chalk";
9
9
  import { createConsola } from "consola";
10
10
  import { formatDistanceToNowStrict } from "date-fns";
@@ -97912,11 +97912,23 @@ const ScheduleTriggerSchema = z.object({
97912
97912
  timezone: z.string().optional().default("UTC")
97913
97913
  });
97914
97914
  const IncomingWebhookTriggerSchema = z.object({ kind: z.literal("incomingWebhook") });
97915
+ const IdpUserTriggerSchema = z.object({ kind: z.enum([
97916
+ "idpUserCreated",
97917
+ "idpUserUpdated",
97918
+ "idpUserDeleted"
97919
+ ]) });
97920
+ const AuthAccessTokenTriggerSchema = z.object({ kind: z.enum([
97921
+ "authAccessTokenIssued",
97922
+ "authAccessTokenRefreshed",
97923
+ "authAccessTokenRevoked"
97924
+ ]) });
97915
97925
  const TriggerSchema = z.discriminatedUnion("kind", [
97916
97926
  RecordTriggerSchema,
97917
97927
  ResolverExecutedTriggerSchema,
97918
97928
  ScheduleTriggerSchema,
97919
- IncomingWebhookTriggerSchema
97929
+ IncomingWebhookTriggerSchema,
97930
+ IdpUserTriggerSchema,
97931
+ AuthAccessTokenTriggerSchema
97920
97932
  ]);
97921
97933
  const FunctionOperationSchema = z.object({
97922
97934
  kind: z.enum(["function", "jobFunction"]),
@@ -98249,4 +98261,4 @@ function defineApplication(config) {
98249
98261
 
98250
98262
  //#endregion
98251
98263
  export { OAuth2ClientSchema as a, tailorUserMap as c, styles as d, symbols as f, ExecutorSchema as i, loadFilesWithIgnores as l, WorkflowJobSchema as n, ResolverSchema as o, WorkflowSchema as r, stringifyFunction as s, defineApplication as t, logger as u };
98252
- //# sourceMappingURL=application-D9mwb5eH.mjs.map
98264
+ //# sourceMappingURL=application-4cO5Zvfo.mjs.map