Regenerate the frontend SDK
Picks up the message history endpoint. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KkmeRiyeYmVZqJVwuyHq9o
This commit is contained in:
co-authored by
Claude Opus 5
parent
bcdc90edbb
commit
0154bf3537
@@ -292,6 +292,23 @@ export const HTTPValidationErrorSchema = {
|
|||||||
title: 'HTTPValidationError'
|
title: 'HTTPValidationError'
|
||||||
} as const;
|
} as const;
|
||||||
|
|
||||||
|
export const HistoryPointSchema = {
|
||||||
|
properties: {
|
||||||
|
ts: {
|
||||||
|
type: 'number',
|
||||||
|
title: 'Ts'
|
||||||
|
},
|
||||||
|
value: {
|
||||||
|
type: 'number',
|
||||||
|
title: 'Value'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
type: 'object',
|
||||||
|
required: ['ts', 'value'],
|
||||||
|
title: 'HistoryPoint',
|
||||||
|
description: 'One numeric value a message carried, and when.'
|
||||||
|
} as const;
|
||||||
|
|
||||||
export const MessageSchema = {
|
export const MessageSchema = {
|
||||||
properties: {
|
properties: {
|
||||||
message: {
|
message: {
|
||||||
@@ -304,6 +321,34 @@ export const MessageSchema = {
|
|||||||
title: 'Message'
|
title: 'Message'
|
||||||
} as const;
|
} as const;
|
||||||
|
|
||||||
|
export const MessageHistorySchema = {
|
||||||
|
properties: {
|
||||||
|
message: {
|
||||||
|
type: 'string',
|
||||||
|
title: 'Message'
|
||||||
|
},
|
||||||
|
numeric: {
|
||||||
|
type: 'boolean',
|
||||||
|
title: 'Numeric',
|
||||||
|
default: false
|
||||||
|
},
|
||||||
|
points: {
|
||||||
|
items: {
|
||||||
|
'$ref': '#/components/schemas/HistoryPoint'
|
||||||
|
},
|
||||||
|
type: 'array',
|
||||||
|
title: 'Points'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
type: 'object',
|
||||||
|
required: ['message'],
|
||||||
|
title: 'MessageHistory',
|
||||||
|
description: `A message's recent numeric values, oldest first.
|
||||||
|
|
||||||
|
Only numbers are recorded, so \`\`numeric\`\` tells the panel whether an empty
|
||||||
|
series means "nothing plottable here" or "nothing has arrived yet".`
|
||||||
|
} as const;
|
||||||
|
|
||||||
export const MessageSpecSchema = {
|
export const MessageSpecSchema = {
|
||||||
properties: {
|
properties: {
|
||||||
name: {
|
name: {
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
import type { CancelablePromise } from './core/CancelablePromise';
|
import type { CancelablePromise } from './core/CancelablePromise';
|
||||||
import { OpenAPI } from './core/OpenAPI';
|
import { OpenAPI } from './core/OpenAPI';
|
||||||
import { request as __request } from './core/request';
|
import { request as __request } from './core/request';
|
||||||
import type { FlowsReadFlowsResponse, FlowsReadNodeTypesResponse, FlowsReadFlowData, FlowsReadFlowResponse, FlowsSaveFlowData, FlowsSaveFlowResponse, FlowsDeleteFlowData, FlowsDeleteFlowResponse, FlowsRenameFlowData, FlowsRenameFlowResponse, FlowsReadNodeSourceData, FlowsReadNodeSourceResponse, FlowsSaveNodeSourceData, FlowsSaveNodeSourceResponse, FlowsValidateFlowData, FlowsValidateFlowResponse, FlowsRunFlowData, FlowsRunFlowResponse, FlowsTriggerNodeData, FlowsTriggerNodeResponse, FlowsReadFlowStateData, FlowsReadFlowStateResponse, LoginLoginAccessTokenData, LoginLoginAccessTokenResponse, LoginTestTokenResponse, LoginRecoverPasswordData, LoginRecoverPasswordResponse, LoginResetPasswordData, LoginResetPasswordResponse, LoginRecoverPasswordHtmlContentData, LoginRecoverPasswordHtmlContentResponse, PrivateCreateUserData, PrivateCreateUserResponse, SecretsReadSecretsResponse, SecretsSaveSecretData, SecretsSaveSecretResponse, SecretsDeleteSecretData, SecretsDeleteSecretResponse, UsersReadUsersData, UsersReadUsersResponse, UsersCreateUserData, UsersCreateUserResponse, UsersReadUserMeResponse, UsersDeleteUserMeResponse, UsersUpdateUserMeData, UsersUpdateUserMeResponse, UsersUpdatePasswordMeData, UsersUpdatePasswordMeResponse, UsersRegisterUserData, UsersRegisterUserResponse, UsersReadUserByIdData, UsersReadUserByIdResponse, UsersUpdateUserData, UsersUpdateUserResponse, UsersDeleteUserData, UsersDeleteUserResponse, UtilsTestEmailData, UtilsTestEmailResponse, UtilsHealthCheckResponse } from './types.gen';
|
import type { FlowsReadFlowsResponse, FlowsReadNodeTypesResponse, FlowsReadFlowData, FlowsReadFlowResponse, FlowsSaveFlowData, FlowsSaveFlowResponse, FlowsDeleteFlowData, FlowsDeleteFlowResponse, FlowsRenameFlowData, FlowsRenameFlowResponse, FlowsReadNodeSourceData, FlowsReadNodeSourceResponse, FlowsSaveNodeSourceData, FlowsSaveNodeSourceResponse, FlowsValidateFlowData, FlowsValidateFlowResponse, FlowsRunFlowData, FlowsRunFlowResponse, FlowsTriggerNodeData, FlowsTriggerNodeResponse, FlowsReadFlowStateData, FlowsReadFlowStateResponse, FlowsReadMessageHistoryData, FlowsReadMessageHistoryResponse, LoginLoginAccessTokenData, LoginLoginAccessTokenResponse, LoginTestTokenResponse, LoginRecoverPasswordData, LoginRecoverPasswordResponse, LoginResetPasswordData, LoginResetPasswordResponse, LoginRecoverPasswordHtmlContentData, LoginRecoverPasswordHtmlContentResponse, PrivateCreateUserData, PrivateCreateUserResponse, SecretsReadSecretsResponse, SecretsSaveSecretData, SecretsSaveSecretResponse, SecretsDeleteSecretData, SecretsDeleteSecretResponse, UsersReadUsersData, UsersReadUsersResponse, UsersCreateUserData, UsersCreateUserResponse, UsersReadUserMeResponse, UsersDeleteUserMeResponse, UsersUpdateUserMeData, UsersUpdateUserMeResponse, UsersUpdatePasswordMeData, UsersUpdatePasswordMeResponse, UsersRegisterUserData, UsersRegisterUserResponse, UsersReadUserByIdData, UsersReadUserByIdResponse, UsersUpdateUserData, UsersUpdateUserResponse, UsersDeleteUserData, UsersDeleteUserResponse, UtilsTestEmailData, UtilsTestEmailResponse, UtilsHealthCheckResponse } from './types.gen';
|
||||||
|
|
||||||
export class FlowsService {
|
export class FlowsService {
|
||||||
/**
|
/**
|
||||||
@@ -262,6 +262,32 @@ export class FlowsService {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Read Message History
|
||||||
|
* The recent values of one message, for plotting.
|
||||||
|
*
|
||||||
|
* ``message`` may be given bare or qualified; a message that never carried a
|
||||||
|
* number comes back with an empty series.
|
||||||
|
* @param data The data for the request.
|
||||||
|
* @param data.name
|
||||||
|
* @param data.message
|
||||||
|
* @returns MessageHistory Successful Response
|
||||||
|
* @throws ApiError
|
||||||
|
*/
|
||||||
|
public static readMessageHistory(data: FlowsReadMessageHistoryData): CancelablePromise<FlowsReadMessageHistoryResponse> {
|
||||||
|
return __request(OpenAPI, {
|
||||||
|
method: 'GET',
|
||||||
|
url: '/api/v1/flows/{name}/history/{message}',
|
||||||
|
path: {
|
||||||
|
name: data.name,
|
||||||
|
message: data.message
|
||||||
|
},
|
||||||
|
errors: {
|
||||||
|
422: 'Validation Error'
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export class LoginService {
|
export class LoginService {
|
||||||
|
|||||||
@@ -83,6 +83,14 @@ export type FlowSummary = {
|
|||||||
error_count?: number;
|
error_count?: number;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* One numeric value a message carried, and when.
|
||||||
|
*/
|
||||||
|
export type HistoryPoint = {
|
||||||
|
ts: number;
|
||||||
|
value: number;
|
||||||
|
};
|
||||||
|
|
||||||
export type HTTPValidationError = {
|
export type HTTPValidationError = {
|
||||||
detail?: Array<ValidationError>;
|
detail?: Array<ValidationError>;
|
||||||
};
|
};
|
||||||
@@ -91,6 +99,18 @@ export type Message = {
|
|||||||
message: string;
|
message: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A message's recent numeric values, oldest first.
|
||||||
|
*
|
||||||
|
* Only numbers are recorded, so ``numeric`` tells the panel whether an empty
|
||||||
|
* series means "nothing plottable here" or "nothing has arrived yet".
|
||||||
|
*/
|
||||||
|
export type MessageHistory = {
|
||||||
|
message: string;
|
||||||
|
numeric?: boolean;
|
||||||
|
points?: Array<HistoryPoint>;
|
||||||
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A single port of a node, and the message it is bound to.
|
* A single port of a node, and the message it is bound to.
|
||||||
*
|
*
|
||||||
@@ -366,6 +386,13 @@ export type FlowsReadFlowStateData = {
|
|||||||
|
|
||||||
export type FlowsReadFlowStateResponse = (FlowStatePublic);
|
export type FlowsReadFlowStateResponse = (FlowStatePublic);
|
||||||
|
|
||||||
|
export type FlowsReadMessageHistoryData = {
|
||||||
|
message: string;
|
||||||
|
name: string;
|
||||||
|
};
|
||||||
|
|
||||||
|
export type FlowsReadMessageHistoryResponse = (MessageHistory);
|
||||||
|
|
||||||
export type LoginLoginAccessTokenData = {
|
export type LoginLoginAccessTokenData = {
|
||||||
formData: Body_login_login_access_token;
|
formData: Body_login_login_access_token;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user