({
mode: "onBlur",
@@ -77,6 +82,7 @@ export default function UsernameForm({
values: Inputs,
organization?: string,
) {
+ console.log(loginSettings);
return submitLoginName(values, organization).then((response) => {
if (response.authMethodTypes.length == 1) {
const method = response.authMethodTypes[0];
@@ -90,8 +96,13 @@ export default function UsernameForm({
paramsPassword.organization = organization;
}
- if (loginSettings?.passkeysType === 1) {
- paramsPassword.promptPasswordless = `true`; // PasskeysType.PASSKEYS_TYPE_ALLOWED,
+ if (
+ loginSettings?.passkeysType &&
+ (loginSettings?.passkeysType === PasskeysType.ALLOWED ||
+ (loginSettings.passkeysType as string) ===
+ "PASSKEYS_TYPE_ALLOWED")
+ ) {
+ paramsPassword.promptPasswordless = `true`;
}
if (authRequestId) {
@@ -208,6 +219,16 @@ export default function UsernameForm({
)}
+ {allowRegister && (
+ router.push("/register")}
+ >
+ register
+
+ )}
) {
+export function setTheme(
+ document: any,
+ policy?: PartialMessage,
+) {
const lP: BrandingColors = {
lightTheme: {
backgroundColor: policy?.lightTheme?.backgroundColor || BACKGROUND,
diff --git a/apps/login/src/utils/session.ts b/apps/login/src/utils/session.ts
index 22f57f26..a15fb082 100644
--- a/apps/login/src/utils/session.ts
+++ b/apps/login/src/utils/session.ts
@@ -4,7 +4,6 @@ import {
createSessionFromChecks,
createSessionForUserIdAndIdpIntent,
getSession,
- server,
setSession,
} from "@/lib/zitadel";
import {
@@ -13,11 +12,12 @@ import {
updateSessionCookie,
} from "./cookies";
import {
- Session,
Challenges,
RequestChallenges,
- Checks,
-} from "@zitadel/server";
+} from "@zitadel/proto/zitadel/session/v2beta/challenge_pb";
+import { Session } from "@zitadel/proto/zitadel/session/v2beta/session_pb";
+import { Checks } from "@zitadel/proto/zitadel/session/v2beta/session_service_pb";
+import { PlainMessage } from "@zitadel/client2";
export async function createSessionAndUpdateCookie(
loginName: string,
@@ -25,22 +25,20 @@ export async function createSessionAndUpdateCookie(
challenges: RequestChallenges | undefined,
organization?: string,
authRequestId?: string,
-): Promise {
+) {
const createdSession = await createSessionFromChecks(
- server,
password
? {
- user: { loginName },
+ user: { search: { case: "loginName", value: loginName } },
password: { password },
// totp: { code: totpCode },
}
- : { user: { loginName } },
+ : { user: { search: { case: "loginName", value: loginName } } },
challenges,
);
if (createdSession) {
return getSession(
- server,
createdSession.sessionId,
createdSession.sessionToken,
).then((response) => {
@@ -48,9 +46,9 @@ export async function createSessionAndUpdateCookie(
const sessionCookie: SessionCookie = {
id: createdSession.sessionId,
token: createdSession.sessionToken,
- creationDate: `${response.session.creationDate?.getTime() ?? ""}`,
- expirationDate: `${response.session.expirationDate?.getTime() ?? ""}`,
- changeDate: `${response.session.changeDate?.getTime() ?? ""}`,
+ creationDate: `${response.session.creationDate?.toDate().getTime() ?? ""}`,
+ expirationDate: `${response.session.expirationDate?.toDate().getTime() ?? ""}`,
+ changeDate: `${response.session.changeDate?.toDate().getTime() ?? ""}`,
loginName: response.session.factors.user.loginName ?? "",
organization: response.session.factors.user.organizationId ?? "",
};
@@ -82,20 +80,19 @@ export async function createSessionForUserIdAndUpdateCookie(
authRequestId: string | undefined,
): Promise {
const createdSession = await createSessionFromChecks(
- server,
password
? {
- user: { userId },
+ user: { search: { case: "userId", value: userId } },
password: { password },
// totp: { code: totpCode },
}
- : { user: { userId } },
+ : { user: { search: { case: "userId", value: userId } } },
challenges,
);
if (createdSession) {
+ console.log("cs", createdSession);
return getSession(
- server,
createdSession.sessionId,
createdSession.sessionToken,
).then((response) => {
@@ -103,9 +100,9 @@ export async function createSessionForUserIdAndUpdateCookie(
const sessionCookie: SessionCookie = {
id: createdSession.sessionId,
token: createdSession.sessionToken,
- creationDate: `${response.session.creationDate?.getTime() ?? ""}`,
- expirationDate: `${response.session.expirationDate?.getTime() ?? ""}`,
- changeDate: `${response.session.changeDate?.getTime() ?? ""}`,
+ creationDate: `${response.session.creationDate?.toDate().getTime() ?? ""}`,
+ expirationDate: `${response.session.expirationDate?.toDate().getTime() ?? ""}`,
+ changeDate: `${response.session.changeDate?.toDate().getTime() ?? ""}`,
loginName: response.session.factors.user.loginName ?? "",
};
@@ -140,14 +137,12 @@ export async function createSessionForIdpAndUpdateCookie(
authRequestId: string | undefined,
): Promise {
const createdSession = await createSessionForUserIdAndIdpIntent(
- server,
userId,
idpIntent,
);
if (createdSession) {
return getSession(
- server,
createdSession.sessionId,
createdSession.sessionToken,
).then((response) => {
@@ -155,9 +150,9 @@ export async function createSessionForIdpAndUpdateCookie(
const sessionCookie: SessionCookie = {
id: createdSession.sessionId,
token: createdSession.sessionToken,
- creationDate: `${response.session.creationDate?.getTime() ?? ""}`,
- expirationDate: `${response.session.expirationDate?.getTime() ?? ""}`,
- changeDate: `${response.session.changeDate?.getTime() ?? ""}`,
+ creationDate: `${response.session.creationDate?.toDate().getTime() ?? ""}`,
+ expirationDate: `${response.session.expirationDate?.toDate().getTime() ?? ""}`,
+ changeDate: `${response.session.changeDate?.toDate().getTime() ?? ""}`,
loginName: response.session.factors.user.loginName ?? "",
organization: response.session.factors.user.organizationId ?? "",
};
@@ -188,12 +183,11 @@ export type SessionWithChallenges = Session & {
export async function setSessionAndUpdateCookie(
recentCookie: SessionCookie,
- checks: Checks,
+ checks: PlainMessage,
challenges: RequestChallenges | undefined,
authRequestId: string | undefined,
-): Promise {
+) {
return setSession(
- server,
recentCookie.id,
recentCookie.token,
challenges,
@@ -205,7 +199,7 @@ export async function setSessionAndUpdateCookie(
token: updatedSession.sessionToken,
creationDate: recentCookie.creationDate,
expirationDate: recentCookie.expirationDate,
- changeDate: `${updatedSession.details?.changeDate?.getTime() ?? ""}`,
+ changeDate: `${updatedSession.details?.changeDate?.toDate().getTime() ?? ""}`,
loginName: recentCookie.loginName,
organization: recentCookie.organization,
};
@@ -214,7 +208,7 @@ export async function setSessionAndUpdateCookie(
sessionCookie.authRequestId = authRequestId;
}
- return getSession(server, sessionCookie.id, sessionCookie.token).then(
+ return getSession(sessionCookie.id, sessionCookie.token).then(
(response) => {
if (response?.session && response.session.factors?.user?.loginName) {
const { session } = response;
@@ -223,7 +217,7 @@ export async function setSessionAndUpdateCookie(
token: updatedSession.sessionToken,
creationDate: sessionCookie.creationDate,
expirationDate: sessionCookie.expirationDate,
- changeDate: `${session.changeDate?.getTime() ?? ""}`,
+ changeDate: `${session.changeDate?.toDate().getTime() ?? ""}`,
loginName: session.factors?.user?.loginName ?? "",
organization: session.factors?.user?.organizationId ?? "",
};
diff --git a/apps/login/tsconfig.json b/apps/login/tsconfig.json
index 161099e1..bf3a62f5 100755
--- a/apps/login/tsconfig.json
+++ b/apps/login/tsconfig.json
@@ -2,7 +2,6 @@
"extends": "@zitadel/tsconfig/nextjs.json",
"compilerOptions": {
"jsx": "preserve",
- "rootDir": ".",
"baseUrl": ".",
"paths": {
"@/*": ["./src/*"]
diff --git a/apps/login/turbo.json b/apps/login/turbo.json
index ff7aaf0a..92110f0f 100644
--- a/apps/login/turbo.json
+++ b/apps/login/turbo.json
@@ -6,16 +6,32 @@
"dependsOn": ["^build"]
},
"test": {
- "dependsOn": ["@zitadel/server#build", "@zitadel/react#build"]
+ "dependsOn": [
+ "@zitadel/node#build",
+ "@zitadel/client2#build",
+ "@zitadel/react#build"
+ ]
},
"test:integration": {
- "dependsOn": ["@zitadel/server#build", "@zitadel/react#build"]
+ "dependsOn": [
+ "@zitadel/node#build",
+ "@zitadel/client2#build",
+ "@zitadel/react#build"
+ ]
},
"test:unit": {
- "dependsOn": ["@zitadel/server#build"]
+ "dependsOn": [
+ "@zitadel/node#build",
+ "@zitadel/client2#build",
+ "@zitadel/react#build"
+ ]
},
"test:watch": {
- "dependsOn": ["@zitadel/server#build", "@zitadel/react#build"]
+ "dependsOn": [
+ "@zitadel/node#build",
+ "@zitadel/client2#build",
+ "@zitadel/react#build"
+ ]
}
}
}
diff --git a/packages/eslint-config-zitadel/package.json b/packages/eslint-config-zitadel/package.json
index d45f0f43..0bf9d54e 100644
--- a/packages/eslint-config-zitadel/package.json
+++ b/packages/eslint-config-zitadel/package.json
@@ -3,14 +3,14 @@
"version": "0.0.0",
"main": "index.js",
"license": "MIT",
+ "publishConfig": {
+ "access": "public"
+ },
"dependencies": {
"eslint-config-next": "^14.2.3",
"@typescript-eslint/parser": "^7.9.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-react": "^7.34.1",
"eslint-config-turbo": "^1.13.3"
- },
- "publishConfig": {
- "access": "public"
}
}
diff --git a/packages/zitadel-client2/turbo.json b/packages/zitadel-client2/turbo.json
index 985798e5..114f2d18 100644
--- a/packages/zitadel-client2/turbo.json
+++ b/packages/zitadel-client2/turbo.json
@@ -1,15 +1,9 @@
{
- "extends": [
- "//"
- ],
+ "extends": ["//"],
"pipeline": {
"build": {
- "outputs": [
- "dist/**"
- ],
- "dependsOn": [
- "generate"
- ]
+ "outputs": ["dist/**"],
+ "dependsOn": ["@zitadel/proto#generate"]
}
}
}
diff --git a/packages/zitadel-next/package.json b/packages/zitadel-next/package.json
index 3c84820b..d39052f8 100644
--- a/packages/zitadel-next/package.json
+++ b/packages/zitadel-next/package.json
@@ -9,6 +9,9 @@
"files": [
"dist/**"
],
+ "publishConfig": {
+ "access": "public"
+ },
"scripts": {
"build": "tsup",
"test": "pnpm test:unit",
@@ -19,25 +22,21 @@
"lint": "eslint \"src/**/*.ts*\"",
"clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist"
},
- "devDependencies": {
- "@types/react": "^17.0.13",
- "@zitadel/tsconfig": "workspace:*",
- "eslint-config-zitadel": "workspace:*",
- "tailwindcss": "3.2.4",
- "postcss": "8.4.21",
- "zitadel-tailwind-config": "workspace:*",
- "@zitadel/server": "workspace:*"
- },
"peerDependencies": {
"@zitadel/react": "workspace:*",
- "@zitadel/server": "workspace:*",
+ "@zitadel/node": "workspace:*",
"next": "^14.2.3",
"react": "18.2.0"
},
- "publishConfig": {
- "access": "public"
- },
"dependencies": {
"next": "^14.2.3"
+ },
+ "devDependencies": {
+ "@types/react": "^17.0.13",
+ "@zitadel/tsconfig": "workspace:*",
+ "eslint-config-zitadel": "workspace:*",
+ "tailwindcss": "3.2.4",
+ "postcss": "8.4.21",
+ "zitadel-tailwind-config": "workspace:*"
}
}
diff --git a/packages/zitadel-next/turbo.json b/packages/zitadel-next/turbo.json
index 9f540926..44e5e99f 100644
--- a/packages/zitadel-next/turbo.json
+++ b/packages/zitadel-next/turbo.json
@@ -6,7 +6,7 @@
},
"build": {
"outputs": ["dist/**"],
- "dependsOn": ["@zitadel/react#build", "@zitadel/server#build"]
+ "dependsOn": ["@zitadel/react#build"]
}
}
}
diff --git a/packages/zitadel-node/package.json b/packages/zitadel-node/package.json
index 6ed0d04e..7d88eeba 100644
--- a/packages/zitadel-node/package.json
+++ b/packages/zitadel-node/package.json
@@ -32,9 +32,11 @@
},
"dependencies": {
"@connectrpc/connect-node": "^1.4.0",
+ "@connectrpc/connect-web": "^1.4.0",
"jose": "^5.3.0"
},
"devDependencies": {
+ "@types/node": "^20.14.2",
"@zitadel/client2": "workspace:*",
"@zitadel/tsconfig": "workspace:*",
"eslint-config-zitadel": "workspace:*"
diff --git a/packages/zitadel-node/src/index.ts b/packages/zitadel-node/src/index.ts
index 99bd262f..6cc1d499 100644
--- a/packages/zitadel-node/src/index.ts
+++ b/packages/zitadel-node/src/index.ts
@@ -1,6 +1,6 @@
import { NewAuthorizationBearerInterceptor } from "@zitadel/client2";
import {
- createGrpcWebTransport,
+ createGrpcTransport,
GrpcTransportOptions,
} from "@connectrpc/connect-node";
import { importPKCS8, SignJWT } from "jose";
@@ -14,7 +14,7 @@ export function createServerTransport(
token: string,
opts: GrpcTransportOptions,
) {
- return createGrpcWebTransport({
+ return createGrpcTransport({
...opts,
interceptors: [
...(opts.interceptors || []),
diff --git a/packages/zitadel-proto/.gitignore b/packages/zitadel-proto/.gitignore
new file mode 100644
index 00000000..d7f47cfd
--- /dev/null
+++ b/packages/zitadel-proto/.gitignore
@@ -0,0 +1 @@
+zitadel
\ No newline at end of file
diff --git a/packages/zitadel-proto/zitadel/action/v3alpha/action_service_connect.d.ts b/packages/zitadel-proto/zitadel/action/v3alpha/action_service_connect.d.ts
deleted file mode 100644
index 54215d02..00000000
--- a/packages/zitadel-proto/zitadel/action/v3alpha/action_service_connect.d.ts
+++ /dev/null
@@ -1,184 +0,0 @@
-// @generated by protoc-gen-connect-es v1.4.0
-// @generated from file zitadel/action/v3alpha/action_service.proto (package zitadel.action.v3alpha, syntax proto3)
-/* eslint-disable */
-// @ts-nocheck
-
-import {
- CreateTargetRequest,
- CreateTargetResponse,
- DeleteExecutionRequest,
- DeleteExecutionResponse,
- DeleteTargetRequest,
- DeleteTargetResponse,
- GetTargetByIDRequest,
- GetTargetByIDResponse,
- ListExecutionFunctionsRequest,
- ListExecutionFunctionsResponse,
- ListExecutionMethodsRequest,
- ListExecutionMethodsResponse,
- ListExecutionServicesRequest,
- ListExecutionServicesResponse,
- ListExecutionsRequest,
- ListExecutionsResponse,
- ListTargetsRequest,
- ListTargetsResponse,
- SetExecutionRequest,
- SetExecutionResponse,
- UpdateTargetRequest,
- UpdateTargetResponse,
-} from "./action_service_pb.js";
-import { MethodKind } from "@bufbuild/protobuf";
-
-/**
- * @generated from service zitadel.action.v3alpha.ActionService
- */
-export declare const ActionService: {
- readonly typeName: "zitadel.action.v3alpha.ActionService";
- readonly methods: {
- /**
- * Create a target
- *
- * Create a new target, which can be used in executions.
- *
- * @generated from rpc zitadel.action.v3alpha.ActionService.CreateTarget
- */
- readonly createTarget: {
- readonly name: "CreateTarget";
- readonly I: typeof CreateTargetRequest;
- readonly O: typeof CreateTargetResponse;
- readonly kind: MethodKind.Unary;
- };
- /**
- * Update a target
- *
- * Update an existing target.
- *
- * @generated from rpc zitadel.action.v3alpha.ActionService.UpdateTarget
- */
- readonly updateTarget: {
- readonly name: "UpdateTarget";
- readonly I: typeof UpdateTargetRequest;
- readonly O: typeof UpdateTargetResponse;
- readonly kind: MethodKind.Unary;
- };
- /**
- * Delete a target
- *
- * Delete an existing target. This will remove it from any configured execution as well.
- *
- * @generated from rpc zitadel.action.v3alpha.ActionService.DeleteTarget
- */
- readonly deleteTarget: {
- readonly name: "DeleteTarget";
- readonly I: typeof DeleteTargetRequest;
- readonly O: typeof DeleteTargetResponse;
- readonly kind: MethodKind.Unary;
- };
- /**
- * List targets
- *
- * List all matching targets. By default, we will return all targets of your instance.
- * Make sure to include a limit and sorting for pagination.
- *
- * @generated from rpc zitadel.action.v3alpha.ActionService.ListTargets
- */
- readonly listTargets: {
- readonly name: "ListTargets";
- readonly I: typeof ListTargetsRequest;
- readonly O: typeof ListTargetsResponse;
- readonly kind: MethodKind.Unary;
- };
- /**
- * Target by ID
- *
- * Returns the target identified by the requested ID.
- *
- * @generated from rpc zitadel.action.v3alpha.ActionService.GetTargetByID
- */
- readonly getTargetByID: {
- readonly name: "GetTargetByID";
- readonly I: typeof GetTargetByIDRequest;
- readonly O: typeof GetTargetByIDResponse;
- readonly kind: MethodKind.Unary;
- };
- /**
- * Set an execution
- *
- * Set an execution to call a previously defined target or include the targets of a previously defined execution.
- *
- * @generated from rpc zitadel.action.v3alpha.ActionService.SetExecution
- */
- readonly setExecution: {
- readonly name: "SetExecution";
- readonly I: typeof SetExecutionRequest;
- readonly O: typeof SetExecutionResponse;
- readonly kind: MethodKind.Unary;
- };
- /**
- * Delete an execution
- *
- * Delete an existing execution.
- *
- * @generated from rpc zitadel.action.v3alpha.ActionService.DeleteExecution
- */
- readonly deleteExecution: {
- readonly name: "DeleteExecution";
- readonly I: typeof DeleteExecutionRequest;
- readonly O: typeof DeleteExecutionResponse;
- readonly kind: MethodKind.Unary;
- };
- /**
- * List executions
- *
- * List all matching executions. By default, we will return all executions of your instance.
- * Make sure to include a limit and sorting for pagination.
- *
- * @generated from rpc zitadel.action.v3alpha.ActionService.ListExecutions
- */
- readonly listExecutions: {
- readonly name: "ListExecutions";
- readonly I: typeof ListExecutionsRequest;
- readonly O: typeof ListExecutionsResponse;
- readonly kind: MethodKind.Unary;
- };
- /**
- * List all available functions
- *
- * List all available functions which can be used as condition for executions.
- *
- * @generated from rpc zitadel.action.v3alpha.ActionService.ListExecutionFunctions
- */
- readonly listExecutionFunctions: {
- readonly name: "ListExecutionFunctions";
- readonly I: typeof ListExecutionFunctionsRequest;
- readonly O: typeof ListExecutionFunctionsResponse;
- readonly kind: MethodKind.Unary;
- };
- /**
- * List all available methods
- *
- * List all available methods which can be used as condition for executions.
- *
- * @generated from rpc zitadel.action.v3alpha.ActionService.ListExecutionMethods
- */
- readonly listExecutionMethods: {
- readonly name: "ListExecutionMethods";
- readonly I: typeof ListExecutionMethodsRequest;
- readonly O: typeof ListExecutionMethodsResponse;
- readonly kind: MethodKind.Unary;
- };
- /**
- * List all available service
- *
- * List all available services which can be used as condition for executions.
- *
- * @generated from rpc zitadel.action.v3alpha.ActionService.ListExecutionServices
- */
- readonly listExecutionServices: {
- readonly name: "ListExecutionServices";
- readonly I: typeof ListExecutionServicesRequest;
- readonly O: typeof ListExecutionServicesResponse;
- readonly kind: MethodKind.Unary;
- };
- };
-};
diff --git a/packages/zitadel-proto/zitadel/action/v3alpha/action_service_connect.js b/packages/zitadel-proto/zitadel/action/v3alpha/action_service_connect.js
deleted file mode 100644
index 0c1987f0..00000000
--- a/packages/zitadel-proto/zitadel/action/v3alpha/action_service_connect.js
+++ /dev/null
@@ -1,162 +0,0 @@
-// @generated by protoc-gen-connect-es v1.4.0
-// @generated from file zitadel/action/v3alpha/action_service.proto (package zitadel.action.v3alpha, syntax proto3)
-/* eslint-disable */
-// @ts-nocheck
-
-import { CreateTargetRequest, CreateTargetResponse, DeleteExecutionRequest, DeleteExecutionResponse, DeleteTargetRequest, DeleteTargetResponse, GetTargetByIDRequest, GetTargetByIDResponse, ListExecutionFunctionsRequest, ListExecutionFunctionsResponse, ListExecutionMethodsRequest, ListExecutionMethodsResponse, ListExecutionServicesRequest, ListExecutionServicesResponse, ListExecutionsRequest, ListExecutionsResponse, ListTargetsRequest, ListTargetsResponse, SetExecutionRequest, SetExecutionResponse, UpdateTargetRequest, UpdateTargetResponse } from "./action_service_pb.js";
-import { MethodKind } from "@bufbuild/protobuf";
-
-/**
- * @generated from service zitadel.action.v3alpha.ActionService
- */
-export const ActionService = {
- typeName: "zitadel.action.v3alpha.ActionService",
- methods: {
- /**
- * Create a target
- *
- * Create a new target, which can be used in executions.
- *
- * @generated from rpc zitadel.action.v3alpha.ActionService.CreateTarget
- */
- createTarget: {
- name: "CreateTarget",
- I: CreateTargetRequest,
- O: CreateTargetResponse,
- kind: MethodKind.Unary,
- },
- /**
- * Update a target
- *
- * Update an existing target.
- *
- * @generated from rpc zitadel.action.v3alpha.ActionService.UpdateTarget
- */
- updateTarget: {
- name: "UpdateTarget",
- I: UpdateTargetRequest,
- O: UpdateTargetResponse,
- kind: MethodKind.Unary,
- },
- /**
- * Delete a target
- *
- * Delete an existing target. This will remove it from any configured execution as well.
- *
- * @generated from rpc zitadel.action.v3alpha.ActionService.DeleteTarget
- */
- deleteTarget: {
- name: "DeleteTarget",
- I: DeleteTargetRequest,
- O: DeleteTargetResponse,
- kind: MethodKind.Unary,
- },
- /**
- * List targets
- *
- * List all matching targets. By default, we will return all targets of your instance.
- * Make sure to include a limit and sorting for pagination.
- *
- * @generated from rpc zitadel.action.v3alpha.ActionService.ListTargets
- */
- listTargets: {
- name: "ListTargets",
- I: ListTargetsRequest,
- O: ListTargetsResponse,
- kind: MethodKind.Unary,
- },
- /**
- * Target by ID
- *
- * Returns the target identified by the requested ID.
- *
- * @generated from rpc zitadel.action.v3alpha.ActionService.GetTargetByID
- */
- getTargetByID: {
- name: "GetTargetByID",
- I: GetTargetByIDRequest,
- O: GetTargetByIDResponse,
- kind: MethodKind.Unary,
- },
- /**
- * Set an execution
- *
- * Set an execution to call a previously defined target or include the targets of a previously defined execution.
- *
- * @generated from rpc zitadel.action.v3alpha.ActionService.SetExecution
- */
- setExecution: {
- name: "SetExecution",
- I: SetExecutionRequest,
- O: SetExecutionResponse,
- kind: MethodKind.Unary,
- },
- /**
- * Delete an execution
- *
- * Delete an existing execution.
- *
- * @generated from rpc zitadel.action.v3alpha.ActionService.DeleteExecution
- */
- deleteExecution: {
- name: "DeleteExecution",
- I: DeleteExecutionRequest,
- O: DeleteExecutionResponse,
- kind: MethodKind.Unary,
- },
- /**
- * List executions
- *
- * List all matching executions. By default, we will return all executions of your instance.
- * Make sure to include a limit and sorting for pagination.
- *
- * @generated from rpc zitadel.action.v3alpha.ActionService.ListExecutions
- */
- listExecutions: {
- name: "ListExecutions",
- I: ListExecutionsRequest,
- O: ListExecutionsResponse,
- kind: MethodKind.Unary,
- },
- /**
- * List all available functions
- *
- * List all available functions which can be used as condition for executions.
- *
- * @generated from rpc zitadel.action.v3alpha.ActionService.ListExecutionFunctions
- */
- listExecutionFunctions: {
- name: "ListExecutionFunctions",
- I: ListExecutionFunctionsRequest,
- O: ListExecutionFunctionsResponse,
- kind: MethodKind.Unary,
- },
- /**
- * List all available methods
- *
- * List all available methods which can be used as condition for executions.
- *
- * @generated from rpc zitadel.action.v3alpha.ActionService.ListExecutionMethods
- */
- listExecutionMethods: {
- name: "ListExecutionMethods",
- I: ListExecutionMethodsRequest,
- O: ListExecutionMethodsResponse,
- kind: MethodKind.Unary,
- },
- /**
- * List all available service
- *
- * List all available services which can be used as condition for executions.
- *
- * @generated from rpc zitadel.action.v3alpha.ActionService.ListExecutionServices
- */
- listExecutionServices: {
- name: "ListExecutionServices",
- I: ListExecutionServicesRequest,
- O: ListExecutionServicesResponse,
- kind: MethodKind.Unary,
- },
- }
-};
-
diff --git a/packages/zitadel-proto/zitadel/action/v3alpha/action_service_pb.d.ts b/packages/zitadel-proto/zitadel/action/v3alpha/action_service_pb.d.ts
deleted file mode 100644
index e0a8ca41..00000000
--- a/packages/zitadel-proto/zitadel/action/v3alpha/action_service_pb.d.ts
+++ /dev/null
@@ -1,1055 +0,0 @@
-// @generated by protoc-gen-es v1.9.0
-// @generated from file zitadel/action/v3alpha/action_service.proto (package zitadel.action.v3alpha, syntax proto3)
-/* eslint-disable */
-// @ts-nocheck
-
-import type {
- BinaryReadOptions,
- Duration,
- FieldList,
- JsonReadOptions,
- JsonValue,
- PartialMessage,
- PlainMessage,
-} from "@bufbuild/protobuf";
-import { Message, proto3 } from "@bufbuild/protobuf";
-import type {
- SetRESTAsync,
- SetRESTCall,
- SetRESTWebhook,
- Target,
-} from "./target_pb.js";
-import type {
- Details,
- ListDetails,
- ListQuery,
-} from "../../object/v2beta/object_pb.js";
-import type {
- SearchQuery,
- TargetFieldName,
- TargetSearchQuery,
-} from "./query_pb.js";
-import type {
- Condition,
- Execution,
- ExecutionTargetType,
-} from "./execution_pb.js";
-
-/**
- * @generated from message zitadel.action.v3alpha.CreateTargetRequest
- */
-export declare class CreateTargetRequest extends Message {
- /**
- * Unique name of the target.
- *
- * @generated from field: string name = 1;
- */
- name: string;
-
- /**
- * Defines the target type and how the response of the target is treated.
- *
- * @generated from oneof zitadel.action.v3alpha.CreateTargetRequest.target_type
- */
- targetType:
- | {
- /**
- * @generated from field: zitadel.action.v3alpha.SetRESTWebhook rest_webhook = 2;
- */
- value: SetRESTWebhook;
- case: "restWebhook";
- }
- | {
- /**
- * @generated from field: zitadel.action.v3alpha.SetRESTCall rest_call = 3;
- */
- value: SetRESTCall;
- case: "restCall";
- }
- | {
- /**
- * @generated from field: zitadel.action.v3alpha.SetRESTAsync rest_async = 4;
- */
- value: SetRESTAsync;
- case: "restAsync";
- }
- | { case: undefined; value?: undefined };
-
- /**
- * Timeout defines the duration until ZITADEL cancels the execution.
- *
- * @generated from field: google.protobuf.Duration timeout = 5;
- */
- timeout?: Duration;
-
- /**
- * @generated from field: string endpoint = 6;
- */
- endpoint: string;
-
- constructor(data?: PartialMessage);
-
- static readonly runtime: typeof proto3;
- static readonly typeName = "zitadel.action.v3alpha.CreateTargetRequest";
- static readonly fields: FieldList;
-
- static fromBinary(
- bytes: Uint8Array,
- options?: Partial,
- ): CreateTargetRequest;
-
- static fromJson(
- jsonValue: JsonValue,
- options?: Partial,
- ): CreateTargetRequest;
-
- static fromJsonString(
- jsonString: string,
- options?: Partial,
- ): CreateTargetRequest;
-
- static equals(
- a: CreateTargetRequest | PlainMessage | undefined,
- b: CreateTargetRequest | PlainMessage | undefined,
- ): boolean;
-}
-
-/**
- * @generated from message zitadel.action.v3alpha.CreateTargetResponse
- */
-export declare class CreateTargetResponse extends Message {
- /**
- * ID is the read-only unique identifier of the target.
- *
- * @generated from field: string id = 1;
- */
- id: string;
-
- /**
- * Details provide some base information (such as the last change date) of the target.
- *
- * @generated from field: zitadel.object.v2beta.Details details = 2;
- */
- details?: Details;
-
- constructor(data?: PartialMessage);
-
- static readonly runtime: typeof proto3;
- static readonly typeName = "zitadel.action.v3alpha.CreateTargetResponse";
- static readonly fields: FieldList;
-
- static fromBinary(
- bytes: Uint8Array,
- options?: Partial,
- ): CreateTargetResponse;
-
- static fromJson(
- jsonValue: JsonValue,
- options?: Partial,
- ): CreateTargetResponse;
-
- static fromJsonString(
- jsonString: string,
- options?: Partial,
- ): CreateTargetResponse;
-
- static equals(
- a: CreateTargetResponse | PlainMessage | undefined,
- b: CreateTargetResponse | PlainMessage | undefined,
- ): boolean;
-}
-
-/**
- * @generated from message zitadel.action.v3alpha.UpdateTargetRequest
- */
-export declare class UpdateTargetRequest extends Message {
- /**
- * unique identifier of the target.
- *
- * @generated from field: string target_id = 1;
- */
- targetId: string;
-
- /**
- * Optionally change the unique name of the target.
- *
- * @generated from field: optional string name = 2;
- */
- name?: string;
-
- /**
- * Optionally change the target type and how the response of the target is treated,
- * or its target URL.
- *
- * @generated from oneof zitadel.action.v3alpha.UpdateTargetRequest.target_type
- */
- targetType:
- | {
- /**
- * @generated from field: zitadel.action.v3alpha.SetRESTWebhook rest_webhook = 3;
- */
- value: SetRESTWebhook;
- case: "restWebhook";
- }
- | {
- /**
- * @generated from field: zitadel.action.v3alpha.SetRESTCall rest_call = 4;
- */
- value: SetRESTCall;
- case: "restCall";
- }
- | {
- /**
- * @generated from field: zitadel.action.v3alpha.SetRESTAsync rest_async = 5;
- */
- value: SetRESTAsync;
- case: "restAsync";
- }
- | { case: undefined; value?: undefined };
-
- /**
- * Optionally change the timeout, which defines the duration until ZITADEL cancels the execution.
- *
- * @generated from field: optional google.protobuf.Duration timeout = 6;
- */
- timeout?: Duration;
-
- /**
- * @generated from field: optional string endpoint = 7;
- */
- endpoint?: string;
-
- constructor(data?: PartialMessage);
-
- static readonly runtime: typeof proto3;
- static readonly typeName = "zitadel.action.v3alpha.UpdateTargetRequest";
- static readonly fields: FieldList;
-
- static fromBinary(
- bytes: Uint8Array,
- options?: Partial,
- ): UpdateTargetRequest;
-
- static fromJson(
- jsonValue: JsonValue,
- options?: Partial,
- ): UpdateTargetRequest;
-
- static fromJsonString(
- jsonString: string,
- options?: Partial,
- ): UpdateTargetRequest;
-
- static equals(
- a: UpdateTargetRequest | PlainMessage | undefined,
- b: UpdateTargetRequest | PlainMessage | undefined,
- ): boolean;
-}
-
-/**
- * @generated from message zitadel.action.v3alpha.UpdateTargetResponse
- */
-export declare class UpdateTargetResponse extends Message {
- /**
- * Details provide some base information (such as the last change date) of the target.
- *
- * @generated from field: zitadel.object.v2beta.Details details = 1;
- */
- details?: Details;
-
- constructor(data?: PartialMessage);
-
- static readonly runtime: typeof proto3;
- static readonly typeName = "zitadel.action.v3alpha.UpdateTargetResponse";
- static readonly fields: FieldList;
-
- static fromBinary(
- bytes: Uint8Array,
- options?: Partial,
- ): UpdateTargetResponse;
-
- static fromJson(
- jsonValue: JsonValue,
- options?: Partial,
- ): UpdateTargetResponse;
-
- static fromJsonString(
- jsonString: string,
- options?: Partial,
- ): UpdateTargetResponse;
-
- static equals(
- a: UpdateTargetResponse | PlainMessage | undefined,
- b: UpdateTargetResponse | PlainMessage | undefined,
- ): boolean;
-}
-
-/**
- * @generated from message zitadel.action.v3alpha.DeleteTargetRequest
- */
-export declare class DeleteTargetRequest extends Message {
- /**
- * unique identifier of the target.
- *
- * @generated from field: string target_id = 1;
- */
- targetId: string;
-
- constructor(data?: PartialMessage);
-
- static readonly runtime: typeof proto3;
- static readonly typeName = "zitadel.action.v3alpha.DeleteTargetRequest";
- static readonly fields: FieldList;
-
- static fromBinary(
- bytes: Uint8Array,
- options?: Partial,
- ): DeleteTargetRequest;
-
- static fromJson(
- jsonValue: JsonValue,
- options?: Partial,
- ): DeleteTargetRequest;
-
- static fromJsonString(
- jsonString: string,
- options?: Partial,
- ): DeleteTargetRequest;
-
- static equals(
- a: DeleteTargetRequest | PlainMessage | undefined,
- b: DeleteTargetRequest | PlainMessage | undefined,
- ): boolean;
-}
-
-/**
- * @generated from message zitadel.action.v3alpha.DeleteTargetResponse
- */
-export declare class DeleteTargetResponse extends Message {
- /**
- * Details provide some base information (such as the last change date) of the target.
- *
- * @generated from field: zitadel.object.v2beta.Details details = 1;
- */
- details?: Details;
-
- constructor(data?: PartialMessage);
-
- static readonly runtime: typeof proto3;
- static readonly typeName = "zitadel.action.v3alpha.DeleteTargetResponse";
- static readonly fields: FieldList;
-
- static fromBinary(
- bytes: Uint8Array,
- options?: Partial,
- ): DeleteTargetResponse;
-
- static fromJson(
- jsonValue: JsonValue,
- options?: Partial,
- ): DeleteTargetResponse;
-
- static fromJsonString(
- jsonString: string,
- options?: Partial,
- ): DeleteTargetResponse;
-
- static equals(
- a: DeleteTargetResponse | PlainMessage | undefined,
- b: DeleteTargetResponse | PlainMessage | undefined,
- ): boolean;
-}
-
-/**
- * @generated from message zitadel.action.v3alpha.ListTargetsRequest
- */
-export declare class ListTargetsRequest extends Message {
- /**
- * list limitations and ordering.
- *
- * @generated from field: zitadel.object.v2beta.ListQuery query = 1;
- */
- query?: ListQuery;
-
- /**
- * the field the result is sorted.
- *
- * @generated from field: zitadel.action.v3alpha.TargetFieldName sorting_column = 2;
- */
- sortingColumn: TargetFieldName;
-
- /**
- * Define the criteria to query for.
- *
- * @generated from field: repeated zitadel.action.v3alpha.TargetSearchQuery queries = 3;
- */
- queries: TargetSearchQuery[];
-
- constructor(data?: PartialMessage);
-
- static readonly runtime: typeof proto3;
- static readonly typeName = "zitadel.action.v3alpha.ListTargetsRequest";
- static readonly fields: FieldList;
-
- static fromBinary(
- bytes: Uint8Array,
- options?: Partial,
- ): ListTargetsRequest;
-
- static fromJson(
- jsonValue: JsonValue,
- options?: Partial,
- ): ListTargetsRequest;
-
- static fromJsonString(
- jsonString: string,
- options?: Partial,
- ): ListTargetsRequest;
-
- static equals(
- a: ListTargetsRequest | PlainMessage | undefined,
- b: ListTargetsRequest | PlainMessage | undefined,
- ): boolean;
-}
-
-/**
- * @generated from message zitadel.action.v3alpha.ListTargetsResponse
- */
-export declare class ListTargetsResponse extends Message {
- /**
- * Details provides information about the returned result including total amount found.
- *
- * @generated from field: zitadel.object.v2beta.ListDetails details = 1;
- */
- details?: ListDetails;
-
- /**
- * States by which field the results are sorted.
- *
- * @generated from field: zitadel.action.v3alpha.TargetFieldName sorting_column = 2;
- */
- sortingColumn: TargetFieldName;
-
- /**
- * The result contains the user schemas, which matched the queries.
- *
- * @generated from field: repeated zitadel.action.v3alpha.Target result = 3;
- */
- result: Target[];
-
- constructor(data?: PartialMessage);
-
- static readonly runtime: typeof proto3;
- static readonly typeName = "zitadel.action.v3alpha.ListTargetsResponse";
- static readonly fields: FieldList;
-
- static fromBinary(
- bytes: Uint8Array,
- options?: Partial,
- ): ListTargetsResponse;
-
- static fromJson(
- jsonValue: JsonValue,
- options?: Partial,
- ): ListTargetsResponse;
-
- static fromJsonString(
- jsonString: string,
- options?: Partial,
- ): ListTargetsResponse;
-
- static equals(
- a: ListTargetsResponse | PlainMessage | undefined,
- b: ListTargetsResponse | PlainMessage | undefined,
- ): boolean;
-}
-
-/**
- * @generated from message zitadel.action.v3alpha.GetTargetByIDRequest
- */
-export declare class GetTargetByIDRequest extends Message {
- /**
- * unique identifier of the target.
- *
- * @generated from field: string target_id = 1;
- */
- targetId: string;
-
- constructor(data?: PartialMessage);
-
- static readonly runtime: typeof proto3;
- static readonly typeName = "zitadel.action.v3alpha.GetTargetByIDRequest";
- static readonly fields: FieldList;
-
- static fromBinary(
- bytes: Uint8Array,
- options?: Partial,
- ): GetTargetByIDRequest;
-
- static fromJson(
- jsonValue: JsonValue,
- options?: Partial,
- ): GetTargetByIDRequest;
-
- static fromJsonString(
- jsonString: string,
- options?: Partial,
- ): GetTargetByIDRequest;
-
- static equals(
- a: GetTargetByIDRequest | PlainMessage | undefined,
- b: GetTargetByIDRequest | PlainMessage | undefined,
- ): boolean;
-}
-
-/**
- * @generated from message zitadel.action.v3alpha.GetTargetByIDResponse
- */
-export declare class GetTargetByIDResponse extends Message {
- /**
- * @generated from field: zitadel.action.v3alpha.Target target = 1;
- */
- target?: Target;
-
- constructor(data?: PartialMessage);
-
- static readonly runtime: typeof proto3;
- static readonly typeName = "zitadel.action.v3alpha.GetTargetByIDResponse";
- static readonly fields: FieldList;
-
- static fromBinary(
- bytes: Uint8Array,
- options?: Partial,
- ): GetTargetByIDResponse;
-
- static fromJson(
- jsonValue: JsonValue,
- options?: Partial,
- ): GetTargetByIDResponse;
-
- static fromJsonString(
- jsonString: string,
- options?: Partial,
- ): GetTargetByIDResponse;
-
- static equals(
- a: GetTargetByIDResponse | PlainMessage | undefined,
- b: GetTargetByIDResponse | PlainMessage | undefined,
- ): boolean;
-}
-
-/**
- * @generated from message zitadel.action.v3alpha.SetExecutionRequest
- */
-export declare class SetExecutionRequest extends Message {
- /**
- * Defines the condition type and content of the condition for execution.
- *
- * @generated from field: zitadel.action.v3alpha.Condition condition = 1;
- */
- condition?: Condition;
-
- /**
- * Ordered list of targets/includes called during the execution.
- *
- * @generated from field: repeated zitadel.action.v3alpha.ExecutionTargetType targets = 2;
- */
- targets: ExecutionTargetType[];
-
- constructor(data?: PartialMessage);
-
- static readonly runtime: typeof proto3;
- static readonly typeName = "zitadel.action.v3alpha.SetExecutionRequest";
- static readonly fields: FieldList;
-
- static fromBinary(
- bytes: Uint8Array,
- options?: Partial,
- ): SetExecutionRequest;
-
- static fromJson(
- jsonValue: JsonValue,
- options?: Partial,
- ): SetExecutionRequest;
-
- static fromJsonString(
- jsonString: string,
- options?: Partial,
- ): SetExecutionRequest;
-
- static equals(
- a: SetExecutionRequest | PlainMessage | undefined,
- b: SetExecutionRequest | PlainMessage | undefined,
- ): boolean;
-}
-
-/**
- * @generated from message zitadel.action.v3alpha.SetExecutionResponse
- */
-export declare class SetExecutionResponse extends Message {
- /**
- * Details provide some base information (such as the last change date) of the execution.
- *
- * @generated from field: zitadel.object.v2beta.Details details = 2;
- */
- details?: Details;
-
- constructor(data?: PartialMessage);
-
- static readonly runtime: typeof proto3;
- static readonly typeName = "zitadel.action.v3alpha.SetExecutionResponse";
- static readonly fields: FieldList;
-
- static fromBinary(
- bytes: Uint8Array,
- options?: Partial,
- ): SetExecutionResponse;
-
- static fromJson(
- jsonValue: JsonValue,
- options?: Partial,
- ): SetExecutionResponse;
-
- static fromJsonString(
- jsonString: string,
- options?: Partial,
- ): SetExecutionResponse;
-
- static equals(
- a: SetExecutionResponse | PlainMessage | undefined,
- b: SetExecutionResponse | PlainMessage | undefined,
- ): boolean;
-}
-
-/**
- * @generated from message zitadel.action.v3alpha.DeleteExecutionRequest
- */
-export declare class DeleteExecutionRequest extends Message {
- /**
- * Unique identifier of the execution.
- *
- * @generated from field: zitadel.action.v3alpha.Condition condition = 1;
- */
- condition?: Condition;
-
- constructor(data?: PartialMessage);
-
- static readonly runtime: typeof proto3;
- static readonly typeName = "zitadel.action.v3alpha.DeleteExecutionRequest";
- static readonly fields: FieldList;
-
- static fromBinary(
- bytes: Uint8Array,
- options?: Partial,
- ): DeleteExecutionRequest;
-
- static fromJson(
- jsonValue: JsonValue,
- options?: Partial,
- ): DeleteExecutionRequest;
-
- static fromJsonString(
- jsonString: string,
- options?: Partial,
- ): DeleteExecutionRequest;
-
- static equals(
- a:
- | DeleteExecutionRequest
- | PlainMessage
- | undefined,
- b:
- | DeleteExecutionRequest
- | PlainMessage
- | undefined,
- ): boolean;
-}
-
-/**
- * @generated from message zitadel.action.v3alpha.DeleteExecutionResponse
- */
-export declare class DeleteExecutionResponse extends Message {
- /**
- * Details provide some base information (such as the last change date) of the execution.
- *
- * @generated from field: zitadel.object.v2beta.Details details = 1;
- */
- details?: Details;
-
- constructor(data?: PartialMessage);
-
- static readonly runtime: typeof proto3;
- static readonly typeName = "zitadel.action.v3alpha.DeleteExecutionResponse";
- static readonly fields: FieldList;
-
- static fromBinary(
- bytes: Uint8Array,
- options?: Partial,
- ): DeleteExecutionResponse;
-
- static fromJson(
- jsonValue: JsonValue,
- options?: Partial,
- ): DeleteExecutionResponse;
-
- static fromJsonString(
- jsonString: string,
- options?: Partial,
- ): DeleteExecutionResponse;
-
- static equals(
- a:
- | DeleteExecutionResponse
- | PlainMessage
- | undefined,
- b:
- | DeleteExecutionResponse
- | PlainMessage
- | undefined,
- ): boolean;
-}
-
-/**
- * @generated from message zitadel.action.v3alpha.ListExecutionsRequest
- */
-export declare class ListExecutionsRequest extends Message {
- /**
- * list limitations and ordering.
- *
- * @generated from field: zitadel.object.v2beta.ListQuery query = 1;
- */
- query?: ListQuery;
-
- /**
- * Define the criteria to query for.
- *
- * @generated from field: repeated zitadel.action.v3alpha.SearchQuery queries = 2;
- */
- queries: SearchQuery[];
-
- constructor(data?: PartialMessage);
-
- static readonly runtime: typeof proto3;
- static readonly typeName = "zitadel.action.v3alpha.ListExecutionsRequest";
- static readonly fields: FieldList;
-
- static fromBinary(
- bytes: Uint8Array,
- options?: Partial,
- ): ListExecutionsRequest;
-
- static fromJson(
- jsonValue: JsonValue,
- options?: Partial,
- ): ListExecutionsRequest;
-
- static fromJsonString(
- jsonString: string,
- options?: Partial,
- ): ListExecutionsRequest;
-
- static equals(
- a: ListExecutionsRequest | PlainMessage | undefined,
- b: ListExecutionsRequest | PlainMessage | undefined,
- ): boolean;
-}
-
-/**
- * @generated from message zitadel.action.v3alpha.ListExecutionsResponse
- */
-export declare class ListExecutionsResponse extends Message {
- /**
- * Details provides information about the returned result including total amount found.
- *
- * @generated from field: zitadel.object.v2beta.ListDetails details = 1;
- */
- details?: ListDetails;
-
- /**
- * The result contains the executions, which matched the queries.
- *
- * @generated from field: repeated zitadel.action.v3alpha.Execution result = 2;
- */
- result: Execution[];
-
- constructor(data?: PartialMessage);
-
- static readonly runtime: typeof proto3;
- static readonly typeName = "zitadel.action.v3alpha.ListExecutionsResponse";
- static readonly fields: FieldList;
-
- static fromBinary(
- bytes: Uint8Array,
- options?: Partial,
- ): ListExecutionsResponse;
-
- static fromJson(
- jsonValue: JsonValue,
- options?: Partial,
- ): ListExecutionsResponse;
-
- static fromJsonString(
- jsonString: string,
- options?: Partial,
- ): ListExecutionsResponse;
-
- static equals(
- a:
- | ListExecutionsResponse
- | PlainMessage
- | undefined,
- b:
- | ListExecutionsResponse
- | PlainMessage
- | undefined,
- ): boolean;
-}
-
-/**
- * @generated from message zitadel.action.v3alpha.ListExecutionFunctionsRequest
- */
-export declare class ListExecutionFunctionsRequest extends Message {
- constructor(data?: PartialMessage);
-
- static readonly runtime: typeof proto3;
- static readonly typeName =
- "zitadel.action.v3alpha.ListExecutionFunctionsRequest";
- static readonly fields: FieldList;
-
- static fromBinary(
- bytes: Uint8Array,
- options?: Partial,
- ): ListExecutionFunctionsRequest;
-
- static fromJson(
- jsonValue: JsonValue,
- options?: Partial,
- ): ListExecutionFunctionsRequest;
-
- static fromJsonString(
- jsonString: string,
- options?: Partial,
- ): ListExecutionFunctionsRequest;
-
- static equals(
- a:
- | ListExecutionFunctionsRequest
- | PlainMessage
- | undefined,
- b:
- | ListExecutionFunctionsRequest
- | PlainMessage
- | undefined,
- ): boolean;
-}
-
-/**
- * @generated from message zitadel.action.v3alpha.ListExecutionFunctionsResponse
- */
-export declare class ListExecutionFunctionsResponse extends Message {
- /**
- * All available methods
- *
- * @generated from field: repeated string functions = 1;
- */
- functions: string[];
-
- constructor(data?: PartialMessage);
-
- static readonly runtime: typeof proto3;
- static readonly typeName =
- "zitadel.action.v3alpha.ListExecutionFunctionsResponse";
- static readonly fields: FieldList;
-
- static fromBinary(
- bytes: Uint8Array,
- options?: Partial,
- ): ListExecutionFunctionsResponse;
-
- static fromJson(
- jsonValue: JsonValue,
- options?: Partial,
- ): ListExecutionFunctionsResponse;
-
- static fromJsonString(
- jsonString: string,
- options?: Partial,
- ): ListExecutionFunctionsResponse;
-
- static equals(
- a:
- | ListExecutionFunctionsResponse
- | PlainMessage
- | undefined,
- b:
- | ListExecutionFunctionsResponse
- | PlainMessage
- | undefined,
- ): boolean;
-}
-
-/**
- * @generated from message zitadel.action.v3alpha.ListExecutionMethodsRequest
- */
-export declare class ListExecutionMethodsRequest extends Message {
- constructor(data?: PartialMessage);
-
- static readonly runtime: typeof proto3;
- static readonly typeName =
- "zitadel.action.v3alpha.ListExecutionMethodsRequest";
- static readonly fields: FieldList;
-
- static fromBinary(
- bytes: Uint8Array,
- options?: Partial,
- ): ListExecutionMethodsRequest;
-
- static fromJson(
- jsonValue: JsonValue,
- options?: Partial,
- ): ListExecutionMethodsRequest;
-
- static fromJsonString(
- jsonString: string,
- options?: Partial,
- ): ListExecutionMethodsRequest;
-
- static equals(
- a:
- | ListExecutionMethodsRequest
- | PlainMessage
- | undefined,
- b:
- | ListExecutionMethodsRequest
- | PlainMessage
- | undefined,
- ): boolean;
-}
-
-/**
- * @generated from message zitadel.action.v3alpha.ListExecutionMethodsResponse
- */
-export declare class ListExecutionMethodsResponse extends Message {
- /**
- * All available methods
- *
- * @generated from field: repeated string methods = 1;
- */
- methods: string[];
-
- constructor(data?: PartialMessage);
-
- static readonly runtime: typeof proto3;
- static readonly typeName =
- "zitadel.action.v3alpha.ListExecutionMethodsResponse";
- static readonly fields: FieldList;
-
- static fromBinary(
- bytes: Uint8Array,
- options?: Partial,
- ): ListExecutionMethodsResponse;
-
- static fromJson(
- jsonValue: JsonValue,
- options?: Partial,
- ): ListExecutionMethodsResponse;
-
- static fromJsonString(
- jsonString: string,
- options?: Partial,
- ): ListExecutionMethodsResponse;
-
- static equals(
- a:
- | ListExecutionMethodsResponse
- | PlainMessage
- | undefined,
- b:
- | ListExecutionMethodsResponse
- | PlainMessage
- | undefined,
- ): boolean;
-}
-
-/**
- * @generated from message zitadel.action.v3alpha.ListExecutionServicesRequest
- */
-export declare class ListExecutionServicesRequest extends Message {
- constructor(data?: PartialMessage);
-
- static readonly runtime: typeof proto3;
- static readonly typeName =
- "zitadel.action.v3alpha.ListExecutionServicesRequest";
- static readonly fields: FieldList;
-
- static fromBinary(
- bytes: Uint8Array,
- options?: Partial,
- ): ListExecutionServicesRequest;
-
- static fromJson(
- jsonValue: JsonValue,
- options?: Partial,
- ): ListExecutionServicesRequest;
-
- static fromJsonString(
- jsonString: string,
- options?: Partial,
- ): ListExecutionServicesRequest;
-
- static equals(
- a:
- | ListExecutionServicesRequest
- | PlainMessage
- | undefined,
- b:
- | ListExecutionServicesRequest
- | PlainMessage
- | undefined,
- ): boolean;
-}
-
-/**
- * @generated from message zitadel.action.v3alpha.ListExecutionServicesResponse
- */
-export declare class ListExecutionServicesResponse extends Message {
- /**
- * All available methods
- *
- * @generated from field: repeated string services = 1;
- */
- services: string[];
-
- constructor(data?: PartialMessage);
-
- static readonly runtime: typeof proto3;
- static readonly typeName =
- "zitadel.action.v3alpha.ListExecutionServicesResponse";
- static readonly fields: FieldList;
-
- static fromBinary(
- bytes: Uint8Array,
- options?: Partial,
- ): ListExecutionServicesResponse;
-
- static fromJson(
- jsonValue: JsonValue,
- options?: Partial,
- ): ListExecutionServicesResponse;
-
- static fromJsonString(
- jsonString: string,
- options?: Partial,
- ): ListExecutionServicesResponse;
-
- static equals(
- a:
- | ListExecutionServicesResponse
- | PlainMessage
- | undefined,
- b:
- | ListExecutionServicesResponse
- | PlainMessage
- | undefined,
- ): boolean;
-}
diff --git a/packages/zitadel-proto/zitadel/action/v3alpha/action_service_pb.js b/packages/zitadel-proto/zitadel/action/v3alpha/action_service_pb.js
deleted file mode 100644
index a160ef37..00000000
--- a/packages/zitadel-proto/zitadel/action/v3alpha/action_service_pb.js
+++ /dev/null
@@ -1,244 +0,0 @@
-// @generated by protoc-gen-es v1.9.0
-// @generated from file zitadel/action/v3alpha/action_service.proto (package zitadel.action.v3alpha, syntax proto3)
-/* eslint-disable */
-// @ts-nocheck
-
-import { Duration, proto3 } from "@bufbuild/protobuf";
-import { SetRESTAsync, SetRESTCall, SetRESTWebhook, Target } from "./target_pb.js";
-import { Details, ListDetails, ListQuery } from "../../object/v2beta/object_pb.js";
-import { SearchQuery, TargetFieldName, TargetSearchQuery } from "./query_pb.js";
-import { Condition, Execution, ExecutionTargetType } from "./execution_pb.js";
-
-/**
- * @generated from message zitadel.action.v3alpha.CreateTargetRequest
- */
-export const CreateTargetRequest = /*@__PURE__*/ proto3.makeMessageType(
- "zitadel.action.v3alpha.CreateTargetRequest",
- () => [
- { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
- { no: 2, name: "rest_webhook", kind: "message", T: SetRESTWebhook, oneof: "target_type" },
- { no: 3, name: "rest_call", kind: "message", T: SetRESTCall, oneof: "target_type" },
- { no: 4, name: "rest_async", kind: "message", T: SetRESTAsync, oneof: "target_type" },
- { no: 5, name: "timeout", kind: "message", T: Duration },
- { no: 6, name: "endpoint", kind: "scalar", T: 9 /* ScalarType.STRING */ },
- ],
-);
-
-/**
- * @generated from message zitadel.action.v3alpha.CreateTargetResponse
- */
-export const CreateTargetResponse = /*@__PURE__*/ proto3.makeMessageType(
- "zitadel.action.v3alpha.CreateTargetResponse",
- () => [
- { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
- { no: 2, name: "details", kind: "message", T: Details },
- ],
-);
-
-/**
- * @generated from message zitadel.action.v3alpha.UpdateTargetRequest
- */
-export const UpdateTargetRequest = /*@__PURE__*/ proto3.makeMessageType(
- "zitadel.action.v3alpha.UpdateTargetRequest",
- () => [
- { no: 1, name: "target_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
- { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
- { no: 3, name: "rest_webhook", kind: "message", T: SetRESTWebhook, oneof: "target_type" },
- { no: 4, name: "rest_call", kind: "message", T: SetRESTCall, oneof: "target_type" },
- { no: 5, name: "rest_async", kind: "message", T: SetRESTAsync, oneof: "target_type" },
- { no: 6, name: "timeout", kind: "message", T: Duration, opt: true },
- { no: 7, name: "endpoint", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
- ],
-);
-
-/**
- * @generated from message zitadel.action.v3alpha.UpdateTargetResponse
- */
-export const UpdateTargetResponse = /*@__PURE__*/ proto3.makeMessageType(
- "zitadel.action.v3alpha.UpdateTargetResponse",
- () => [
- { no: 1, name: "details", kind: "message", T: Details },
- ],
-);
-
-/**
- * @generated from message zitadel.action.v3alpha.DeleteTargetRequest
- */
-export const DeleteTargetRequest = /*@__PURE__*/ proto3.makeMessageType(
- "zitadel.action.v3alpha.DeleteTargetRequest",
- () => [
- { no: 1, name: "target_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
- ],
-);
-
-/**
- * @generated from message zitadel.action.v3alpha.DeleteTargetResponse
- */
-export const DeleteTargetResponse = /*@__PURE__*/ proto3.makeMessageType(
- "zitadel.action.v3alpha.DeleteTargetResponse",
- () => [
- { no: 1, name: "details", kind: "message", T: Details },
- ],
-);
-
-/**
- * @generated from message zitadel.action.v3alpha.ListTargetsRequest
- */
-export const ListTargetsRequest = /*@__PURE__*/ proto3.makeMessageType(
- "zitadel.action.v3alpha.ListTargetsRequest",
- () => [
- { no: 1, name: "query", kind: "message", T: ListQuery },
- { no: 2, name: "sorting_column", kind: "enum", T: proto3.getEnumType(TargetFieldName) },
- { no: 3, name: "queries", kind: "message", T: TargetSearchQuery, repeated: true },
- ],
-);
-
-/**
- * @generated from message zitadel.action.v3alpha.ListTargetsResponse
- */
-export const ListTargetsResponse = /*@__PURE__*/ proto3.makeMessageType(
- "zitadel.action.v3alpha.ListTargetsResponse",
- () => [
- { no: 1, name: "details", kind: "message", T: ListDetails },
- { no: 2, name: "sorting_column", kind: "enum", T: proto3.getEnumType(TargetFieldName) },
- { no: 3, name: "result", kind: "message", T: Target, repeated: true },
- ],
-);
-
-/**
- * @generated from message zitadel.action.v3alpha.GetTargetByIDRequest
- */
-export const GetTargetByIDRequest = /*@__PURE__*/ proto3.makeMessageType(
- "zitadel.action.v3alpha.GetTargetByIDRequest",
- () => [
- { no: 1, name: "target_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
- ],
-);
-
-/**
- * @generated from message zitadel.action.v3alpha.GetTargetByIDResponse
- */
-export const GetTargetByIDResponse = /*@__PURE__*/ proto3.makeMessageType(
- "zitadel.action.v3alpha.GetTargetByIDResponse",
- () => [
- { no: 1, name: "target", kind: "message", T: Target },
- ],
-);
-
-/**
- * @generated from message zitadel.action.v3alpha.SetExecutionRequest
- */
-export const SetExecutionRequest = /*@__PURE__*/ proto3.makeMessageType(
- "zitadel.action.v3alpha.SetExecutionRequest",
- () => [
- { no: 1, name: "condition", kind: "message", T: Condition },
- { no: 2, name: "targets", kind: "message", T: ExecutionTargetType, repeated: true },
- ],
-);
-
-/**
- * @generated from message zitadel.action.v3alpha.SetExecutionResponse
- */
-export const SetExecutionResponse = /*@__PURE__*/ proto3.makeMessageType(
- "zitadel.action.v3alpha.SetExecutionResponse",
- () => [
- { no: 2, name: "details", kind: "message", T: Details },
- ],
-);
-
-/**
- * @generated from message zitadel.action.v3alpha.DeleteExecutionRequest
- */
-export const DeleteExecutionRequest = /*@__PURE__*/ proto3.makeMessageType(
- "zitadel.action.v3alpha.DeleteExecutionRequest",
- () => [
- { no: 1, name: "condition", kind: "message", T: Condition },
- ],
-);
-
-/**
- * @generated from message zitadel.action.v3alpha.DeleteExecutionResponse
- */
-export const DeleteExecutionResponse = /*@__PURE__*/ proto3.makeMessageType(
- "zitadel.action.v3alpha.DeleteExecutionResponse",
- () => [
- { no: 1, name: "details", kind: "message", T: Details },
- ],
-);
-
-/**
- * @generated from message zitadel.action.v3alpha.ListExecutionsRequest
- */
-export const ListExecutionsRequest = /*@__PURE__*/ proto3.makeMessageType(
- "zitadel.action.v3alpha.ListExecutionsRequest",
- () => [
- { no: 1, name: "query", kind: "message", T: ListQuery },
- { no: 2, name: "queries", kind: "message", T: SearchQuery, repeated: true },
- ],
-);
-
-/**
- * @generated from message zitadel.action.v3alpha.ListExecutionsResponse
- */
-export const ListExecutionsResponse = /*@__PURE__*/ proto3.makeMessageType(
- "zitadel.action.v3alpha.ListExecutionsResponse",
- () => [
- { no: 1, name: "details", kind: "message", T: ListDetails },
- { no: 2, name: "result", kind: "message", T: Execution, repeated: true },
- ],
-);
-
-/**
- * @generated from message zitadel.action.v3alpha.ListExecutionFunctionsRequest
- */
-export const ListExecutionFunctionsRequest = /*@__PURE__*/ proto3.makeMessageType(
- "zitadel.action.v3alpha.ListExecutionFunctionsRequest",
- [],
-);
-
-/**
- * @generated from message zitadel.action.v3alpha.ListExecutionFunctionsResponse
- */
-export const ListExecutionFunctionsResponse = /*@__PURE__*/ proto3.makeMessageType(
- "zitadel.action.v3alpha.ListExecutionFunctionsResponse",
- () => [
- { no: 1, name: "functions", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
- ],
-);
-
-/**
- * @generated from message zitadel.action.v3alpha.ListExecutionMethodsRequest
- */
-export const ListExecutionMethodsRequest = /*@__PURE__*/ proto3.makeMessageType(
- "zitadel.action.v3alpha.ListExecutionMethodsRequest",
- [],
-);
-
-/**
- * @generated from message zitadel.action.v3alpha.ListExecutionMethodsResponse
- */
-export const ListExecutionMethodsResponse = /*@__PURE__*/ proto3.makeMessageType(
- "zitadel.action.v3alpha.ListExecutionMethodsResponse",
- () => [
- { no: 1, name: "methods", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
- ],
-);
-
-/**
- * @generated from message zitadel.action.v3alpha.ListExecutionServicesRequest
- */
-export const ListExecutionServicesRequest = /*@__PURE__*/ proto3.makeMessageType(
- "zitadel.action.v3alpha.ListExecutionServicesRequest",
- [],
-);
-
-/**
- * @generated from message zitadel.action.v3alpha.ListExecutionServicesResponse
- */
-export const ListExecutionServicesResponse = /*@__PURE__*/ proto3.makeMessageType(
- "zitadel.action.v3alpha.ListExecutionServicesResponse",
- () => [
- { no: 1, name: "services", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
- ],
-);
-
diff --git a/packages/zitadel-proto/zitadel/action/v3alpha/execution_pb.d.ts b/packages/zitadel-proto/zitadel/action/v3alpha/execution_pb.d.ts
deleted file mode 100644
index dabe1011..00000000
--- a/packages/zitadel-proto/zitadel/action/v3alpha/execution_pb.d.ts
+++ /dev/null
@@ -1,431 +0,0 @@
-// @generated by protoc-gen-es v1.9.0
-// @generated from file zitadel/action/v3alpha/execution.proto (package zitadel.action.v3alpha, syntax proto3)
-/* eslint-disable */
-// @ts-nocheck
-
-import type {
- BinaryReadOptions,
- FieldList,
- JsonReadOptions,
- JsonValue,
- PartialMessage,
- PlainMessage,
-} from "@bufbuild/protobuf";
-import { Message, proto3 } from "@bufbuild/protobuf";
-import type { Details } from "../../object/v2beta/object_pb.js";
-
-/**
- * @generated from message zitadel.action.v3alpha.Execution
- */
-export declare class Execution extends Message {
- /**
- * @generated from field: zitadel.action.v3alpha.Condition Condition = 1;
- */
- Condition?: Condition;
-
- /**
- * Details provide some base information (such as the last change date) of the target.
- *
- * @generated from field: zitadel.object.v2beta.Details details = 2;
- */
- details?: Details;
-
- /**
- * List of ordered list of targets/includes called during the execution.
- *
- * @generated from field: repeated zitadel.action.v3alpha.ExecutionTargetType targets = 3;
- */
- targets: ExecutionTargetType[];
-
- constructor(data?: PartialMessage);
-
- static readonly runtime: typeof proto3;
- static readonly typeName = "zitadel.action.v3alpha.Execution";
- static readonly fields: FieldList;
-
- static fromBinary(
- bytes: Uint8Array,
- options?: Partial,
- ): Execution;
-
- static fromJson(
- jsonValue: JsonValue,
- options?: Partial,
- ): Execution;
-
- static fromJsonString(
- jsonString: string,
- options?: Partial,
- ): Execution;
-
- static equals(
- a: Execution | PlainMessage | undefined,
- b: Execution | PlainMessage | undefined,
- ): boolean;
-}
-
-/**
- * @generated from message zitadel.action.v3alpha.ExecutionTargetType
- */
-export declare class ExecutionTargetType extends Message {
- /**
- * @generated from oneof zitadel.action.v3alpha.ExecutionTargetType.type
- */
- type:
- | {
- /**
- * Unique identifier of existing target to call.
- *
- * @generated from field: string target = 1;
- */
- value: string;
- case: "target";
- }
- | {
- /**
- * Unique identifier of existing execution to include targets of.
- *
- * @generated from field: zitadel.action.v3alpha.Condition include = 2;
- */
- value: Condition;
- case: "include";
- }
- | { case: undefined; value?: undefined };
-
- constructor(data?: PartialMessage);
-
- static readonly runtime: typeof proto3;
- static readonly typeName = "zitadel.action.v3alpha.ExecutionTargetType";
- static readonly fields: FieldList;
-
- static fromBinary(
- bytes: Uint8Array,
- options?: Partial,
- ): ExecutionTargetType;
-
- static fromJson(
- jsonValue: JsonValue,
- options?: Partial,
- ): ExecutionTargetType;
-
- static fromJsonString(
- jsonString: string,
- options?: Partial,
- ): ExecutionTargetType;
-
- static equals(
- a: ExecutionTargetType | PlainMessage | undefined,
- b: ExecutionTargetType | PlainMessage | undefined,
- ): boolean;
-}
-
-/**
- * @generated from message zitadel.action.v3alpha.Condition
- */
-export declare class Condition extends Message {
- /**
- * Condition-types under which conditions the execution should happen, only one possible.
- *
- * @generated from oneof zitadel.action.v3alpha.Condition.condition_type
- */
- conditionType:
- | {
- /**
- * Condition-type to execute if a request on the defined API point happens.
- *
- * @generated from field: zitadel.action.v3alpha.RequestExecution request = 1;
- */
- value: RequestExecution;
- case: "request";
- }
- | {
- /**
- * Condition-type to execute on response if a request on the defined API point happens.
- *
- * @generated from field: zitadel.action.v3alpha.ResponseExecution response = 2;
- */
- value: ResponseExecution;
- case: "response";
- }
- | {
- /**
- * Condition-type to execute if function is used, replaces actions v1.
- *
- * @generated from field: zitadel.action.v3alpha.FunctionExecution function = 3;
- */
- value: FunctionExecution;
- case: "function";
- }
- | {
- /**
- * Condition-type to execute if an event is created in the system.
- *
- * @generated from field: zitadel.action.v3alpha.EventExecution event = 4;
- */
- value: EventExecution;
- case: "event";
- }
- | { case: undefined; value?: undefined };
-
- constructor(data?: PartialMessage);
-
- static readonly runtime: typeof proto3;
- static readonly typeName = "zitadel.action.v3alpha.Condition";
- static readonly fields: FieldList;
-
- static fromBinary(
- bytes: Uint8Array,
- options?: Partial,
- ): Condition;
-
- static fromJson(
- jsonValue: JsonValue,
- options?: Partial,
- ): Condition;
-
- static fromJsonString(
- jsonString: string,
- options?: Partial,
- ): Condition;
-
- static equals(
- a: Condition | PlainMessage | undefined,
- b: Condition | PlainMessage | undefined,
- ): boolean;
-}
-
-/**
- * @generated from message zitadel.action.v3alpha.RequestExecution
- */
-export declare class RequestExecution extends Message {
- /**
- * Condition for the request execution, only one possible.
- *
- * @generated from oneof zitadel.action.v3alpha.RequestExecution.condition
- */
- condition:
- | {
- /**
- * GRPC-method as condition.
- *
- * @generated from field: string method = 1;
- */
- value: string;
- case: "method";
- }
- | {
- /**
- * GRPC-service as condition.
- *
- * @generated from field: string service = 2;
- */
- value: string;
- case: "service";
- }
- | {
- /**
- * All calls to any available service and endpoint as condition.
- *
- * @generated from field: bool all = 3;
- */
- value: boolean;
- case: "all";
- }
- | { case: undefined; value?: undefined };
-
- constructor(data?: PartialMessage);
-
- static readonly runtime: typeof proto3;
- static readonly typeName = "zitadel.action.v3alpha.RequestExecution";
- static readonly fields: FieldList;
-
- static fromBinary(
- bytes: Uint8Array,
- options?: Partial,
- ): RequestExecution;
-
- static fromJson(
- jsonValue: JsonValue,
- options?: Partial,
- ): RequestExecution;
-
- static fromJsonString(
- jsonString: string,
- options?: Partial,
- ): RequestExecution;
-
- static equals(
- a: RequestExecution | PlainMessage | undefined,
- b: RequestExecution | PlainMessage | undefined,
- ): boolean;
-}
-
-/**
- * @generated from message zitadel.action.v3alpha.ResponseExecution
- */
-export declare class ResponseExecution extends Message {
- /**
- * Condition for the response execution, only one possible.
- *
- * @generated from oneof zitadel.action.v3alpha.ResponseExecution.condition
- */
- condition:
- | {
- /**
- * GRPC-method as condition.
- *
- * @generated from field: string method = 1;
- */
- value: string;
- case: "method";
- }
- | {
- /**
- * GRPC-service as condition.
- *
- * @generated from field: string service = 2;
- */
- value: string;
- case: "service";
- }
- | {
- /**
- * All calls to any available service and endpoint as condition.
- *
- * @generated from field: bool all = 3;
- */
- value: boolean;
- case: "all";
- }
- | { case: undefined; value?: undefined };
-
- constructor(data?: PartialMessage);
-
- static readonly runtime: typeof proto3;
- static readonly typeName = "zitadel.action.v3alpha.ResponseExecution";
- static readonly fields: FieldList;
-
- static fromBinary(
- bytes: Uint8Array,
- options?: Partial,
- ): ResponseExecution;
-
- static fromJson(
- jsonValue: JsonValue,
- options?: Partial,
- ): ResponseExecution;
-
- static fromJsonString(
- jsonString: string,
- options?: Partial,
- ): ResponseExecution;
-
- static equals(
- a: ResponseExecution | PlainMessage | undefined,
- b: ResponseExecution | PlainMessage | undefined,
- ): boolean;
-}
-
-/**
- * Executed on the specified function
- *
- * @generated from message zitadel.action.v3alpha.FunctionExecution
- */
-export declare class FunctionExecution extends Message {
- /**
- * @generated from field: string name = 1;
- */
- name: string;
-
- constructor(data?: PartialMessage