twenty-sdk 2.1.0 → 2.2.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.
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("typescript"),o=require("./uninstall-CYiYoBPe.js"),c=n=>{switch(n.kind){case e.SyntaxKind.NumberKeyword:return{type:"number"};case e.SyntaxKind.StringKeyword:return{type:"string"};case e.SyntaxKind.BooleanKeyword:return{type:"boolean"};case e.SyntaxKind.ArrayType:return{type:"array",items:c(n.elementType)};case e.SyntaxKind.ObjectKeyword:return{type:"object"};case e.SyntaxKind.TypeLiteral:{const i={};return n.members.forEach(t=>{if(o.o(t.name)&&o.o(t.type)){const r=t.name.text;i[r]=c(t.type)}}),{type:"object",properties:i}}case e.SyntaxKind.UnionType:{const i=n,t=[];let r=!0;return i.types.forEach(a=>{if(a.kind===e.SyntaxKind.LiteralType){const y=a.literal;y.kind===e.SyntaxKind.StringLiteral?t.push(y.text):r=!1}else r=!1}),r?{type:"string",enum:t}:{}}default:return{}}},s=(n,i)=>n.parameters.reduce((t,r)=>{const a=r.type;return o.o(a)?[...t,c(a)]:[...t,{}]},i),d=n=>n.kind===e.SyntaxKind.FunctionDeclaration?[n]:n.kind===e.SyntaxKind.VariableStatement?n.declarationList.declarations.filter(i=>o.o(i.initializer)&&i.initializer.kind===e.SyntaxKind.ArrowFunction).map(i=>i.initializer):[],l=n=>{const i=e.createSourceFile("temp.ts",n,e.ScriptTarget.ESNext,!0);let t=[];return i.forEachChild(r=>{(r.kind===e.SyntaxKind.FunctionDeclaration||r.kind===e.SyntaxKind.VariableStatement)&&d(r).forEach(a=>{t=s(a,t)})}),t};exports.getFunctionInputSchema=l;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("typescript"),o=require("./uninstall-D3my_KZK.js"),c=n=>{switch(n.kind){case e.SyntaxKind.NumberKeyword:return{type:"number"};case e.SyntaxKind.StringKeyword:return{type:"string"};case e.SyntaxKind.BooleanKeyword:return{type:"boolean"};case e.SyntaxKind.ArrayType:return{type:"array",items:c(n.elementType)};case e.SyntaxKind.ObjectKeyword:return{type:"object"};case e.SyntaxKind.TypeLiteral:{const i={};return n.members.forEach(t=>{if(o.o(t.name)&&o.o(t.type)){const r=t.name.text;i[r]=c(t.type)}}),{type:"object",properties:i}}case e.SyntaxKind.UnionType:{const i=n,t=[];let r=!0;return i.types.forEach(a=>{if(a.kind===e.SyntaxKind.LiteralType){const y=a.literal;y.kind===e.SyntaxKind.StringLiteral?t.push(y.text):r=!1}else r=!1}),r?{type:"string",enum:t}:{}}default:return{}}},s=(n,i)=>n.parameters.reduce((t,r)=>{const a=r.type;return o.o(a)?[...t,c(a)]:[...t,{}]},i),d=n=>n.kind===e.SyntaxKind.FunctionDeclaration?[n]:n.kind===e.SyntaxKind.VariableStatement?n.declarationList.declarations.filter(i=>o.o(i.initializer)&&i.initializer.kind===e.SyntaxKind.ArrowFunction).map(i=>i.initializer):[],l=n=>{const i=e.createSourceFile("temp.ts",n,e.ScriptTarget.ESNext,!0);let t=[];return i.forEachChild(r=>{(r.kind===e.SyntaxKind.FunctionDeclaration||r.kind===e.SyntaxKind.VariableStatement)&&d(r).forEach(a=>{t=s(a,t)})}),t};exports.getFunctionInputSchema=l;
@@ -1,5 +1,5 @@
1
1
  import { createSourceFile as p, ScriptTarget as l, SyntaxKind as t } from "typescript";
2
- import { o } from "./uninstall-Bw-TK4rL.mjs";
2
+ import { t as o } from "./uninstall-DXr3k3Da.mjs";
3
3
  const c = (r) => {
4
4
  switch (r.kind) {
5
5
  case t.NumberKeyword:
@@ -10,29 +10,16 @@ declare enum HTTPMethod {
10
10
  DELETE = "DELETE"
11
11
  }
12
12
 
13
- /**
14
- * AWS HTTP API v2 compatible request format for logic functions
15
- * @see https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api-develop-integrations-lambda.html
16
- *
17
- * @typeParam TBody - The type of the request body. Defaults to `object` for parsed JSON bodies.
18
- */
19
13
  type LogicFunctionEvent<TBody = object> = {
20
- /** HTTP headers (filtered by forwardedRequestHeaders in route trigger) */
21
14
  headers: Record<string, string | undefined>;
22
- /** Query string parameters (multiple values are joined with commas, e.g., "1,2,3") */
23
15
  queryStringParameters: Record<string, string | undefined>;
24
- /** Path parameters extracted from the route pattern (e.g., /users/:id → { id: '123' }). Multiple values are joined with commas. */
25
16
  pathParameters: Record<string, string | undefined>;
26
- /** Request body */
27
17
  body: TBody | null;
28
- /** Whether the body is base64 encoded */
18
+ rawBody?: string;
29
19
  isBase64Encoded: boolean;
30
- /** Request context containing HTTP method, path, and other metadata */
31
20
  requestContext: {
32
21
  http: {
33
- /** HTTP method (GET, POST, PUT, PATCH, DELETE) */
34
22
  method: string;
35
- /** Raw request path (e.g., /users/123) */
36
23
  path: string;
37
24
  };
38
25
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./uninstall-CYiYoBPe.js"),a=async t=>(t?.remote&&e.ConfigService.setActiveRemote(t.remote),await new e.ConfigService().clearConfig(),{success:!0,data:void 0}),n=t=>e.runSafe(()=>a(t),e.AUTH_ERROR_CODES.AUTH_FAILED);exports.APP_ERROR_CODES=e.APP_ERROR_CODES;exports.AUTH_ERROR_CODES=e.AUTH_ERROR_CODES;exports.ConfigService=e.ConfigService;exports.FUNCTION_ERROR_CODES=e.FUNCTION_ERROR_CODES;exports.SERVER_ERROR_CODES=e.SERVER_ERROR_CODES;exports.appBuild=e.appBuild;exports.appDeploy=e.appDeploy;exports.appDevOnce=e.appDevOnce;exports.appInstall=e.appInstall;exports.appPublish=e.appPublish;exports.appUninstall=e.appUninstall;exports.authLogin=e.authLogin;exports.authLoginOAuth=e.authLoginOAuth;exports.detectLocalServer=e.detectLocalServer;exports.functionExecute=e.functionExecute;exports.serverStart=e.serverStart;exports.authLogout=n;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./uninstall-D3my_KZK.js"),n=async t=>(t?.remote&&e.ConfigService.setActiveRemote(t.remote),await new e.ConfigService().clearConfig(),{success:!0,data:void 0}),i=t=>e.runSafe(()=>n(t),e.AUTH_ERROR_CODES.AUTH_FAILED);exports.APP_ERROR_CODES=e.APP_ERROR_CODES;exports.AUTH_ERROR_CODES=e.AUTH_ERROR_CODES;exports.ConfigService=e.ConfigService;exports.FUNCTION_ERROR_CODES=e.FUNCTION_ERROR_CODES;exports.SERVER_ERROR_CODES=e.SERVER_ERROR_CODES;exports.appBuild=e.appBuild;exports.appDeploy=e.appDeploy;exports.appDevOnce=e.appDevOnce;exports.appInstall=e.appInstall;exports.appPublish=e.appPublish;exports.appUninstall=e.appUninstall;exports.authLogin=e.authLogin;exports.authLoginOAuth=e.authLoginOAuth;exports.checkDockerRunning=e.checkDockerRunning;exports.containerExists=e.containerExists;exports.detectLocalServer=e.detectLocalServer;exports.functionExecute=e.functionExecute;exports.getContainerDigest=e.getContainerDigest;exports.getImageDigest=e.getImageDigest;exports.getImageForVersion=e.getImageForVersion;exports.serverStart=e.serverStart;exports.serverUpgrade=e.serverUpgrade;exports.authLogout=i;
@@ -1,22 +1,28 @@
1
- import { r as s, A as t, C as e } from "./uninstall-Bw-TK4rL.mjs";
2
- import { a as u, F as R, S as E, b as S, c as O, d as f, e as g, f as l, g as _, h as v, i as A, j as C, k as h, s as D } from "./uninstall-Bw-TK4rL.mjs";
3
- const o = async (a) => (a?.remote && e.setActiveRemote(a.remote), await new e().clearConfig(), { success: !0, data: void 0 }), c = (a) => s(() => o(a), t.AUTH_FAILED);
1
+ import { r as s, A as t, C as a } from "./uninstall-DXr3k3Da.mjs";
2
+ import { a as p, F as u, S as R, b as E, c as S, d as O, e as f, f as l, g as D, h as m, i as v, j as C, k as _, l as h, m as A, n as d, o as L, p as I, s as U, q as x } from "./uninstall-DXr3k3Da.mjs";
3
+ const r = async (e) => (e?.remote && a.setActiveRemote(e.remote), await new a().clearConfig(), { success: !0, data: void 0 }), i = (e) => s(() => r(e), t.AUTH_FAILED);
4
4
  export {
5
- u as APP_ERROR_CODES,
5
+ p as APP_ERROR_CODES,
6
6
  t as AUTH_ERROR_CODES,
7
- e as ConfigService,
8
- R as FUNCTION_ERROR_CODES,
9
- E as SERVER_ERROR_CODES,
10
- S as appBuild,
11
- O as appDeploy,
12
- f as appDevOnce,
13
- g as appInstall,
7
+ a as ConfigService,
8
+ u as FUNCTION_ERROR_CODES,
9
+ R as SERVER_ERROR_CODES,
10
+ E as appBuild,
11
+ S as appDeploy,
12
+ O as appDevOnce,
13
+ f as appInstall,
14
14
  l as appPublish,
15
- _ as appUninstall,
16
- v as authLogin,
17
- A as authLoginOAuth,
18
- c as authLogout,
19
- C as detectLocalServer,
20
- h as functionExecute,
21
- D as serverStart
15
+ D as appUninstall,
16
+ m as authLogin,
17
+ v as authLoginOAuth,
18
+ i as authLogout,
19
+ C as checkDockerRunning,
20
+ _ as containerExists,
21
+ h as detectLocalServer,
22
+ A as functionExecute,
23
+ d as getContainerDigest,
24
+ L as getImageDigest,
25
+ I as getImageForVersion,
26
+ U as serverStart,
27
+ x as serverUpgrade
22
28
  };