feat: update external workdir generated contracts
This commit is contained in:
+24
-12
@@ -2015,24 +2015,26 @@
|
|||||||
"display_name": {
|
"display_name": {
|
||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
|
"permission": {
|
||||||
|
"$ref": "#/components/schemas/ExternalWorkdirPermission"
|
||||||
|
},
|
||||||
"provider_instance_id": {
|
"provider_instance_id": {
|
||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
"read_only": {
|
|
||||||
"type": "boolean"
|
|
||||||
},
|
|
||||||
"ttl_seconds": {
|
"ttl_seconds": {
|
||||||
"format": "uint64",
|
"format": "uint64",
|
||||||
"maximum": 9007199254740991,
|
"maximum": 9007199254740991,
|
||||||
"minimum": 0,
|
"minimum": 0,
|
||||||
"type": "integer"
|
"type": [
|
||||||
|
"integer",
|
||||||
|
"null"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"required": [
|
"required": [
|
||||||
"provider_instance_id",
|
"provider_instance_id",
|
||||||
"display_name",
|
"display_name",
|
||||||
"ttl_seconds",
|
"permission"
|
||||||
"read_only"
|
|
||||||
],
|
],
|
||||||
"type": "object"
|
"type": "object"
|
||||||
},
|
},
|
||||||
@@ -2043,7 +2045,11 @@
|
|||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
"expires_at": {
|
"expires_at": {
|
||||||
"type": "string"
|
"description": "`None` means the grant has no automatic expiry. It remains bounded by\nexplicit revoke, provider disconnect, and provider shutdown cleanup.",
|
||||||
|
"type": [
|
||||||
|
"string",
|
||||||
|
"null"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"generation": {
|
"generation": {
|
||||||
"format": "uint64",
|
"format": "uint64",
|
||||||
@@ -2054,8 +2060,8 @@
|
|||||||
"grant_id": {
|
"grant_id": {
|
||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
"permissions": {
|
"permission": {
|
||||||
"type": "string"
|
"$ref": "#/components/schemas/ExternalWorkdirPermission"
|
||||||
},
|
},
|
||||||
"provider_instance_id": {
|
"provider_instance_id": {
|
||||||
"type": "string"
|
"type": "string"
|
||||||
@@ -2076,13 +2082,19 @@
|
|||||||
"working_directory_id",
|
"working_directory_id",
|
||||||
"provider_instance_id",
|
"provider_instance_id",
|
||||||
"display_name",
|
"display_name",
|
||||||
"permissions",
|
"permission",
|
||||||
"expires_at",
|
|
||||||
"generation",
|
"generation",
|
||||||
"status"
|
"status"
|
||||||
],
|
],
|
||||||
"type": "object"
|
"type": "object"
|
||||||
},
|
},
|
||||||
|
"ExternalWorkdirPermission": {
|
||||||
|
"enum": [
|
||||||
|
"read_only",
|
||||||
|
"read_write"
|
||||||
|
],
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
"ExtractAudit": {
|
"ExtractAudit": {
|
||||||
"properties": {
|
"properties": {
|
||||||
"entry_range": {
|
"entry_range": {
|
||||||
@@ -13982,7 +13994,7 @@
|
|||||||
"info": {
|
"info": {
|
||||||
"title": "Yoi Server API",
|
"title": "Yoi Server API",
|
||||||
"version": "0.1.0",
|
"version": "0.1.0",
|
||||||
"x-yoi-source-digest": "sha256:7b14311c0ae7d40c3e1b423890c890b1b73de321ed199c223b771711effcd280"
|
"x-yoi-source-digest": "sha256:845d8859bab4de95f0539969ae8c84bbf3fb4a0548638e4278d6c90f9bb6cb3a"
|
||||||
},
|
},
|
||||||
"openapi": "3.1.0",
|
"openapi": "3.1.0",
|
||||||
"paths": {
|
"paths": {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
// @generated by yoi-workdir-openapi-typescript@1. Do not edit.
|
// @generated by yoi-workdir-openapi-typescript@1. Do not edit.
|
||||||
// Input: openapi/server-api.json
|
// Input: openapi/server-api.json
|
||||||
// Input contract: 0.1.0 (sha256:7a9d11f50cc41eca55a6dded4b8f55aa6d23b1beb2dc69b0a9b6c8349efc894f)
|
// Input contract: 0.1.0 (sha256:845d8859bab4de95f0539969ae8c84bbf3fb4a0548638e4278d6c90f9bb6cb3a)
|
||||||
// Options: workdir-operation-schema-closure,openapi-3.1,strict-integer-ranges,sorted-output
|
// Options: workdir-operation-schema-closure,openapi-3.1,strict-integer-ranges,sorted-output
|
||||||
// Output: web/workspace/src/lib/generated/workdir-api.ts
|
// Output: web/workspace/src/lib/generated/workdir-api.ts
|
||||||
// Regenerate/check: cargo run -q -p server-api --example generate_workdir_api_types -- --check
|
// Regenerate/check: cargo run -q -p server-api --example generate_workdir_api_types -- --check
|
||||||
@@ -9,9 +9,11 @@ export type Diagnostic = { code: string; message: string; severity: DiagnosticSe
|
|||||||
|
|
||||||
export type DiagnosticSeverity = "info" | "warning" | "error";
|
export type DiagnosticSeverity = "info" | "warning" | "error";
|
||||||
|
|
||||||
export type ExternalWorkdirGrantCreateRequest = { display_name: string; provider_instance_id: string; read_only: boolean; ttl_seconds: number; };
|
export type ExternalWorkdirGrantCreateRequest = { display_name: string; permission: ExternalWorkdirPermission; provider_instance_id: string; ttl_seconds?: number | null; };
|
||||||
|
|
||||||
export type ExternalWorkdirGrantResponse = { display_name: string; expires_at: string; generation: number; grant_id: string; permissions: string; provider_instance_id: string; status: string; working_directory_id: string; workspace_id: string; };
|
export type ExternalWorkdirGrantResponse = { display_name: string; expires_at?: string | null; generation: number; grant_id: string; permission: ExternalWorkdirPermission; provider_instance_id: string; status: string; working_directory_id: string; workspace_id: string; };
|
||||||
|
|
||||||
|
export type ExternalWorkdirPermission = "read_only" | "read_write";
|
||||||
|
|
||||||
export type RepositoryApiError = { diagnostics?: Array<Diagnostic>; error: string; message: string; };
|
export type RepositoryApiError = { diagnostics?: Array<Diagnostic>; error: string; message: string; };
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user