@arizeai/phoenix-client 2.1.0 → 2.1.1
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/esm/__generated__/api/v1.d.ts +359 -3
- package/dist/esm/__generated__/api/v1.d.ts.map +1 -1
- package/dist/esm/prompts/createPrompt.d.ts +5 -1
- package/dist/esm/prompts/createPrompt.d.ts.map +1 -1
- package/dist/esm/prompts/createPrompt.js +16 -0
- package/dist/esm/prompts/createPrompt.js.map +1 -1
- package/dist/esm/tsconfig.esm.tsbuildinfo +1 -1
- package/dist/esm/utils/formatPromptMessages.d.ts.map +1 -1
- package/dist/esm/utils/getPromptBySelector.d.ts +1 -1
- package/dist/esm/utils/getPromptBySelector.d.ts.map +1 -1
- package/dist/src/__generated__/api/v1.d.ts +359 -3
- package/dist/src/__generated__/api/v1.d.ts.map +1 -1
- package/dist/src/prompts/createPrompt.d.ts +5 -1
- package/dist/src/prompts/createPrompt.d.ts.map +1 -1
- package/dist/src/prompts/createPrompt.js +16 -0
- package/dist/src/prompts/createPrompt.js.map +1 -1
- package/dist/src/utils/formatPromptMessages.d.ts.map +1 -1
- package/dist/src/utils/getPromptBySelector.d.ts +1 -1
- package/dist/src/utils/getPromptBySelector.d.ts.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/__generated__/api/v1.ts +359 -3
- package/src/prompts/createPrompt.ts +23 -1
|
@@ -552,6 +552,50 @@ export interface paths {
|
|
|
552
552
|
patch?: never;
|
|
553
553
|
trace?: never;
|
|
554
554
|
};
|
|
555
|
+
"/v1/users": {
|
|
556
|
+
parameters: {
|
|
557
|
+
query?: never;
|
|
558
|
+
header?: never;
|
|
559
|
+
path?: never;
|
|
560
|
+
cookie?: never;
|
|
561
|
+
};
|
|
562
|
+
/**
|
|
563
|
+
* List all users
|
|
564
|
+
* @description Retrieve a paginated list of all users in the system.
|
|
565
|
+
*/
|
|
566
|
+
get: operations["getUsers"];
|
|
567
|
+
put?: never;
|
|
568
|
+
/**
|
|
569
|
+
* Create a new user
|
|
570
|
+
* @description Create a new user with the specified configuration.
|
|
571
|
+
*/
|
|
572
|
+
post: operations["createUser"];
|
|
573
|
+
delete?: never;
|
|
574
|
+
options?: never;
|
|
575
|
+
head?: never;
|
|
576
|
+
patch?: never;
|
|
577
|
+
trace?: never;
|
|
578
|
+
};
|
|
579
|
+
"/v1/users/{user_id}": {
|
|
580
|
+
parameters: {
|
|
581
|
+
query?: never;
|
|
582
|
+
header?: never;
|
|
583
|
+
path?: never;
|
|
584
|
+
cookie?: never;
|
|
585
|
+
};
|
|
586
|
+
get?: never;
|
|
587
|
+
put?: never;
|
|
588
|
+
post?: never;
|
|
589
|
+
/**
|
|
590
|
+
* Delete a user by ID
|
|
591
|
+
* @description Delete an existing user by their unique GlobalID.
|
|
592
|
+
*/
|
|
593
|
+
delete: operations["deleteUser"];
|
|
594
|
+
options?: never;
|
|
595
|
+
head?: never;
|
|
596
|
+
patch?: never;
|
|
597
|
+
trace?: never;
|
|
598
|
+
};
|
|
555
599
|
}
|
|
556
600
|
export type webhooks = Record<string, never>;
|
|
557
601
|
export interface components {
|
|
@@ -758,6 +802,21 @@ export interface components {
|
|
|
758
802
|
CreatePromptResponseBody: {
|
|
759
803
|
data: components["schemas"]["PromptVersion"];
|
|
760
804
|
};
|
|
805
|
+
/** CreateUserRequestBody */
|
|
806
|
+
CreateUserRequestBody: {
|
|
807
|
+
/** User */
|
|
808
|
+
user: components["schemas"]["LocalUserData"] | components["schemas"]["OAuth2UserData"];
|
|
809
|
+
/**
|
|
810
|
+
* Send Welcome Email
|
|
811
|
+
* @default true
|
|
812
|
+
*/
|
|
813
|
+
send_welcome_email?: boolean;
|
|
814
|
+
};
|
|
815
|
+
/** CreateUserResponseBody */
|
|
816
|
+
CreateUserResponseBody: {
|
|
817
|
+
/** Data */
|
|
818
|
+
data: components["schemas"]["LocalUser"] | components["schemas"]["OAuth2User"];
|
|
819
|
+
};
|
|
761
820
|
/** Dataset */
|
|
762
821
|
Dataset: {
|
|
763
822
|
/** Id */
|
|
@@ -1046,6 +1105,13 @@ export interface components {
|
|
|
1046
1105
|
/** Next Cursor */
|
|
1047
1106
|
next_cursor: string | null;
|
|
1048
1107
|
};
|
|
1108
|
+
/** GetUsersResponseBody */
|
|
1109
|
+
GetUsersResponseBody: {
|
|
1110
|
+
/** Data */
|
|
1111
|
+
data: (components["schemas"]["LocalUser"] | components["schemas"]["OAuth2User"])[];
|
|
1112
|
+
/** Next Cursor */
|
|
1113
|
+
next_cursor: string | null;
|
|
1114
|
+
};
|
|
1049
1115
|
/** HTTPValidationError */
|
|
1050
1116
|
HTTPValidationError: {
|
|
1051
1117
|
/** Detail */
|
|
@@ -1098,11 +1164,119 @@ export interface components {
|
|
|
1098
1164
|
/** Data */
|
|
1099
1165
|
data: components["schemas"]["Experiment"][];
|
|
1100
1166
|
};
|
|
1167
|
+
/** LocalUser */
|
|
1168
|
+
LocalUser: {
|
|
1169
|
+
/** Id */
|
|
1170
|
+
id: string;
|
|
1171
|
+
/**
|
|
1172
|
+
* Created At
|
|
1173
|
+
* Format: date-time
|
|
1174
|
+
*/
|
|
1175
|
+
created_at: string;
|
|
1176
|
+
/**
|
|
1177
|
+
* Updated At
|
|
1178
|
+
* Format: date-time
|
|
1179
|
+
*/
|
|
1180
|
+
updated_at: string;
|
|
1181
|
+
/** Email */
|
|
1182
|
+
email: string;
|
|
1183
|
+
/** Username */
|
|
1184
|
+
username: string;
|
|
1185
|
+
/**
|
|
1186
|
+
* Role
|
|
1187
|
+
* @enum {string}
|
|
1188
|
+
*/
|
|
1189
|
+
role: "SYSTEM" | "ADMIN" | "MEMBER";
|
|
1190
|
+
/**
|
|
1191
|
+
* @description discriminator enum property added by openapi-typescript
|
|
1192
|
+
* @enum {string}
|
|
1193
|
+
*/
|
|
1194
|
+
auth_method: "LOCAL";
|
|
1195
|
+
/** Password */
|
|
1196
|
+
password?: string;
|
|
1197
|
+
/** Password Needs Reset */
|
|
1198
|
+
password_needs_reset: boolean;
|
|
1199
|
+
};
|
|
1200
|
+
/** LocalUserData */
|
|
1201
|
+
LocalUserData: {
|
|
1202
|
+
/** Email */
|
|
1203
|
+
email: string;
|
|
1204
|
+
/** Username */
|
|
1205
|
+
username: string;
|
|
1206
|
+
/**
|
|
1207
|
+
* Role
|
|
1208
|
+
* @enum {string}
|
|
1209
|
+
*/
|
|
1210
|
+
role: "SYSTEM" | "ADMIN" | "MEMBER";
|
|
1211
|
+
/**
|
|
1212
|
+
* @description discriminator enum property added by openapi-typescript
|
|
1213
|
+
* @enum {string}
|
|
1214
|
+
*/
|
|
1215
|
+
auth_method: "LOCAL";
|
|
1216
|
+
/** Password */
|
|
1217
|
+
password?: string;
|
|
1218
|
+
};
|
|
1101
1219
|
/**
|
|
1102
1220
|
* ModelProvider
|
|
1103
1221
|
* @enum {string}
|
|
1104
1222
|
*/
|
|
1105
|
-
ModelProvider: "OPENAI" | "AZURE_OPENAI" | "ANTHROPIC" | "GOOGLE" | "DEEPSEEK";
|
|
1223
|
+
ModelProvider: "OPENAI" | "AZURE_OPENAI" | "ANTHROPIC" | "GOOGLE" | "DEEPSEEK" | "XAI";
|
|
1224
|
+
/** OAuth2User */
|
|
1225
|
+
OAuth2User: {
|
|
1226
|
+
/** Id */
|
|
1227
|
+
id: string;
|
|
1228
|
+
/**
|
|
1229
|
+
* Created At
|
|
1230
|
+
* Format: date-time
|
|
1231
|
+
*/
|
|
1232
|
+
created_at: string;
|
|
1233
|
+
/**
|
|
1234
|
+
* Updated At
|
|
1235
|
+
* Format: date-time
|
|
1236
|
+
*/
|
|
1237
|
+
updated_at: string;
|
|
1238
|
+
/** Email */
|
|
1239
|
+
email: string;
|
|
1240
|
+
/** Username */
|
|
1241
|
+
username: string;
|
|
1242
|
+
/**
|
|
1243
|
+
* Role
|
|
1244
|
+
* @enum {string}
|
|
1245
|
+
*/
|
|
1246
|
+
role: "SYSTEM" | "ADMIN" | "MEMBER";
|
|
1247
|
+
/**
|
|
1248
|
+
* @description discriminator enum property added by openapi-typescript
|
|
1249
|
+
* @enum {string}
|
|
1250
|
+
*/
|
|
1251
|
+
auth_method: "OAUTH2";
|
|
1252
|
+
/** Oauth2 Client Id */
|
|
1253
|
+
oauth2_client_id?: string;
|
|
1254
|
+
/** Oauth2 User Id */
|
|
1255
|
+
oauth2_user_id?: string;
|
|
1256
|
+
/** Profile Picture Url */
|
|
1257
|
+
profile_picture_url?: string;
|
|
1258
|
+
};
|
|
1259
|
+
/** OAuth2UserData */
|
|
1260
|
+
OAuth2UserData: {
|
|
1261
|
+
/** Email */
|
|
1262
|
+
email: string;
|
|
1263
|
+
/** Username */
|
|
1264
|
+
username: string;
|
|
1265
|
+
/**
|
|
1266
|
+
* Role
|
|
1267
|
+
* @enum {string}
|
|
1268
|
+
*/
|
|
1269
|
+
role: "SYSTEM" | "ADMIN" | "MEMBER";
|
|
1270
|
+
/**
|
|
1271
|
+
* @description discriminator enum property added by openapi-typescript
|
|
1272
|
+
* @enum {string}
|
|
1273
|
+
*/
|
|
1274
|
+
auth_method: "OAUTH2";
|
|
1275
|
+
/** Oauth2 Client Id */
|
|
1276
|
+
oauth2_client_id?: string;
|
|
1277
|
+
/** Oauth2 User Id */
|
|
1278
|
+
oauth2_user_id?: string;
|
|
1279
|
+
};
|
|
1106
1280
|
/**
|
|
1107
1281
|
* OptimizationDirection
|
|
1108
1282
|
* @enum {string}
|
|
@@ -1631,7 +1805,7 @@ export interface components {
|
|
|
1631
1805
|
template_type: components["schemas"]["PromptTemplateType"];
|
|
1632
1806
|
template_format: components["schemas"]["PromptTemplateFormat"];
|
|
1633
1807
|
/** Invocation Parameters */
|
|
1634
|
-
invocation_parameters: components["schemas"]["PromptOpenAIInvocationParameters"] | components["schemas"]["PromptAzureOpenAIInvocationParameters"] | components["schemas"]["PromptAnthropicInvocationParameters"] | components["schemas"]["PromptGoogleInvocationParameters"] | components["schemas"]["PromptDeepSeekInvocationParameters"];
|
|
1808
|
+
invocation_parameters: components["schemas"]["PromptOpenAIInvocationParameters"] | components["schemas"]["PromptAzureOpenAIInvocationParameters"] | components["schemas"]["PromptAnthropicInvocationParameters"] | components["schemas"]["PromptGoogleInvocationParameters"] | components["schemas"]["PromptDeepSeekInvocationParameters"] | components["schemas"]["PromptXAIInvocationParameters"];
|
|
1635
1809
|
tools?: components["schemas"]["PromptTools"] | null;
|
|
1636
1810
|
/** Response Format */
|
|
1637
1811
|
response_format?: components["schemas"]["PromptResponseFormatJSONSchema"] | null;
|
|
@@ -1650,7 +1824,7 @@ export interface components {
|
|
|
1650
1824
|
template_type: components["schemas"]["PromptTemplateType"];
|
|
1651
1825
|
template_format: components["schemas"]["PromptTemplateFormat"];
|
|
1652
1826
|
/** Invocation Parameters */
|
|
1653
|
-
invocation_parameters: components["schemas"]["PromptOpenAIInvocationParameters"] | components["schemas"]["PromptAzureOpenAIInvocationParameters"] | components["schemas"]["PromptAnthropicInvocationParameters"] | components["schemas"]["PromptGoogleInvocationParameters"] | components["schemas"]["PromptDeepSeekInvocationParameters"];
|
|
1827
|
+
invocation_parameters: components["schemas"]["PromptOpenAIInvocationParameters"] | components["schemas"]["PromptAzureOpenAIInvocationParameters"] | components["schemas"]["PromptAnthropicInvocationParameters"] | components["schemas"]["PromptGoogleInvocationParameters"] | components["schemas"]["PromptDeepSeekInvocationParameters"] | components["schemas"]["PromptXAIInvocationParameters"];
|
|
1654
1828
|
tools?: components["schemas"]["PromptTools"] | null;
|
|
1655
1829
|
/** Response Format */
|
|
1656
1830
|
response_format?: components["schemas"]["PromptResponseFormatJSONSchema"] | null;
|
|
@@ -1669,6 +1843,37 @@ export interface components {
|
|
|
1669
1843
|
/** Description */
|
|
1670
1844
|
description?: string | null;
|
|
1671
1845
|
};
|
|
1846
|
+
/** PromptXAIInvocationParameters */
|
|
1847
|
+
PromptXAIInvocationParameters: {
|
|
1848
|
+
/**
|
|
1849
|
+
* @description discriminator enum property added by openapi-typescript
|
|
1850
|
+
* @enum {string}
|
|
1851
|
+
*/
|
|
1852
|
+
type: "xai";
|
|
1853
|
+
xai: components["schemas"]["PromptXAIInvocationParametersContent"];
|
|
1854
|
+
};
|
|
1855
|
+
/** PromptXAIInvocationParametersContent */
|
|
1856
|
+
PromptXAIInvocationParametersContent: {
|
|
1857
|
+
/** Temperature */
|
|
1858
|
+
temperature?: number;
|
|
1859
|
+
/** Max Tokens */
|
|
1860
|
+
max_tokens?: number;
|
|
1861
|
+
/** Max Completion Tokens */
|
|
1862
|
+
max_completion_tokens?: number;
|
|
1863
|
+
/** Frequency Penalty */
|
|
1864
|
+
frequency_penalty?: number;
|
|
1865
|
+
/** Presence Penalty */
|
|
1866
|
+
presence_penalty?: number;
|
|
1867
|
+
/** Top P */
|
|
1868
|
+
top_p?: number;
|
|
1869
|
+
/** Seed */
|
|
1870
|
+
seed?: number;
|
|
1871
|
+
/**
|
|
1872
|
+
* Reasoning Effort
|
|
1873
|
+
* @enum {string}
|
|
1874
|
+
*/
|
|
1875
|
+
reasoning_effort?: "low" | "medium" | "high";
|
|
1876
|
+
};
|
|
1672
1877
|
/** SpanAnnotation */
|
|
1673
1878
|
SpanAnnotation: {
|
|
1674
1879
|
/**
|
|
@@ -3912,5 +4117,156 @@ export interface operations {
|
|
|
3912
4117
|
};
|
|
3913
4118
|
};
|
|
3914
4119
|
};
|
|
4120
|
+
getUsers: {
|
|
4121
|
+
parameters: {
|
|
4122
|
+
query?: {
|
|
4123
|
+
/** @description Cursor for pagination (base64-encoded user ID) */
|
|
4124
|
+
cursor?: string;
|
|
4125
|
+
/** @description The max number of users to return at a time. */
|
|
4126
|
+
limit?: number;
|
|
4127
|
+
};
|
|
4128
|
+
header?: never;
|
|
4129
|
+
path?: never;
|
|
4130
|
+
cookie?: never;
|
|
4131
|
+
};
|
|
4132
|
+
requestBody?: never;
|
|
4133
|
+
responses: {
|
|
4134
|
+
/** @description A list of users. */
|
|
4135
|
+
200: {
|
|
4136
|
+
headers: {
|
|
4137
|
+
[name: string]: unknown;
|
|
4138
|
+
};
|
|
4139
|
+
content: {
|
|
4140
|
+
"application/json": components["schemas"]["GetUsersResponseBody"];
|
|
4141
|
+
};
|
|
4142
|
+
};
|
|
4143
|
+
/** @description Forbidden */
|
|
4144
|
+
403: {
|
|
4145
|
+
headers: {
|
|
4146
|
+
[name: string]: unknown;
|
|
4147
|
+
};
|
|
4148
|
+
content: {
|
|
4149
|
+
"text/plain": string;
|
|
4150
|
+
};
|
|
4151
|
+
};
|
|
4152
|
+
/** @description Unprocessable Entity */
|
|
4153
|
+
422: {
|
|
4154
|
+
headers: {
|
|
4155
|
+
[name: string]: unknown;
|
|
4156
|
+
};
|
|
4157
|
+
content: {
|
|
4158
|
+
"text/plain": string;
|
|
4159
|
+
};
|
|
4160
|
+
};
|
|
4161
|
+
};
|
|
4162
|
+
};
|
|
4163
|
+
createUser: {
|
|
4164
|
+
parameters: {
|
|
4165
|
+
query?: never;
|
|
4166
|
+
header?: never;
|
|
4167
|
+
path?: never;
|
|
4168
|
+
cookie?: never;
|
|
4169
|
+
};
|
|
4170
|
+
requestBody: {
|
|
4171
|
+
content: {
|
|
4172
|
+
"application/json": components["schemas"]["CreateUserRequestBody"];
|
|
4173
|
+
};
|
|
4174
|
+
};
|
|
4175
|
+
responses: {
|
|
4176
|
+
/** @description The newly created user. */
|
|
4177
|
+
201: {
|
|
4178
|
+
headers: {
|
|
4179
|
+
[name: string]: unknown;
|
|
4180
|
+
};
|
|
4181
|
+
content: {
|
|
4182
|
+
"application/json": components["schemas"]["CreateUserResponseBody"];
|
|
4183
|
+
};
|
|
4184
|
+
};
|
|
4185
|
+
/** @description Role not found. */
|
|
4186
|
+
400: {
|
|
4187
|
+
headers: {
|
|
4188
|
+
[name: string]: unknown;
|
|
4189
|
+
};
|
|
4190
|
+
content: {
|
|
4191
|
+
"text/plain": string;
|
|
4192
|
+
};
|
|
4193
|
+
};
|
|
4194
|
+
/** @description Forbidden */
|
|
4195
|
+
403: {
|
|
4196
|
+
headers: {
|
|
4197
|
+
[name: string]: unknown;
|
|
4198
|
+
};
|
|
4199
|
+
content: {
|
|
4200
|
+
"text/plain": string;
|
|
4201
|
+
};
|
|
4202
|
+
};
|
|
4203
|
+
/** @description Username or email already exists. */
|
|
4204
|
+
409: {
|
|
4205
|
+
headers: {
|
|
4206
|
+
[name: string]: unknown;
|
|
4207
|
+
};
|
|
4208
|
+
content: {
|
|
4209
|
+
"text/plain": string;
|
|
4210
|
+
};
|
|
4211
|
+
};
|
|
4212
|
+
/** @description Unprocessable Entity */
|
|
4213
|
+
422: {
|
|
4214
|
+
headers: {
|
|
4215
|
+
[name: string]: unknown;
|
|
4216
|
+
};
|
|
4217
|
+
content: {
|
|
4218
|
+
"text/plain": string;
|
|
4219
|
+
};
|
|
4220
|
+
};
|
|
4221
|
+
};
|
|
4222
|
+
};
|
|
4223
|
+
deleteUser: {
|
|
4224
|
+
parameters: {
|
|
4225
|
+
query?: never;
|
|
4226
|
+
header?: never;
|
|
4227
|
+
path: {
|
|
4228
|
+
/** @description The GlobalID of the user (e.g. 'VXNlcjox'). */
|
|
4229
|
+
user_id: string;
|
|
4230
|
+
};
|
|
4231
|
+
cookie?: never;
|
|
4232
|
+
};
|
|
4233
|
+
requestBody?: never;
|
|
4234
|
+
responses: {
|
|
4235
|
+
/** @description No content returned on successful deletion. */
|
|
4236
|
+
204: {
|
|
4237
|
+
headers: {
|
|
4238
|
+
[name: string]: unknown;
|
|
4239
|
+
};
|
|
4240
|
+
content?: never;
|
|
4241
|
+
};
|
|
4242
|
+
/** @description Cannot delete the default admin or system user */
|
|
4243
|
+
403: {
|
|
4244
|
+
headers: {
|
|
4245
|
+
[name: string]: unknown;
|
|
4246
|
+
};
|
|
4247
|
+
content: {
|
|
4248
|
+
"text/plain": string;
|
|
4249
|
+
};
|
|
4250
|
+
};
|
|
4251
|
+
/** @description User not found. */
|
|
4252
|
+
404: {
|
|
4253
|
+
headers: {
|
|
4254
|
+
[name: string]: unknown;
|
|
4255
|
+
};
|
|
4256
|
+
content: {
|
|
4257
|
+
"text/plain": string;
|
|
4258
|
+
};
|
|
4259
|
+
};
|
|
4260
|
+
/** @description Unprocessable Entity */
|
|
4261
|
+
422: {
|
|
4262
|
+
headers: {
|
|
4263
|
+
[name: string]: unknown;
|
|
4264
|
+
};
|
|
4265
|
+
content: {
|
|
4266
|
+
"text/plain": string;
|
|
4267
|
+
};
|
|
4268
|
+
};
|
|
4269
|
+
};
|
|
4270
|
+
};
|
|
3915
4271
|
}
|
|
3916
4272
|
//# sourceMappingURL=v1.d.ts.map
|