Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

Change the pattern of op ids

Fang-Pen Lin56664a3426c0
diff --git a/backend/src/server/routes/v1/app-connection-routers/app-connection-endpoints.ts b/backend/src/server/routes/v1/app-connection-routers/app-connection-endpoints.ts
index 489536ca12..6ff77d9cff 100644
--- a/backend/src/server/routes/v1/app-connection-routers/app-connection-endpoints.ts
+++ b/backend/src/server/routes/v1/app-connection-routers/app-connection-endpoints.ts
@@ -66,7 +66,7 @@ export const registerAppConnectionEndpoints = <T extends TAppConnection, I exten
},
schema: {
hide: false,
- operationId: `listAppConnections${appNameForOpId}`,
+ operationId: `list${appNameForOpId}AppConnections`,
tags: [ApiDocsTags.AppConnections],
description: `List the ${appName} Connections for the current organization or project.`,
querystring: z.object({
@@ -111,7 +111,7 @@ export const registerAppConnectionEndpoints = <T extends TAppConnection, I exten
},
schema: {
hide: false,
- operationId: `listAvailableAppConnections${appNameForOpId}`,
+ operationId: `list${appNameForOpId}AvailableAppConnections`,
tags: [ApiDocsTags.AppConnections],
description: `List the ${appName} Connections the current user has permission to establish connections within this project.`,
querystring: z.object({
@@ -166,7 +166,7 @@ export const registerAppConnectionEndpoints = <T extends TAppConnection, I exten
},
schema: {
hide: false,
- operationId: `getAppConnection${appNameForOpId}`,
+ operationId: `get${appNameForOpId}AppConnection`,
tags: [ApiDocsTags.AppConnections],
description: `Get the specified ${appName} Connection by ID.`,
params: z.object({
@@ -210,7 +210,7 @@ export const registerAppConnectionEndpoints = <T extends TAppConnection, I exten
},
schema: {
hide: false,
- operationId: `getAppConnectionByName${appNameForOpId}`,
+ operationId: `get${appNameForOpId}AppConnectionByName`,
tags: [ApiDocsTags.AppConnections],
description: `Get the specified ${appName} Connection by name.`,
params: z.object({
@@ -265,7 +265,7 @@ export const registerAppConnectionEndpoints = <T extends TAppConnection, I exten
},
schema: {
hide: false,
- operationId: `createAppConnection${appNameForOpId}`,
+ operationId: `create${appNameForOpId}AppConnection`,
tags: [ApiDocsTags.AppConnections],
description: `Create ${startsWithVowel(appName) ? "an" : "a"} ${appName} Connection.`,
body: createSchema,
@@ -310,7 +310,7 @@ export const registerAppConnectionEndpoints = <T extends TAppConnection, I exten
},
schema: {
hide: false,
- operationId: `updateAppConnection${appNameForOpId}`,
+ operationId: `update${appNameForOpId}AppConnection`,
tags: [ApiDocsTags.AppConnections],
description: `Update the specified ${appName} Connection.`,
params: z.object({
@@ -359,7 +359,7 @@ export const registerAppConnectionEndpoints = <T extends TAppConnection, I exten
},
schema: {
hide: false,
- operationId: `deleteAppConnection${appNameForOpId}`,
+ operationId: `delete${appNameForOpId}AppConnection`,
tags: [ApiDocsTags.AppConnections],
description: `Delete the specified ${appName} Connection.`,
params: z.object({
diff --git a/backend/src/server/routes/v1/certificate-authority-routers/certificate-authority-endpoints.ts b/backend/src/server/routes/v1/certificate-authority-routers/certificate-authority-endpoints.ts
index 9f2a451ac9..bc74f1abc9 100644
--- a/backend/src/server/routes/v1/certificate-authority-routers/certificate-authority-endpoints.ts
+++ b/backend/src/server/routes/v1/certificate-authority-routers/certificate-authority-endpoints.ts
@@ -47,7 +47,7 @@ export const registerCertificateAuthorityEndpoints = <
},
schema: {
hide: false,
- operationId: `listCertificateAuthoritiesV1${caTypeNameForOpId}`,
+ operationId: `list${caTypeNameForOpId}CertificateAuthoritiesV1`,
tags: [ApiDocsTags.PkiCertificateAuthorities],
querystring: z.object({
projectId: z.string().trim().min(1, "Project ID required")
@@ -90,7 +90,7 @@ export const registerCertificateAuthorityEndpoints = <
},
schema: {
hide: false,
- operationId: `getCertificateAuthorityV1${caTypeNameForOpId}`,
+ operationId: `get${caTypeNameForOpId}CertificateAuthorityV1`,
tags: [ApiDocsTags.PkiCertificateAuthorities],
params: z.object({
id: z.string()
@@ -132,7 +132,7 @@ export const registerCertificateAuthorityEndpoints = <
},
schema: {
hide: false,
- operationId: `createCertificateAuthorityV1${caTypeNameForOpId}`,
+ operationId: `create${caTypeNameForOpId}CertificateAuthorityV1`,
tags: [ApiDocsTags.PkiCertificateAuthorities],
body: createSchema,
response: {
@@ -170,7 +170,7 @@ export const registerCertificateAuthorityEndpoints = <
},
schema: {
hide: false,
- operationId: `updateCertificateAuthorityV1${caTypeNameForOpId}`,
+ operationId: `update${caTypeNameForOpId}CertificateAuthorityV1`,
tags: [ApiDocsTags.PkiCertificateAuthorities],
params: z.object({
id: z.string()
@@ -218,7 +218,7 @@ export const registerCertificateAuthorityEndpoints = <
},
schema: {
hide: false,
- operationId: `deleteCertificateAuthorityV1${caTypeNameForOpId}`,
+ operationId: `delete${caTypeNameForOpId}CertificateAuthorityV1`,
tags: [ApiDocsTags.PkiCertificateAuthorities],
params: z.object({
id: z.string()
diff --git a/backend/src/server/routes/v1/pki-sync-routers/pki-sync-endpoints.ts b/backend/src/server/routes/v1/pki-sync-routers/pki-sync-endpoints.ts
index b59ee109b5..262787050a 100644
--- a/backend/src/server/routes/v1/pki-sync-routers/pki-sync-endpoints.ts
+++ b/backend/src/server/routes/v1/pki-sync-routers/pki-sync-endpoints.ts
@@ -57,7 +57,7 @@ export const registerSyncPkiEndpoints = ({
},
schema: {
hide: false,
- operationId: `listPkiSyncs${destinationNameForOpId}`,
+ operationId: `list${destinationNameForOpId}PkiSyncs`,
tags: [ApiDocsTags.PkiSyncs],
description: `List the ${destinationName} PKI Syncs for the specified project.`,
querystring: z.object({
@@ -98,7 +98,7 @@ export const registerSyncPkiEndpoints = ({
},
schema: {
hide: false,
- operationId: `getPkiSync${destinationNameForOpId}`,
+ operationId: `get${destinationNameForOpId}PkiSync`,
tags: [ApiDocsTags.PkiSyncs],
description: `Get the specified ${destinationName} PKI Sync by ID.`,
params: z.object({
@@ -138,7 +138,7 @@ export const registerSyncPkiEndpoints = ({
},
schema: {
hide: false,
- operationId: `createPkiSync${destinationNameForOpId}`,
+ operationId: `create${destinationNameForOpId}PkiSync`,
tags: [ApiDocsTags.PkiSyncs],
description: `Create a ${destinationName} PKI Sync for the specified project.`,
body: createSchema,
@@ -175,7 +175,7 @@ export const registerSyncPkiEndpoints = ({
},
schema: {
hide: false,
- operationId: `updatePkiSync${destinationNameForOpId}`,
+ operationId: `update${destinationNameForOpId}PkiSync`,
tags: [ApiDocsTags.PkiSyncs],
description: `Update the specified ${destinationName} PKI Sync.`,
params: z.object({
@@ -216,7 +216,7 @@ export const registerSyncPkiEndpoints = ({
},
schema: {
hide: false,
- operationId: `deletePkiSync${destinationNameForOpId}`,
+ operationId: `delete${destinationNameForOpId}PkiSync`,
tags: [ApiDocsTags.PkiSyncs],
description: `Delete the specified ${destinationName} PKI Sync.`,
params: z.object({
@@ -257,7 +257,7 @@ export const registerSyncPkiEndpoints = ({
},
schema: {
hide: false,
- operationId: `syncPkiSync${destinationNameForOpId}`,
+ operationId: `sync${destinationNameForOpId}PkiSync`,
tags: [ApiDocsTags.PkiSyncs],
description: `Trigger a sync for the specified ${destinationName} PKI Sync.`,
params: z.object({
@@ -292,7 +292,7 @@ export const registerSyncPkiEndpoints = ({
},
schema: {
hide: false,
- operationId: `importPkiSyncCertificates${destinationNameForOpId}`,
+ operationId: `import${destinationNameForOpId}PkiSyncCertificates`,
tags: [ApiDocsTags.PkiSyncs],
description: `Import certificates from the specified ${destinationName} PKI Sync destination.`,
params: z.object({
@@ -326,7 +326,7 @@ export const registerSyncPkiEndpoints = ({
},
schema: {
hide: false,
- operationId: `removePkiSyncCertificates${destinationNameForOpId}`,
+ operationId: `remove${destinationNameForOpId}PkiSyncCertificates`,
tags: [ApiDocsTags.PkiSyncs],
description: `Remove certificates from the specified ${destinationName} PKI Sync destination.`,
params: z.object({
diff --git a/backend/src/server/routes/v1/secret-sync-routers/secret-sync-endpoints.ts b/backend/src/server/routes/v1/secret-sync-routers/secret-sync-endpoints.ts
index 1cd637dd9e..90e4fe069a 100644
--- a/backend/src/server/routes/v1/secret-sync-routers/secret-sync-endpoints.ts
+++ b/backend/src/server/routes/v1/secret-sync-routers/secret-sync-endpoints.ts
@@ -66,7 +66,7 @@ export const registerSyncSecretsEndpoints = <T extends TSecretSync, I extends TS
},
schema: {
hide: false,
- operationId: `listSecretSyncs${destinationNameForOpId}`,
+ operationId: `list${destinationNameForOpId}SecretSyncs`,
tags: [ApiDocsTags.SecretSyncs],
description: `List the ${destinationName} Syncs for the specified project.`,
querystring: z.object({
@@ -112,7 +112,7 @@ export const registerSyncSecretsEndpoints = <T extends TSecretSync, I extends TS
},
schema: {
hide: false,
- operationId: `getSecretSync${destinationNameForOpId}`,
+ operationId: `get${destinationNameForOpId}SecretSync`,
tags: [ApiDocsTags.SecretSyncs],
description: `Get the specified ${destinationName} Sync by ID.`,
params: z.object({
@@ -155,7 +155,7 @@ export const registerSyncSecretsEndpoints = <T extends TSecretSync, I extends TS
},
schema: {
hide: false,
- operationId: `getSecretSyncByName${destinationNameForOpId}`,
+ operationId: `get${destinationNameForOpId}SecretSyncByName`,
tags: [ApiDocsTags.SecretSyncs],
description: `Get the specified ${destinationName} Sync by name and project ID.`,
params: z.object({
@@ -206,7 +206,7 @@ export const registerSyncSecretsEndpoints = <T extends TSecretSync, I extends TS
},
schema: {
hide: false,
- operationId: `createSecretSync${destinationNameForOpId}`,
+ operationId: `create${destinationNameForOpId}SecretSync`,
tags: [ApiDocsTags.SecretSyncs],
description: `Create ${
startsWithVowel(destinationName) ? "an" : "a"
@@ -248,7 +248,7 @@ export const registerSyncSecretsEndpoints = <T extends TSecretSync, I extends TS
},
schema: {
hide: false,
- operationId: `updateSecretSync${destinationNameForOpId}`,
+ operationId: `update${destinationNameForOpId}SecretSync`,
tags: [ApiDocsTags.SecretSyncs],
description: `Update the specified ${destinationName} Sync.`,
params: z.object({
@@ -293,7 +293,7 @@ export const registerSyncSecretsEndpoints = <T extends TSecretSync, I extends TS
},
schema: {
hide: false,
- operationId: `deleteSecretSync${destinationNameForOpId}`,
+ operationId: `delete${destinationNameForOpId}SecretSync`,
tags: [ApiDocsTags.SecretSyncs],
description: `Delete the specified ${destinationName} Sync.`,
params: z.object({
@@ -345,7 +345,7 @@ export const registerSyncSecretsEndpoints = <T extends TSecretSync, I extends TS
},
schema: {
hide: false,
- operationId: `syncSecretSync${destinationNameForOpId}`,
+ operationId: `sync${destinationNameForOpId}SecretSync`,
tags: [ApiDocsTags.SecretSyncs],
description: `Trigger a sync for the specified ${destinationName} Sync.`,
params: z.object({
@@ -380,7 +380,7 @@ export const registerSyncSecretsEndpoints = <T extends TSecretSync, I extends TS
},
schema: {
hide: false,
- operationId: `importSecretSyncSecrets${destinationNameForOpId}`,
+ operationId: `import${destinationNameForOpId}SecretSyncSecrets`,
tags: [ApiDocsTags.SecretSyncs],
description: `Import secrets from the specified ${destinationName} Sync destination.`,
params: z.object({
@@ -422,7 +422,7 @@ export const registerSyncSecretsEndpoints = <T extends TSecretSync, I extends TS
},
schema: {
hide: false,
- operationId: `removeSecretSyncSecrets${destinationNameForOpId}`,
+ operationId: `remove${destinationNameForOpId}SecretSyncSecrets`,
tags: [ApiDocsTags.SecretSyncs],
description: `Remove previously synced secrets from the specified ${destinationName} Sync destination.`,
params: z.object({
@@ -456,7 +456,7 @@ export const registerSyncSecretsEndpoints = <T extends TSecretSync, I extends TS
rateLimit: readLimit
},
schema: {
- operationId: `checkSecretSyncDestination${destinationNameForOpId}`,
+ operationId: `check${destinationNameForOpId}SecretSyncDestination`,
tags: [ApiDocsTags.SecretSyncs],
body: z.object({
destinationConfig: z.unknown(),