@crowi/api-contract 2.0.0-alpha.17 → 2.0.0-alpha.18
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/dist/index.d.mts +34 -34
- package/dist/index.d.ts +34 -34
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -12134,9 +12134,15 @@ declare const federatedAuthContractApp: OpenAPIHono<hono.Env, {
|
|
|
12134
12134
|
handoff_proof: string;
|
|
12135
12135
|
};
|
|
12136
12136
|
};
|
|
12137
|
-
output: {
|
|
12138
|
-
|
|
12139
|
-
|
|
12137
|
+
output: {
|
|
12138
|
+
error: {
|
|
12139
|
+
code: "AUTHENTICATION_REQUIRED" | "ADMIN_REQUIRED" | "THIRD_PARTY_AUTH_REQUIRED" | "USER_REGISTERED" | "USER_SUSPENDED" | "USER_INVITED" | "USER_NOT_ACTIVE" | "EMAIL_NOT_CONFIRMED" | "INTERNAL_ERROR" | "VALIDATION_ERROR" | "INVALID_REQUEST" | "NOT_FOUND" | "CONFLICT" | "SERVICE_UNAVAILABLE" | "APPLICATION_NOT_INSTALLED" | "INVALID_PAGE_ID" | "PAGE_NOT_FOUND" | "PAGE_NOT_GRANTED" | "PAGE_REVISION_ERROR" | "PAGE_TWIN_EXISTS" | "INVALID_GRANT" | "IDEMPOTENCY_KEY_REQUIRED" | "IDEMPOTENCY_KEY_CONFLICT" | "PAGE_TRANSITION_IN_PROGRESS" | "PAGE_TRANSITION_INCOMPLETE" | "COMMENT_NOT_FOUND" | "NOTIFICATION_NOT_FOUND" | "USER_NOT_FOUND" | "USER_EXISTS" | "USERNAME_TAKEN" | "EMAIL_TAKEN" | "EMAIL_NOT_ALLOWED" | "INVALID_ACTIVATION_TOKEN" | "INVALID_INVITE_TOKEN" | "INVITE_ALREADY_ACCEPTED" | "INVALID_RESET_TOKEN" | "INVALID_EMAIL_CHANGE_TOKEN" | "INVALID_CREDENTIALS" | "REFRESH_TOKEN_REQUIRED" | "REGISTRATION_CLOSED" | "FEDERATED_HANDOFF_INVALID" | "FEDERATED_HANDOFF_CONSUMED" | "FEDERATED_IDENTITY_IN_USE" | "FEDERATED_LINK_AUTH_STATE_CHANGED" | "FEDERATED_LINK_NOT_LINKED" | "LINK_COMPLETION_CONSUMED" | "ENCRYPTION_NOT_CONFIGURED" | "MAIL_FROM_NOT_CONFIGURED" | "MAIL_TEST_FAILED" | "PLUGIN_NOT_FOUND" | "PLUGIN_CONFIG_VALIDATION_FAILED" | "LINKED_IDENTITIES_EXIST";
|
|
12140
|
+
message: string;
|
|
12141
|
+
details?: any;
|
|
12142
|
+
};
|
|
12143
|
+
};
|
|
12144
|
+
outputFormat: "json";
|
|
12145
|
+
status: 400;
|
|
12140
12146
|
} | {
|
|
12141
12147
|
input: {
|
|
12142
12148
|
param: {
|
|
@@ -12157,7 +12163,7 @@ declare const federatedAuthContractApp: OpenAPIHono<hono.Env, {
|
|
|
12157
12163
|
};
|
|
12158
12164
|
};
|
|
12159
12165
|
outputFormat: "json";
|
|
12160
|
-
status:
|
|
12166
|
+
status: 404;
|
|
12161
12167
|
} | {
|
|
12162
12168
|
input: {
|
|
12163
12169
|
param: {
|
|
@@ -12170,15 +12176,9 @@ declare const federatedAuthContractApp: OpenAPIHono<hono.Env, {
|
|
|
12170
12176
|
handoff_proof: string;
|
|
12171
12177
|
};
|
|
12172
12178
|
};
|
|
12173
|
-
output: {
|
|
12174
|
-
|
|
12175
|
-
|
|
12176
|
-
message: string;
|
|
12177
|
-
details?: any;
|
|
12178
|
-
};
|
|
12179
|
-
};
|
|
12180
|
-
outputFormat: "json";
|
|
12181
|
-
status: 404;
|
|
12179
|
+
output: {};
|
|
12180
|
+
outputFormat: string;
|
|
12181
|
+
status: 302;
|
|
12182
12182
|
};
|
|
12183
12183
|
};
|
|
12184
12184
|
} & {
|
|
@@ -12215,9 +12215,15 @@ declare const federatedAuthContractApp: OpenAPIHono<hono.Env, {
|
|
|
12215
12215
|
error?: string | undefined;
|
|
12216
12216
|
};
|
|
12217
12217
|
};
|
|
12218
|
-
output: {
|
|
12219
|
-
|
|
12220
|
-
|
|
12218
|
+
output: {
|
|
12219
|
+
error: {
|
|
12220
|
+
code: "AUTHENTICATION_REQUIRED" | "ADMIN_REQUIRED" | "THIRD_PARTY_AUTH_REQUIRED" | "USER_REGISTERED" | "USER_SUSPENDED" | "USER_INVITED" | "USER_NOT_ACTIVE" | "EMAIL_NOT_CONFIRMED" | "INTERNAL_ERROR" | "VALIDATION_ERROR" | "INVALID_REQUEST" | "NOT_FOUND" | "CONFLICT" | "SERVICE_UNAVAILABLE" | "APPLICATION_NOT_INSTALLED" | "INVALID_PAGE_ID" | "PAGE_NOT_FOUND" | "PAGE_NOT_GRANTED" | "PAGE_REVISION_ERROR" | "PAGE_TWIN_EXISTS" | "INVALID_GRANT" | "IDEMPOTENCY_KEY_REQUIRED" | "IDEMPOTENCY_KEY_CONFLICT" | "PAGE_TRANSITION_IN_PROGRESS" | "PAGE_TRANSITION_INCOMPLETE" | "COMMENT_NOT_FOUND" | "NOTIFICATION_NOT_FOUND" | "USER_NOT_FOUND" | "USER_EXISTS" | "USERNAME_TAKEN" | "EMAIL_TAKEN" | "EMAIL_NOT_ALLOWED" | "INVALID_ACTIVATION_TOKEN" | "INVALID_INVITE_TOKEN" | "INVITE_ALREADY_ACCEPTED" | "INVALID_RESET_TOKEN" | "INVALID_EMAIL_CHANGE_TOKEN" | "INVALID_CREDENTIALS" | "REFRESH_TOKEN_REQUIRED" | "REGISTRATION_CLOSED" | "FEDERATED_HANDOFF_INVALID" | "FEDERATED_HANDOFF_CONSUMED" | "FEDERATED_IDENTITY_IN_USE" | "FEDERATED_LINK_AUTH_STATE_CHANGED" | "FEDERATED_LINK_NOT_LINKED" | "LINK_COMPLETION_CONSUMED" | "ENCRYPTION_NOT_CONFIGURED" | "MAIL_FROM_NOT_CONFIGURED" | "MAIL_TEST_FAILED" | "PLUGIN_NOT_FOUND" | "PLUGIN_CONFIG_VALIDATION_FAILED" | "LINKED_IDENTITIES_EXIST";
|
|
12221
|
+
message: string;
|
|
12222
|
+
details?: any;
|
|
12223
|
+
};
|
|
12224
|
+
};
|
|
12225
|
+
outputFormat: "json";
|
|
12226
|
+
status: 404;
|
|
12221
12227
|
} | {
|
|
12222
12228
|
input: {
|
|
12223
12229
|
param: {
|
|
@@ -12230,15 +12236,9 @@ declare const federatedAuthContractApp: OpenAPIHono<hono.Env, {
|
|
|
12230
12236
|
error?: string | undefined;
|
|
12231
12237
|
};
|
|
12232
12238
|
};
|
|
12233
|
-
output: {
|
|
12234
|
-
|
|
12235
|
-
|
|
12236
|
-
message: string;
|
|
12237
|
-
details?: any;
|
|
12238
|
-
};
|
|
12239
|
-
};
|
|
12240
|
-
outputFormat: "json";
|
|
12241
|
-
status: 404;
|
|
12239
|
+
output: {};
|
|
12240
|
+
outputFormat: string;
|
|
12241
|
+
status: 302;
|
|
12242
12242
|
};
|
|
12243
12243
|
};
|
|
12244
12244
|
} & {
|
|
@@ -12716,15 +12716,6 @@ declare const federatedAuthContractApp: OpenAPIHono<hono.Env, {
|
|
|
12716
12716
|
};
|
|
12717
12717
|
outputFormat: "json";
|
|
12718
12718
|
status: 500;
|
|
12719
|
-
} | {
|
|
12720
|
-
input: {
|
|
12721
|
-
param: {
|
|
12722
|
-
name: string;
|
|
12723
|
-
};
|
|
12724
|
-
};
|
|
12725
|
-
output: {};
|
|
12726
|
-
outputFormat: string;
|
|
12727
|
-
status: 204;
|
|
12728
12719
|
} | {
|
|
12729
12720
|
input: {
|
|
12730
12721
|
param: {
|
|
@@ -12770,6 +12761,15 @@ declare const federatedAuthContractApp: OpenAPIHono<hono.Env, {
|
|
|
12770
12761
|
};
|
|
12771
12762
|
outputFormat: "json";
|
|
12772
12763
|
status: 401;
|
|
12764
|
+
} | {
|
|
12765
|
+
input: {
|
|
12766
|
+
param: {
|
|
12767
|
+
name: string;
|
|
12768
|
+
};
|
|
12769
|
+
};
|
|
12770
|
+
output: {};
|
|
12771
|
+
outputFormat: string;
|
|
12772
|
+
status: 204;
|
|
12773
12773
|
} | {
|
|
12774
12774
|
input: {
|
|
12775
12775
|
param: {
|
package/dist/index.d.ts
CHANGED
|
@@ -12134,9 +12134,15 @@ declare const federatedAuthContractApp: OpenAPIHono<hono.Env, {
|
|
|
12134
12134
|
handoff_proof: string;
|
|
12135
12135
|
};
|
|
12136
12136
|
};
|
|
12137
|
-
output: {
|
|
12138
|
-
|
|
12139
|
-
|
|
12137
|
+
output: {
|
|
12138
|
+
error: {
|
|
12139
|
+
code: "AUTHENTICATION_REQUIRED" | "ADMIN_REQUIRED" | "THIRD_PARTY_AUTH_REQUIRED" | "USER_REGISTERED" | "USER_SUSPENDED" | "USER_INVITED" | "USER_NOT_ACTIVE" | "EMAIL_NOT_CONFIRMED" | "INTERNAL_ERROR" | "VALIDATION_ERROR" | "INVALID_REQUEST" | "NOT_FOUND" | "CONFLICT" | "SERVICE_UNAVAILABLE" | "APPLICATION_NOT_INSTALLED" | "INVALID_PAGE_ID" | "PAGE_NOT_FOUND" | "PAGE_NOT_GRANTED" | "PAGE_REVISION_ERROR" | "PAGE_TWIN_EXISTS" | "INVALID_GRANT" | "IDEMPOTENCY_KEY_REQUIRED" | "IDEMPOTENCY_KEY_CONFLICT" | "PAGE_TRANSITION_IN_PROGRESS" | "PAGE_TRANSITION_INCOMPLETE" | "COMMENT_NOT_FOUND" | "NOTIFICATION_NOT_FOUND" | "USER_NOT_FOUND" | "USER_EXISTS" | "USERNAME_TAKEN" | "EMAIL_TAKEN" | "EMAIL_NOT_ALLOWED" | "INVALID_ACTIVATION_TOKEN" | "INVALID_INVITE_TOKEN" | "INVITE_ALREADY_ACCEPTED" | "INVALID_RESET_TOKEN" | "INVALID_EMAIL_CHANGE_TOKEN" | "INVALID_CREDENTIALS" | "REFRESH_TOKEN_REQUIRED" | "REGISTRATION_CLOSED" | "FEDERATED_HANDOFF_INVALID" | "FEDERATED_HANDOFF_CONSUMED" | "FEDERATED_IDENTITY_IN_USE" | "FEDERATED_LINK_AUTH_STATE_CHANGED" | "FEDERATED_LINK_NOT_LINKED" | "LINK_COMPLETION_CONSUMED" | "ENCRYPTION_NOT_CONFIGURED" | "MAIL_FROM_NOT_CONFIGURED" | "MAIL_TEST_FAILED" | "PLUGIN_NOT_FOUND" | "PLUGIN_CONFIG_VALIDATION_FAILED" | "LINKED_IDENTITIES_EXIST";
|
|
12140
|
+
message: string;
|
|
12141
|
+
details?: any;
|
|
12142
|
+
};
|
|
12143
|
+
};
|
|
12144
|
+
outputFormat: "json";
|
|
12145
|
+
status: 400;
|
|
12140
12146
|
} | {
|
|
12141
12147
|
input: {
|
|
12142
12148
|
param: {
|
|
@@ -12157,7 +12163,7 @@ declare const federatedAuthContractApp: OpenAPIHono<hono.Env, {
|
|
|
12157
12163
|
};
|
|
12158
12164
|
};
|
|
12159
12165
|
outputFormat: "json";
|
|
12160
|
-
status:
|
|
12166
|
+
status: 404;
|
|
12161
12167
|
} | {
|
|
12162
12168
|
input: {
|
|
12163
12169
|
param: {
|
|
@@ -12170,15 +12176,9 @@ declare const federatedAuthContractApp: OpenAPIHono<hono.Env, {
|
|
|
12170
12176
|
handoff_proof: string;
|
|
12171
12177
|
};
|
|
12172
12178
|
};
|
|
12173
|
-
output: {
|
|
12174
|
-
|
|
12175
|
-
|
|
12176
|
-
message: string;
|
|
12177
|
-
details?: any;
|
|
12178
|
-
};
|
|
12179
|
-
};
|
|
12180
|
-
outputFormat: "json";
|
|
12181
|
-
status: 404;
|
|
12179
|
+
output: {};
|
|
12180
|
+
outputFormat: string;
|
|
12181
|
+
status: 302;
|
|
12182
12182
|
};
|
|
12183
12183
|
};
|
|
12184
12184
|
} & {
|
|
@@ -12215,9 +12215,15 @@ declare const federatedAuthContractApp: OpenAPIHono<hono.Env, {
|
|
|
12215
12215
|
error?: string | undefined;
|
|
12216
12216
|
};
|
|
12217
12217
|
};
|
|
12218
|
-
output: {
|
|
12219
|
-
|
|
12220
|
-
|
|
12218
|
+
output: {
|
|
12219
|
+
error: {
|
|
12220
|
+
code: "AUTHENTICATION_REQUIRED" | "ADMIN_REQUIRED" | "THIRD_PARTY_AUTH_REQUIRED" | "USER_REGISTERED" | "USER_SUSPENDED" | "USER_INVITED" | "USER_NOT_ACTIVE" | "EMAIL_NOT_CONFIRMED" | "INTERNAL_ERROR" | "VALIDATION_ERROR" | "INVALID_REQUEST" | "NOT_FOUND" | "CONFLICT" | "SERVICE_UNAVAILABLE" | "APPLICATION_NOT_INSTALLED" | "INVALID_PAGE_ID" | "PAGE_NOT_FOUND" | "PAGE_NOT_GRANTED" | "PAGE_REVISION_ERROR" | "PAGE_TWIN_EXISTS" | "INVALID_GRANT" | "IDEMPOTENCY_KEY_REQUIRED" | "IDEMPOTENCY_KEY_CONFLICT" | "PAGE_TRANSITION_IN_PROGRESS" | "PAGE_TRANSITION_INCOMPLETE" | "COMMENT_NOT_FOUND" | "NOTIFICATION_NOT_FOUND" | "USER_NOT_FOUND" | "USER_EXISTS" | "USERNAME_TAKEN" | "EMAIL_TAKEN" | "EMAIL_NOT_ALLOWED" | "INVALID_ACTIVATION_TOKEN" | "INVALID_INVITE_TOKEN" | "INVITE_ALREADY_ACCEPTED" | "INVALID_RESET_TOKEN" | "INVALID_EMAIL_CHANGE_TOKEN" | "INVALID_CREDENTIALS" | "REFRESH_TOKEN_REQUIRED" | "REGISTRATION_CLOSED" | "FEDERATED_HANDOFF_INVALID" | "FEDERATED_HANDOFF_CONSUMED" | "FEDERATED_IDENTITY_IN_USE" | "FEDERATED_LINK_AUTH_STATE_CHANGED" | "FEDERATED_LINK_NOT_LINKED" | "LINK_COMPLETION_CONSUMED" | "ENCRYPTION_NOT_CONFIGURED" | "MAIL_FROM_NOT_CONFIGURED" | "MAIL_TEST_FAILED" | "PLUGIN_NOT_FOUND" | "PLUGIN_CONFIG_VALIDATION_FAILED" | "LINKED_IDENTITIES_EXIST";
|
|
12221
|
+
message: string;
|
|
12222
|
+
details?: any;
|
|
12223
|
+
};
|
|
12224
|
+
};
|
|
12225
|
+
outputFormat: "json";
|
|
12226
|
+
status: 404;
|
|
12221
12227
|
} | {
|
|
12222
12228
|
input: {
|
|
12223
12229
|
param: {
|
|
@@ -12230,15 +12236,9 @@ declare const federatedAuthContractApp: OpenAPIHono<hono.Env, {
|
|
|
12230
12236
|
error?: string | undefined;
|
|
12231
12237
|
};
|
|
12232
12238
|
};
|
|
12233
|
-
output: {
|
|
12234
|
-
|
|
12235
|
-
|
|
12236
|
-
message: string;
|
|
12237
|
-
details?: any;
|
|
12238
|
-
};
|
|
12239
|
-
};
|
|
12240
|
-
outputFormat: "json";
|
|
12241
|
-
status: 404;
|
|
12239
|
+
output: {};
|
|
12240
|
+
outputFormat: string;
|
|
12241
|
+
status: 302;
|
|
12242
12242
|
};
|
|
12243
12243
|
};
|
|
12244
12244
|
} & {
|
|
@@ -12716,15 +12716,6 @@ declare const federatedAuthContractApp: OpenAPIHono<hono.Env, {
|
|
|
12716
12716
|
};
|
|
12717
12717
|
outputFormat: "json";
|
|
12718
12718
|
status: 500;
|
|
12719
|
-
} | {
|
|
12720
|
-
input: {
|
|
12721
|
-
param: {
|
|
12722
|
-
name: string;
|
|
12723
|
-
};
|
|
12724
|
-
};
|
|
12725
|
-
output: {};
|
|
12726
|
-
outputFormat: string;
|
|
12727
|
-
status: 204;
|
|
12728
12719
|
} | {
|
|
12729
12720
|
input: {
|
|
12730
12721
|
param: {
|
|
@@ -12770,6 +12761,15 @@ declare const federatedAuthContractApp: OpenAPIHono<hono.Env, {
|
|
|
12770
12761
|
};
|
|
12771
12762
|
outputFormat: "json";
|
|
12772
12763
|
status: 401;
|
|
12764
|
+
} | {
|
|
12765
|
+
input: {
|
|
12766
|
+
param: {
|
|
12767
|
+
name: string;
|
|
12768
|
+
};
|
|
12769
|
+
};
|
|
12770
|
+
output: {};
|
|
12771
|
+
outputFormat: string;
|
|
12772
|
+
status: 204;
|
|
12773
12773
|
} | {
|
|
12774
12774
|
input: {
|
|
12775
12775
|
param: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crowi/api-contract",
|
|
3
|
-
"version": "2.0.0-alpha.
|
|
3
|
+
"version": "2.0.0-alpha.18",
|
|
4
4
|
"description": "API contract definitions for Crowi using Hono + zod-openapi",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"openapi-typescript": "^7.13.0",
|
|
42
42
|
"tsup": "^8.3.5",
|
|
43
43
|
"tsx": "^4.19.2",
|
|
44
|
-
"typescript": "^
|
|
44
|
+
"typescript": "^6.0.3",
|
|
45
45
|
"@crowi/tsconfig": "0.1.0-alpha.0"
|
|
46
46
|
},
|
|
47
47
|
"scripts": {
|