@to11ai/sdk 2.1.0-rc.1 → 2.1.0-rc.3
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/README.md +1 -2
- package/dist/errors.d.ts +3 -7
- package/dist/gateway.cjs +0 -3
- package/dist/gateway.d.ts +0 -3
- package/dist/gateway.js +0 -3
- package/dist/generated/index.d.ts +1 -1
- package/dist/generated/types.gen.d.ts +38 -1006
- package/dist/generated/zod.gen.d.ts +31 -718
- package/dist/projectEnvironments/resource.cjs +0 -4
- package/dist/projectEnvironments/resource.js +0 -4
- package/dist/projectEnvironments/types.d.ts +0 -4
- package/dist/prompts/resource.cjs +0 -3
- package/dist/prompts/resource.js +0 -3
- package/dist/prompts/shape.d.ts +0 -1
- package/dist/prompts/types.d.ts +0 -1
- package/package.json +1 -1
- package/src/errors.ts +3 -7
- package/src/gateway.ts +0 -7
- package/src/generated/index.ts +1 -1
- package/src/generated/types.gen.ts +21 -1032
- package/src/generated/zod.gen.ts +5 -588
- package/src/projectEnvironments/resource.ts +0 -3
- package/src/projectEnvironments/types.ts +0 -4
- package/src/prompts/resource.ts +1 -15
- package/src/prompts/shape.ts +0 -3
- package/src/prompts/types.ts +0 -1
- package/src/transport.ts +5 -16
|
@@ -178,12 +178,18 @@ export type ProjectEnvironment = {
|
|
|
178
178
|
id: string;
|
|
179
179
|
isDefault: boolean;
|
|
180
180
|
isGatewayFallback: boolean;
|
|
181
|
-
|
|
181
|
+
/**
|
|
182
|
+
* @deprecated Always `false`. To be removed.
|
|
183
|
+
*/
|
|
184
|
+
isPointer?: boolean | null;
|
|
182
185
|
isProduction: boolean;
|
|
183
186
|
isSystem: boolean;
|
|
184
187
|
name: string;
|
|
185
188
|
projectId: string;
|
|
186
|
-
|
|
189
|
+
/**
|
|
190
|
+
* @deprecated Always `false`. To be removed.
|
|
191
|
+
*/
|
|
192
|
+
requiresApproval?: boolean | null;
|
|
187
193
|
slug: string;
|
|
188
194
|
sortOrder: number;
|
|
189
195
|
updatedAt: string;
|
|
@@ -242,23 +248,6 @@ export type PromptLabelPointer = {
|
|
|
242
248
|
updatedByUserId: string;
|
|
243
249
|
versionId: string;
|
|
244
250
|
};
|
|
245
|
-
export type PromptRelease = {
|
|
246
|
-
activeFrom: string | null;
|
|
247
|
-
activeTo: string | null;
|
|
248
|
-
actorId: string;
|
|
249
|
-
actorType: 'user' | 'api_key' | 'worker';
|
|
250
|
-
assignmentSalt: string | null;
|
|
251
|
-
changeKind: 'release_initial' | 'release_promoted' | 'release_rolled_back' | 'release_weight_changed';
|
|
252
|
-
createdAt: string;
|
|
253
|
-
envSlug: string;
|
|
254
|
-
environmentId: string;
|
|
255
|
-
id: string;
|
|
256
|
-
priorReleaseId: string | null;
|
|
257
|
-
promptId: string;
|
|
258
|
-
reason: string;
|
|
259
|
-
strategy: 'single' | 'weighted';
|
|
260
|
-
versionId: string;
|
|
261
|
-
};
|
|
262
251
|
export type PromptVersion = {
|
|
263
252
|
changelog: string | null;
|
|
264
253
|
createdAt: string;
|
|
@@ -291,6 +280,8 @@ export type RenderedSkill = {
|
|
|
291
280
|
label: string;
|
|
292
281
|
promptId: string;
|
|
293
282
|
releaseId: string;
|
|
283
|
+
releasedAt?: string | null;
|
|
284
|
+
releasedByDisplayName?: string | null | null;
|
|
294
285
|
version: number;
|
|
295
286
|
versionId: string;
|
|
296
287
|
};
|
|
@@ -336,12 +327,10 @@ export type ResolvedPrompt = {
|
|
|
336
327
|
promptId: string;
|
|
337
328
|
releaseId: string;
|
|
338
329
|
rendered: RenderedPrompt;
|
|
339
|
-
subjectHash?: string | null;
|
|
340
330
|
toolChoice?: 'auto' | 'none' | 'required' | {
|
|
341
331
|
name: string;
|
|
342
332
|
} | null;
|
|
343
333
|
tools?: Array<ResolvedToolDefinition> | null;
|
|
344
|
-
variantName?: string | null;
|
|
345
334
|
version: number;
|
|
346
335
|
versionId: string;
|
|
347
336
|
};
|
|
@@ -462,19 +451,6 @@ export type ServiceUnavailableError = {
|
|
|
462
451
|
};
|
|
463
452
|
success: false;
|
|
464
453
|
};
|
|
465
|
-
export type SkillFileDiffRow = {
|
|
466
|
-
change: 'unchanged' | 'modified' | 'added' | 'removed' | 'renamed';
|
|
467
|
-
filename: string;
|
|
468
|
-
from?: string | null;
|
|
469
|
-
fromFilename?: string | null;
|
|
470
|
-
to?: string | null;
|
|
471
|
-
};
|
|
472
|
-
export type SkillVersionDiff = {
|
|
473
|
-
files: Array<SkillFileDiffRow>;
|
|
474
|
-
format: 'skill';
|
|
475
|
-
from: number;
|
|
476
|
-
to: number;
|
|
477
|
-
};
|
|
478
454
|
export type TooManyRequestsError = {
|
|
479
455
|
_tag: 'TooManyRequestsError';
|
|
480
456
|
code: number;
|
|
@@ -10796,10 +10772,8 @@ export type ProjectEnvironmentsCreateProjectEnvironmentData = {
|
|
|
10796
10772
|
description?: string | null | null;
|
|
10797
10773
|
isDefault?: boolean | null;
|
|
10798
10774
|
isGatewayFallback?: boolean | null;
|
|
10799
|
-
isPointer?: boolean | null;
|
|
10800
10775
|
isProduction?: boolean | null;
|
|
10801
10776
|
name: string;
|
|
10802
|
-
requiresApproval?: boolean | null;
|
|
10803
10777
|
slug: string;
|
|
10804
10778
|
sortOrder?: number | null;
|
|
10805
10779
|
};
|
|
@@ -10893,235 +10867,6 @@ export type ProjectEnvironmentsCreateProjectEnvironmentResponses = {
|
|
|
10893
10867
|
};
|
|
10894
10868
|
};
|
|
10895
10869
|
export type ProjectEnvironmentsCreateProjectEnvironmentResponse = ProjectEnvironmentsCreateProjectEnvironmentResponses[keyof ProjectEnvironmentsCreateProjectEnvironmentResponses];
|
|
10896
|
-
export type PromptsGetPromptEnvPolicyData = {
|
|
10897
|
-
body?: never;
|
|
10898
|
-
path: {
|
|
10899
|
-
projectId: string;
|
|
10900
|
-
environmentId: string;
|
|
10901
|
-
};
|
|
10902
|
-
query?: never;
|
|
10903
|
-
url: '/v1/projects/{projectId}/environments/{environmentId}/prompt-policy';
|
|
10904
|
-
};
|
|
10905
|
-
export type PromptsGetPromptEnvPolicyErrors = {
|
|
10906
|
-
/**
|
|
10907
|
-
* BadRequestError
|
|
10908
|
-
*/
|
|
10909
|
-
400: BadRequestError;
|
|
10910
|
-
/**
|
|
10911
|
-
* UnauthorizedError
|
|
10912
|
-
*/
|
|
10913
|
-
401: UnauthorizedError;
|
|
10914
|
-
/**
|
|
10915
|
-
* ForbiddenError
|
|
10916
|
-
*/
|
|
10917
|
-
403: ForbiddenError;
|
|
10918
|
-
/**
|
|
10919
|
-
* NotFoundError
|
|
10920
|
-
*/
|
|
10921
|
-
404: NotFoundError;
|
|
10922
|
-
/**
|
|
10923
|
-
* ConflictError
|
|
10924
|
-
*/
|
|
10925
|
-
409: ConflictError;
|
|
10926
|
-
/**
|
|
10927
|
-
* GoneError
|
|
10928
|
-
*/
|
|
10929
|
-
410: GoneError;
|
|
10930
|
-
/**
|
|
10931
|
-
* ContentTooLargeError
|
|
10932
|
-
*/
|
|
10933
|
-
413: ContentTooLargeError;
|
|
10934
|
-
/**
|
|
10935
|
-
* MisdirectedRequestError
|
|
10936
|
-
*/
|
|
10937
|
-
421: MisdirectedRequestError;
|
|
10938
|
-
/**
|
|
10939
|
-
* UnprocessableEntityError
|
|
10940
|
-
*/
|
|
10941
|
-
422: UnprocessableEntityError;
|
|
10942
|
-
/**
|
|
10943
|
-
* TooManyRequestsError
|
|
10944
|
-
*/
|
|
10945
|
-
429: TooManyRequestsError;
|
|
10946
|
-
/**
|
|
10947
|
-
* InternalServerError
|
|
10948
|
-
*/
|
|
10949
|
-
500: InternalServerError;
|
|
10950
|
-
/**
|
|
10951
|
-
* ServiceUnavailableError
|
|
10952
|
-
*/
|
|
10953
|
-
503: ServiceUnavailableError;
|
|
10954
|
-
};
|
|
10955
|
-
export type PromptsGetPromptEnvPolicyError = PromptsGetPromptEnvPolicyErrors[keyof PromptsGetPromptEnvPolicyErrors];
|
|
10956
|
-
export type PromptsGetPromptEnvPolicyResponses = {
|
|
10957
|
-
/**
|
|
10958
|
-
* Success
|
|
10959
|
-
*/
|
|
10960
|
-
200: {
|
|
10961
|
-
code: number;
|
|
10962
|
-
data: {
|
|
10963
|
-
policy: {
|
|
10964
|
-
createdAt: string;
|
|
10965
|
-
createdBy: string;
|
|
10966
|
-
envSlug: string;
|
|
10967
|
-
environmentId: string;
|
|
10968
|
-
id: string;
|
|
10969
|
-
minimumDwellTimeHours: number;
|
|
10970
|
-
noRollbackInSource: boolean;
|
|
10971
|
-
noRollbackLookBackHours: number;
|
|
10972
|
-
projectId: string;
|
|
10973
|
-
requiredSourceEnvId: string | null;
|
|
10974
|
-
requiredSourceEnvSlug: string | null;
|
|
10975
|
-
requiresApproval: boolean;
|
|
10976
|
-
requiresApprovalSeparationOfDuties: boolean;
|
|
10977
|
-
updatedAt: string;
|
|
10978
|
-
updatedBy: string;
|
|
10979
|
-
} | null;
|
|
10980
|
-
} | null;
|
|
10981
|
-
error: {
|
|
10982
|
-
code: string;
|
|
10983
|
-
details?: unknown | null;
|
|
10984
|
-
message: string;
|
|
10985
|
-
rowErrors?: Array<{
|
|
10986
|
-
code: string;
|
|
10987
|
-
message: string;
|
|
10988
|
-
path: Array<string | number>;
|
|
10989
|
-
}> | null;
|
|
10990
|
-
} | null;
|
|
10991
|
-
pagination: {
|
|
10992
|
-
limit: number;
|
|
10993
|
-
page: number;
|
|
10994
|
-
total: number;
|
|
10995
|
-
totalPages: number;
|
|
10996
|
-
} | null;
|
|
10997
|
-
sdkBehavior?: {
|
|
10998
|
-
flags: {
|
|
10999
|
-
[key: string]: unknown;
|
|
11000
|
-
};
|
|
11001
|
-
v: number;
|
|
11002
|
-
} | null;
|
|
11003
|
-
success: boolean;
|
|
11004
|
-
};
|
|
11005
|
-
};
|
|
11006
|
-
export type PromptsGetPromptEnvPolicyResponse = PromptsGetPromptEnvPolicyResponses[keyof PromptsGetPromptEnvPolicyResponses];
|
|
11007
|
-
export type PromptsUpsertPromptEnvPolicyData = {
|
|
11008
|
-
body: {
|
|
11009
|
-
minimumDwellTimeHours?: number | null;
|
|
11010
|
-
noRollbackInSource?: boolean | null;
|
|
11011
|
-
noRollbackLookBackHours?: number | null;
|
|
11012
|
-
requiredSourceEnvId?: string | null | null;
|
|
11013
|
-
requiresApproval?: boolean | null;
|
|
11014
|
-
requiresApprovalSeparationOfDuties?: boolean | null;
|
|
11015
|
-
};
|
|
11016
|
-
path: {
|
|
11017
|
-
projectId: string;
|
|
11018
|
-
environmentId: string;
|
|
11019
|
-
};
|
|
11020
|
-
query?: never;
|
|
11021
|
-
url: '/v1/projects/{projectId}/environments/{environmentId}/prompt-policy';
|
|
11022
|
-
};
|
|
11023
|
-
export type PromptsUpsertPromptEnvPolicyErrors = {
|
|
11024
|
-
/**
|
|
11025
|
-
* BadRequestError
|
|
11026
|
-
*/
|
|
11027
|
-
400: BadRequestError;
|
|
11028
|
-
/**
|
|
11029
|
-
* UnauthorizedError
|
|
11030
|
-
*/
|
|
11031
|
-
401: UnauthorizedError;
|
|
11032
|
-
/**
|
|
11033
|
-
* ForbiddenError
|
|
11034
|
-
*/
|
|
11035
|
-
403: ForbiddenError;
|
|
11036
|
-
/**
|
|
11037
|
-
* NotFoundError
|
|
11038
|
-
*/
|
|
11039
|
-
404: NotFoundError;
|
|
11040
|
-
/**
|
|
11041
|
-
* ConflictError
|
|
11042
|
-
*/
|
|
11043
|
-
409: ConflictError;
|
|
11044
|
-
/**
|
|
11045
|
-
* GoneError
|
|
11046
|
-
*/
|
|
11047
|
-
410: GoneError;
|
|
11048
|
-
/**
|
|
11049
|
-
* ContentTooLargeError
|
|
11050
|
-
*/
|
|
11051
|
-
413: ContentTooLargeError;
|
|
11052
|
-
/**
|
|
11053
|
-
* MisdirectedRequestError
|
|
11054
|
-
*/
|
|
11055
|
-
421: MisdirectedRequestError;
|
|
11056
|
-
/**
|
|
11057
|
-
* UnprocessableEntityError
|
|
11058
|
-
*/
|
|
11059
|
-
422: UnprocessableEntityError;
|
|
11060
|
-
/**
|
|
11061
|
-
* TooManyRequestsError
|
|
11062
|
-
*/
|
|
11063
|
-
429: TooManyRequestsError;
|
|
11064
|
-
/**
|
|
11065
|
-
* InternalServerError
|
|
11066
|
-
*/
|
|
11067
|
-
500: InternalServerError;
|
|
11068
|
-
/**
|
|
11069
|
-
* ServiceUnavailableError
|
|
11070
|
-
*/
|
|
11071
|
-
503: ServiceUnavailableError;
|
|
11072
|
-
};
|
|
11073
|
-
export type PromptsUpsertPromptEnvPolicyError = PromptsUpsertPromptEnvPolicyErrors[keyof PromptsUpsertPromptEnvPolicyErrors];
|
|
11074
|
-
export type PromptsUpsertPromptEnvPolicyResponses = {
|
|
11075
|
-
/**
|
|
11076
|
-
* Success
|
|
11077
|
-
*/
|
|
11078
|
-
200: {
|
|
11079
|
-
code: number;
|
|
11080
|
-
data: {
|
|
11081
|
-
policy: {
|
|
11082
|
-
createdAt: string;
|
|
11083
|
-
createdBy: string;
|
|
11084
|
-
envSlug: string;
|
|
11085
|
-
environmentId: string;
|
|
11086
|
-
id: string;
|
|
11087
|
-
minimumDwellTimeHours: number;
|
|
11088
|
-
noRollbackInSource: boolean;
|
|
11089
|
-
noRollbackLookBackHours: number;
|
|
11090
|
-
projectId: string;
|
|
11091
|
-
requiredSourceEnvId: string | null;
|
|
11092
|
-
requiredSourceEnvSlug: string | null;
|
|
11093
|
-
requiresApproval: boolean;
|
|
11094
|
-
requiresApprovalSeparationOfDuties: boolean;
|
|
11095
|
-
updatedAt: string;
|
|
11096
|
-
updatedBy: string;
|
|
11097
|
-
} | null;
|
|
11098
|
-
} | null;
|
|
11099
|
-
error: {
|
|
11100
|
-
code: string;
|
|
11101
|
-
details?: unknown | null;
|
|
11102
|
-
message: string;
|
|
11103
|
-
rowErrors?: Array<{
|
|
11104
|
-
code: string;
|
|
11105
|
-
message: string;
|
|
11106
|
-
path: Array<string | number>;
|
|
11107
|
-
}> | null;
|
|
11108
|
-
} | null;
|
|
11109
|
-
pagination: {
|
|
11110
|
-
limit: number;
|
|
11111
|
-
page: number;
|
|
11112
|
-
total: number;
|
|
11113
|
-
totalPages: number;
|
|
11114
|
-
} | null;
|
|
11115
|
-
sdkBehavior?: {
|
|
11116
|
-
flags: {
|
|
11117
|
-
[key: string]: unknown;
|
|
11118
|
-
};
|
|
11119
|
-
v: number;
|
|
11120
|
-
} | null;
|
|
11121
|
-
success: boolean;
|
|
11122
|
-
};
|
|
11123
|
-
};
|
|
11124
|
-
export type PromptsUpsertPromptEnvPolicyResponse = PromptsUpsertPromptEnvPolicyResponses[keyof PromptsUpsertPromptEnvPolicyResponses];
|
|
11125
10870
|
export type SnapshotGetProjectSnapshotAtTimeData = {
|
|
11126
10871
|
body?: never;
|
|
11127
10872
|
path: {
|
|
@@ -11241,10 +10986,8 @@ export type ProjectEnvironmentsUpdateProjectEnvironmentData = {
|
|
|
11241
10986
|
description?: string | null | null;
|
|
11242
10987
|
isDefault?: boolean | null;
|
|
11243
10988
|
isGatewayFallback?: boolean | null;
|
|
11244
|
-
isPointer?: boolean | null;
|
|
11245
10989
|
isProduction?: boolean | null;
|
|
11246
10990
|
name?: string | null;
|
|
11247
|
-
requiresApproval?: boolean | null;
|
|
11248
10991
|
slug?: string | null;
|
|
11249
10992
|
sortOrder?: number | null;
|
|
11250
10993
|
};
|
|
@@ -13941,10 +13684,10 @@ export type PromptsListPromptsResponses = {
|
|
|
13941
13684
|
labels: Array<{
|
|
13942
13685
|
label: string;
|
|
13943
13686
|
version: number | null;
|
|
13944
|
-
weighted
|
|
13687
|
+
weighted?: {
|
|
13945
13688
|
split: string;
|
|
13946
13689
|
variants: number;
|
|
13947
|
-
} | null;
|
|
13690
|
+
} | null | null;
|
|
13948
13691
|
}>;
|
|
13949
13692
|
lastModifiedAt: string;
|
|
13950
13693
|
lastModifiedByDisplayName: string | null;
|
|
@@ -15289,24 +15032,18 @@ export type PromptsListPromptLabelEventsByLabelResponses = {
|
|
|
15289
15032
|
};
|
|
15290
15033
|
};
|
|
15291
15034
|
export type PromptsListPromptLabelEventsByLabelResponse = PromptsListPromptLabelEventsByLabelResponses[keyof PromptsListPromptLabelEventsByLabelResponses];
|
|
15292
|
-
export type
|
|
15293
|
-
body
|
|
15294
|
-
reason: string;
|
|
15295
|
-
variants: Array<{
|
|
15296
|
-
name: string;
|
|
15297
|
-
versionId: string;
|
|
15298
|
-
weight: number;
|
|
15299
|
-
}>;
|
|
15300
|
-
};
|
|
15035
|
+
export type PromptMetricsGetPromptRequestMetricsData = {
|
|
15036
|
+
body?: never;
|
|
15301
15037
|
path: {
|
|
15302
15038
|
projectId: string;
|
|
15303
15039
|
promptId: string;
|
|
15304
|
-
label: string;
|
|
15305
15040
|
};
|
|
15306
|
-
query?:
|
|
15307
|
-
|
|
15041
|
+
query?: {
|
|
15042
|
+
window?: string | null;
|
|
15043
|
+
};
|
|
15044
|
+
url: '/v1/projects/{projectId}/prompts/{promptId}/request-metrics';
|
|
15308
15045
|
};
|
|
15309
|
-
export type
|
|
15046
|
+
export type PromptMetricsGetPromptRequestMetricsErrors = {
|
|
15310
15047
|
/**
|
|
15311
15048
|
* BadRequestError
|
|
15312
15049
|
*/
|
|
@@ -15356,14 +15093,25 @@ export type PromptsSetWeightedReleaseErrors = {
|
|
|
15356
15093
|
*/
|
|
15357
15094
|
503: ServiceUnavailableError;
|
|
15358
15095
|
};
|
|
15359
|
-
export type
|
|
15360
|
-
export type
|
|
15096
|
+
export type PromptMetricsGetPromptRequestMetricsError = PromptMetricsGetPromptRequestMetricsErrors[keyof PromptMetricsGetPromptRequestMetricsErrors];
|
|
15097
|
+
export type PromptMetricsGetPromptRequestMetricsResponses = {
|
|
15361
15098
|
/**
|
|
15362
15099
|
* Success
|
|
15363
15100
|
*/
|
|
15364
15101
|
200: {
|
|
15365
15102
|
code: number;
|
|
15366
|
-
data:
|
|
15103
|
+
data: {
|
|
15104
|
+
bucketMinutes: number;
|
|
15105
|
+
series: Array<{
|
|
15106
|
+
points: Array<{
|
|
15107
|
+
bucketStart: string;
|
|
15108
|
+
requests: number;
|
|
15109
|
+
}>;
|
|
15110
|
+
totalRequests: number;
|
|
15111
|
+
version: string;
|
|
15112
|
+
}>;
|
|
15113
|
+
windowHours: number;
|
|
15114
|
+
} | null;
|
|
15367
15115
|
error: {
|
|
15368
15116
|
code: string;
|
|
15369
15117
|
details?: unknown | null;
|
|
@@ -15389,124 +15137,18 @@ export type PromptsSetWeightedReleaseResponses = {
|
|
|
15389
15137
|
success: boolean;
|
|
15390
15138
|
};
|
|
15391
15139
|
};
|
|
15392
|
-
export type
|
|
15393
|
-
export type
|
|
15140
|
+
export type PromptMetricsGetPromptRequestMetricsResponse = PromptMetricsGetPromptRequestMetricsResponses[keyof PromptMetricsGetPromptRequestMetricsResponses];
|
|
15141
|
+
export type PromptsListPromptVersionsData = {
|
|
15394
15142
|
body?: never;
|
|
15395
15143
|
path: {
|
|
15396
15144
|
projectId: string;
|
|
15397
15145
|
promptId: string;
|
|
15398
15146
|
};
|
|
15399
15147
|
query?: {
|
|
15400
|
-
|
|
15148
|
+
page?: number | null;
|
|
15149
|
+
limit?: number | null;
|
|
15401
15150
|
};
|
|
15402
|
-
url: '/v1/projects/{projectId}/prompts/{promptId}/
|
|
15403
|
-
};
|
|
15404
|
-
export type PromptMetricsGetPromptRequestMetricsErrors = {
|
|
15405
|
-
/**
|
|
15406
|
-
* BadRequestError
|
|
15407
|
-
*/
|
|
15408
|
-
400: BadRequestError;
|
|
15409
|
-
/**
|
|
15410
|
-
* UnauthorizedError
|
|
15411
|
-
*/
|
|
15412
|
-
401: UnauthorizedError;
|
|
15413
|
-
/**
|
|
15414
|
-
* ForbiddenError
|
|
15415
|
-
*/
|
|
15416
|
-
403: ForbiddenError;
|
|
15417
|
-
/**
|
|
15418
|
-
* NotFoundError
|
|
15419
|
-
*/
|
|
15420
|
-
404: NotFoundError;
|
|
15421
|
-
/**
|
|
15422
|
-
* ConflictError
|
|
15423
|
-
*/
|
|
15424
|
-
409: ConflictError;
|
|
15425
|
-
/**
|
|
15426
|
-
* GoneError
|
|
15427
|
-
*/
|
|
15428
|
-
410: GoneError;
|
|
15429
|
-
/**
|
|
15430
|
-
* ContentTooLargeError
|
|
15431
|
-
*/
|
|
15432
|
-
413: ContentTooLargeError;
|
|
15433
|
-
/**
|
|
15434
|
-
* MisdirectedRequestError
|
|
15435
|
-
*/
|
|
15436
|
-
421: MisdirectedRequestError;
|
|
15437
|
-
/**
|
|
15438
|
-
* UnprocessableEntityError
|
|
15439
|
-
*/
|
|
15440
|
-
422: UnprocessableEntityError;
|
|
15441
|
-
/**
|
|
15442
|
-
* TooManyRequestsError
|
|
15443
|
-
*/
|
|
15444
|
-
429: TooManyRequestsError;
|
|
15445
|
-
/**
|
|
15446
|
-
* InternalServerError
|
|
15447
|
-
*/
|
|
15448
|
-
500: InternalServerError;
|
|
15449
|
-
/**
|
|
15450
|
-
* ServiceUnavailableError
|
|
15451
|
-
*/
|
|
15452
|
-
503: ServiceUnavailableError;
|
|
15453
|
-
};
|
|
15454
|
-
export type PromptMetricsGetPromptRequestMetricsError = PromptMetricsGetPromptRequestMetricsErrors[keyof PromptMetricsGetPromptRequestMetricsErrors];
|
|
15455
|
-
export type PromptMetricsGetPromptRequestMetricsResponses = {
|
|
15456
|
-
/**
|
|
15457
|
-
* Success
|
|
15458
|
-
*/
|
|
15459
|
-
200: {
|
|
15460
|
-
code: number;
|
|
15461
|
-
data: {
|
|
15462
|
-
bucketMinutes: number;
|
|
15463
|
-
series: Array<{
|
|
15464
|
-
points: Array<{
|
|
15465
|
-
bucketStart: string;
|
|
15466
|
-
requests: number;
|
|
15467
|
-
}>;
|
|
15468
|
-
totalRequests: number;
|
|
15469
|
-
version: string;
|
|
15470
|
-
}>;
|
|
15471
|
-
windowHours: number;
|
|
15472
|
-
} | null;
|
|
15473
|
-
error: {
|
|
15474
|
-
code: string;
|
|
15475
|
-
details?: unknown | null;
|
|
15476
|
-
message: string;
|
|
15477
|
-
rowErrors?: Array<{
|
|
15478
|
-
code: string;
|
|
15479
|
-
message: string;
|
|
15480
|
-
path: Array<string | number>;
|
|
15481
|
-
}> | null;
|
|
15482
|
-
} | null;
|
|
15483
|
-
pagination: {
|
|
15484
|
-
limit: number;
|
|
15485
|
-
page: number;
|
|
15486
|
-
total: number;
|
|
15487
|
-
totalPages: number;
|
|
15488
|
-
} | null;
|
|
15489
|
-
sdkBehavior?: {
|
|
15490
|
-
flags: {
|
|
15491
|
-
[key: string]: unknown;
|
|
15492
|
-
};
|
|
15493
|
-
v: number;
|
|
15494
|
-
} | null;
|
|
15495
|
-
success: boolean;
|
|
15496
|
-
};
|
|
15497
|
-
};
|
|
15498
|
-
export type PromptMetricsGetPromptRequestMetricsResponse = PromptMetricsGetPromptRequestMetricsResponses[keyof PromptMetricsGetPromptRequestMetricsResponses];
|
|
15499
|
-
export type PromptsListPromptVersionsData = {
|
|
15500
|
-
body?: never;
|
|
15501
|
-
path: {
|
|
15502
|
-
projectId: string;
|
|
15503
|
-
promptId: string;
|
|
15504
|
-
};
|
|
15505
|
-
query?: {
|
|
15506
|
-
page?: number | null;
|
|
15507
|
-
limit?: number | null;
|
|
15508
|
-
};
|
|
15509
|
-
url: '/v1/projects/{projectId}/prompts/{promptId}/versions';
|
|
15151
|
+
url: '/v1/projects/{projectId}/prompts/{promptId}/versions';
|
|
15510
15152
|
};
|
|
15511
15153
|
export type PromptsListPromptVersionsErrors = {
|
|
15512
15154
|
/**
|
|
@@ -15693,187 +15335,6 @@ export type PromptsCreatePromptVersionResponses = {
|
|
|
15693
15335
|
};
|
|
15694
15336
|
};
|
|
15695
15337
|
export type PromptsCreatePromptVersionResponse = PromptsCreatePromptVersionResponses[keyof PromptsCreatePromptVersionResponses];
|
|
15696
|
-
export type PromptsGetPromptVersionDiffData = {
|
|
15697
|
-
body?: never;
|
|
15698
|
-
path: {
|
|
15699
|
-
projectId: string;
|
|
15700
|
-
promptId: string;
|
|
15701
|
-
versionId: string;
|
|
15702
|
-
};
|
|
15703
|
-
query?: {
|
|
15704
|
-
against?: string | null;
|
|
15705
|
-
};
|
|
15706
|
-
url: '/v1/projects/{projectId}/prompts/{promptId}/versions/{versionId}/diff';
|
|
15707
|
-
};
|
|
15708
|
-
export type PromptsGetPromptVersionDiffErrors = {
|
|
15709
|
-
/**
|
|
15710
|
-
* BadRequestError
|
|
15711
|
-
*/
|
|
15712
|
-
400: BadRequestError;
|
|
15713
|
-
/**
|
|
15714
|
-
* UnauthorizedError
|
|
15715
|
-
*/
|
|
15716
|
-
401: UnauthorizedError;
|
|
15717
|
-
/**
|
|
15718
|
-
* ForbiddenError
|
|
15719
|
-
*/
|
|
15720
|
-
403: ForbiddenError;
|
|
15721
|
-
/**
|
|
15722
|
-
* NotFoundError
|
|
15723
|
-
*/
|
|
15724
|
-
404: NotFoundError;
|
|
15725
|
-
/**
|
|
15726
|
-
* ConflictError
|
|
15727
|
-
*/
|
|
15728
|
-
409: ConflictError;
|
|
15729
|
-
/**
|
|
15730
|
-
* GoneError
|
|
15731
|
-
*/
|
|
15732
|
-
410: GoneError;
|
|
15733
|
-
/**
|
|
15734
|
-
* ContentTooLargeError
|
|
15735
|
-
*/
|
|
15736
|
-
413: ContentTooLargeError;
|
|
15737
|
-
/**
|
|
15738
|
-
* MisdirectedRequestError
|
|
15739
|
-
*/
|
|
15740
|
-
421: MisdirectedRequestError;
|
|
15741
|
-
/**
|
|
15742
|
-
* UnprocessableEntityError
|
|
15743
|
-
*/
|
|
15744
|
-
422: UnprocessableEntityError;
|
|
15745
|
-
/**
|
|
15746
|
-
* TooManyRequestsError
|
|
15747
|
-
*/
|
|
15748
|
-
429: TooManyRequestsError;
|
|
15749
|
-
/**
|
|
15750
|
-
* InternalServerError
|
|
15751
|
-
*/
|
|
15752
|
-
500: InternalServerError;
|
|
15753
|
-
/**
|
|
15754
|
-
* ServiceUnavailableError
|
|
15755
|
-
*/
|
|
15756
|
-
503: ServiceUnavailableError;
|
|
15757
|
-
};
|
|
15758
|
-
export type PromptsGetPromptVersionDiffError = PromptsGetPromptVersionDiffErrors[keyof PromptsGetPromptVersionDiffErrors];
|
|
15759
|
-
export type PromptsGetPromptVersionDiffResponses = {
|
|
15760
|
-
/**
|
|
15761
|
-
* Success
|
|
15762
|
-
*/
|
|
15763
|
-
200: {
|
|
15764
|
-
code: number;
|
|
15765
|
-
data: {
|
|
15766
|
-
operations: Array<{
|
|
15767
|
-
condition: {
|
|
15768
|
-
kind: string;
|
|
15769
|
-
};
|
|
15770
|
-
content?: string | null;
|
|
15771
|
-
name: string;
|
|
15772
|
-
op: 'add';
|
|
15773
|
-
role: 'system' | 'user' | 'assistant' | 'developer' | 'tool';
|
|
15774
|
-
toolCallId?: string | null;
|
|
15775
|
-
toolCalls?: Array<{
|
|
15776
|
-
arguments: {
|
|
15777
|
-
[key: string]: unknown;
|
|
15778
|
-
};
|
|
15779
|
-
id: string;
|
|
15780
|
-
name: string;
|
|
15781
|
-
}> | null;
|
|
15782
|
-
} | {
|
|
15783
|
-
condition: {
|
|
15784
|
-
kind: string;
|
|
15785
|
-
};
|
|
15786
|
-
content?: string | null;
|
|
15787
|
-
name: string;
|
|
15788
|
-
op: 'remove';
|
|
15789
|
-
role: 'system' | 'user' | 'assistant' | 'developer' | 'tool';
|
|
15790
|
-
toolCallId?: string | null;
|
|
15791
|
-
toolCalls?: Array<{
|
|
15792
|
-
arguments: {
|
|
15793
|
-
[key: string]: unknown;
|
|
15794
|
-
};
|
|
15795
|
-
id: string;
|
|
15796
|
-
name: string;
|
|
15797
|
-
}> | null;
|
|
15798
|
-
} | {
|
|
15799
|
-
after: string;
|
|
15800
|
-
before: string;
|
|
15801
|
-
name: string;
|
|
15802
|
-
op: 'edit_content';
|
|
15803
|
-
} | {
|
|
15804
|
-
after: {
|
|
15805
|
-
kind: string;
|
|
15806
|
-
};
|
|
15807
|
-
before: {
|
|
15808
|
-
kind: string;
|
|
15809
|
-
};
|
|
15810
|
-
name: string;
|
|
15811
|
-
op: 'edit_condition';
|
|
15812
|
-
} | {
|
|
15813
|
-
after: 'system' | 'user' | 'assistant' | 'developer' | 'tool';
|
|
15814
|
-
before: 'system' | 'user' | 'assistant' | 'developer' | 'tool';
|
|
15815
|
-
name: string;
|
|
15816
|
-
op: 'edit_role';
|
|
15817
|
-
} | {
|
|
15818
|
-
after: boolean;
|
|
15819
|
-
before: boolean;
|
|
15820
|
-
name: string;
|
|
15821
|
-
op: 'edit_required';
|
|
15822
|
-
} | {
|
|
15823
|
-
after: string;
|
|
15824
|
-
before: string;
|
|
15825
|
-
name: string;
|
|
15826
|
-
op: 'edit_tool_call_id';
|
|
15827
|
-
} | {
|
|
15828
|
-
after: Array<{
|
|
15829
|
-
arguments: {
|
|
15830
|
-
[key: string]: unknown;
|
|
15831
|
-
};
|
|
15832
|
-
id: string;
|
|
15833
|
-
name: string;
|
|
15834
|
-
}>;
|
|
15835
|
-
before: Array<{
|
|
15836
|
-
arguments: {
|
|
15837
|
-
[key: string]: unknown;
|
|
15838
|
-
};
|
|
15839
|
-
id: string;
|
|
15840
|
-
name: string;
|
|
15841
|
-
}>;
|
|
15842
|
-
name: string;
|
|
15843
|
-
op: 'edit_tool_calls';
|
|
15844
|
-
} | {
|
|
15845
|
-
fromIndex: number;
|
|
15846
|
-
name: string;
|
|
15847
|
-
op: 'reorder';
|
|
15848
|
-
toIndex: number;
|
|
15849
|
-
}>;
|
|
15850
|
-
} | SkillVersionDiff | null;
|
|
15851
|
-
error: {
|
|
15852
|
-
code: string;
|
|
15853
|
-
details?: unknown | null;
|
|
15854
|
-
message: string;
|
|
15855
|
-
rowErrors?: Array<{
|
|
15856
|
-
code: string;
|
|
15857
|
-
message: string;
|
|
15858
|
-
path: Array<string | number>;
|
|
15859
|
-
}> | null;
|
|
15860
|
-
} | null;
|
|
15861
|
-
pagination: {
|
|
15862
|
-
limit: number;
|
|
15863
|
-
page: number;
|
|
15864
|
-
total: number;
|
|
15865
|
-
totalPages: number;
|
|
15866
|
-
} | null;
|
|
15867
|
-
sdkBehavior?: {
|
|
15868
|
-
flags: {
|
|
15869
|
-
[key: string]: unknown;
|
|
15870
|
-
};
|
|
15871
|
-
v: number;
|
|
15872
|
-
} | null;
|
|
15873
|
-
success: boolean;
|
|
15874
|
-
};
|
|
15875
|
-
};
|
|
15876
|
-
export type PromptsGetPromptVersionDiffResponse = PromptsGetPromptVersionDiffResponses[keyof PromptsGetPromptVersionDiffResponses];
|
|
15877
15338
|
export type PromptsGetPromptVersionData = {
|
|
15878
15339
|
body?: never;
|
|
15879
15340
|
path: {
|
|
@@ -15968,435 +15429,6 @@ export type PromptsGetPromptVersionResponses = {
|
|
|
15968
15429
|
};
|
|
15969
15430
|
};
|
|
15970
15431
|
export type PromptsGetPromptVersionResponse = PromptsGetPromptVersionResponses[keyof PromptsGetPromptVersionResponses];
|
|
15971
|
-
export type PromptsGetPromptReviewStateData = {
|
|
15972
|
-
body?: never;
|
|
15973
|
-
path: {
|
|
15974
|
-
projectId: string;
|
|
15975
|
-
promptId: string;
|
|
15976
|
-
versionNumber: string;
|
|
15977
|
-
};
|
|
15978
|
-
query?: never;
|
|
15979
|
-
url: '/v1/projects/{projectId}/prompts/{promptId}/versions/{versionNumber}/reviews';
|
|
15980
|
-
};
|
|
15981
|
-
export type PromptsGetPromptReviewStateErrors = {
|
|
15982
|
-
/**
|
|
15983
|
-
* BadRequestError
|
|
15984
|
-
*/
|
|
15985
|
-
400: BadRequestError;
|
|
15986
|
-
/**
|
|
15987
|
-
* UnauthorizedError
|
|
15988
|
-
*/
|
|
15989
|
-
401: UnauthorizedError;
|
|
15990
|
-
/**
|
|
15991
|
-
* ForbiddenError
|
|
15992
|
-
*/
|
|
15993
|
-
403: ForbiddenError;
|
|
15994
|
-
/**
|
|
15995
|
-
* NotFoundError
|
|
15996
|
-
*/
|
|
15997
|
-
404: NotFoundError;
|
|
15998
|
-
/**
|
|
15999
|
-
* ConflictError
|
|
16000
|
-
*/
|
|
16001
|
-
409: ConflictError;
|
|
16002
|
-
/**
|
|
16003
|
-
* GoneError
|
|
16004
|
-
*/
|
|
16005
|
-
410: GoneError;
|
|
16006
|
-
/**
|
|
16007
|
-
* ContentTooLargeError
|
|
16008
|
-
*/
|
|
16009
|
-
413: ContentTooLargeError;
|
|
16010
|
-
/**
|
|
16011
|
-
* MisdirectedRequestError
|
|
16012
|
-
*/
|
|
16013
|
-
421: MisdirectedRequestError;
|
|
16014
|
-
/**
|
|
16015
|
-
* UnprocessableEntityError
|
|
16016
|
-
*/
|
|
16017
|
-
422: UnprocessableEntityError;
|
|
16018
|
-
/**
|
|
16019
|
-
* TooManyRequestsError
|
|
16020
|
-
*/
|
|
16021
|
-
429: TooManyRequestsError;
|
|
16022
|
-
/**
|
|
16023
|
-
* InternalServerError
|
|
16024
|
-
*/
|
|
16025
|
-
500: InternalServerError;
|
|
16026
|
-
/**
|
|
16027
|
-
* ServiceUnavailableError
|
|
16028
|
-
*/
|
|
16029
|
-
503: ServiceUnavailableError;
|
|
16030
|
-
};
|
|
16031
|
-
export type PromptsGetPromptReviewStateError = PromptsGetPromptReviewStateErrors[keyof PromptsGetPromptReviewStateErrors];
|
|
16032
|
-
export type PromptsGetPromptReviewStateResponses = {
|
|
16033
|
-
/**
|
|
16034
|
-
* Success
|
|
16035
|
-
*/
|
|
16036
|
-
200: {
|
|
16037
|
-
code: number;
|
|
16038
|
-
data: {
|
|
16039
|
-
activeDecisions: Array<{
|
|
16040
|
-
createdAt: string;
|
|
16041
|
-
decision: 'approve' | 'reject' | 'request_changes' | 'withdraw';
|
|
16042
|
-
hasActiveRejection: boolean;
|
|
16043
|
-
reviewId: string;
|
|
16044
|
-
reviewerPrincipalId: string;
|
|
16045
|
-
}>;
|
|
16046
|
-
approvalCount: number;
|
|
16047
|
-
callerHasActiveRejection: boolean;
|
|
16048
|
-
hasActiveRejection: boolean;
|
|
16049
|
-
reviews: Array<{
|
|
16050
|
-
createdAt: string;
|
|
16051
|
-
decision: 'approve' | 'reject' | 'request_changes' | 'withdraw';
|
|
16052
|
-
id: string;
|
|
16053
|
-
note: string | null;
|
|
16054
|
-
reviewerDisplayName: string | null;
|
|
16055
|
-
reviewerPrincipalId: string;
|
|
16056
|
-
}>;
|
|
16057
|
-
} | null;
|
|
16058
|
-
error: {
|
|
16059
|
-
code: string;
|
|
16060
|
-
details?: unknown | null;
|
|
16061
|
-
message: string;
|
|
16062
|
-
rowErrors?: Array<{
|
|
16063
|
-
code: string;
|
|
16064
|
-
message: string;
|
|
16065
|
-
path: Array<string | number>;
|
|
16066
|
-
}> | null;
|
|
16067
|
-
} | null;
|
|
16068
|
-
pagination: {
|
|
16069
|
-
limit: number;
|
|
16070
|
-
page: number;
|
|
16071
|
-
total: number;
|
|
16072
|
-
totalPages: number;
|
|
16073
|
-
} | null;
|
|
16074
|
-
sdkBehavior?: {
|
|
16075
|
-
flags: {
|
|
16076
|
-
[key: string]: unknown;
|
|
16077
|
-
};
|
|
16078
|
-
v: number;
|
|
16079
|
-
} | null;
|
|
16080
|
-
success: boolean;
|
|
16081
|
-
};
|
|
16082
|
-
};
|
|
16083
|
-
export type PromptsGetPromptReviewStateResponse = PromptsGetPromptReviewStateResponses[keyof PromptsGetPromptReviewStateResponses];
|
|
16084
|
-
export type PromptsSubmitPromptReviewData = {
|
|
16085
|
-
body: {
|
|
16086
|
-
decision: 'approve' | 'reject' | 'request_changes';
|
|
16087
|
-
note?: string | null;
|
|
16088
|
-
};
|
|
16089
|
-
path: {
|
|
16090
|
-
projectId: string;
|
|
16091
|
-
promptId: string;
|
|
16092
|
-
versionNumber: string;
|
|
16093
|
-
};
|
|
16094
|
-
query?: never;
|
|
16095
|
-
url: '/v1/projects/{projectId}/prompts/{promptId}/versions/{versionNumber}/reviews';
|
|
16096
|
-
};
|
|
16097
|
-
export type PromptsSubmitPromptReviewErrors = {
|
|
16098
|
-
/**
|
|
16099
|
-
* BadRequestError
|
|
16100
|
-
*/
|
|
16101
|
-
400: BadRequestError;
|
|
16102
|
-
/**
|
|
16103
|
-
* UnauthorizedError
|
|
16104
|
-
*/
|
|
16105
|
-
401: UnauthorizedError;
|
|
16106
|
-
/**
|
|
16107
|
-
* ForbiddenError
|
|
16108
|
-
*/
|
|
16109
|
-
403: ForbiddenError;
|
|
16110
|
-
/**
|
|
16111
|
-
* NotFoundError
|
|
16112
|
-
*/
|
|
16113
|
-
404: NotFoundError;
|
|
16114
|
-
/**
|
|
16115
|
-
* ConflictError
|
|
16116
|
-
*/
|
|
16117
|
-
409: ConflictError;
|
|
16118
|
-
/**
|
|
16119
|
-
* GoneError
|
|
16120
|
-
*/
|
|
16121
|
-
410: GoneError;
|
|
16122
|
-
/**
|
|
16123
|
-
* ContentTooLargeError
|
|
16124
|
-
*/
|
|
16125
|
-
413: ContentTooLargeError;
|
|
16126
|
-
/**
|
|
16127
|
-
* MisdirectedRequestError
|
|
16128
|
-
*/
|
|
16129
|
-
421: MisdirectedRequestError;
|
|
16130
|
-
/**
|
|
16131
|
-
* UnprocessableEntityError
|
|
16132
|
-
*/
|
|
16133
|
-
422: UnprocessableEntityError;
|
|
16134
|
-
/**
|
|
16135
|
-
* TooManyRequestsError
|
|
16136
|
-
*/
|
|
16137
|
-
429: TooManyRequestsError;
|
|
16138
|
-
/**
|
|
16139
|
-
* InternalServerError
|
|
16140
|
-
*/
|
|
16141
|
-
500: InternalServerError;
|
|
16142
|
-
/**
|
|
16143
|
-
* ServiceUnavailableError
|
|
16144
|
-
*/
|
|
16145
|
-
503: ServiceUnavailableError;
|
|
16146
|
-
};
|
|
16147
|
-
export type PromptsSubmitPromptReviewError = PromptsSubmitPromptReviewErrors[keyof PromptsSubmitPromptReviewErrors];
|
|
16148
|
-
export type PromptsSubmitPromptReviewResponses = {
|
|
16149
|
-
/**
|
|
16150
|
-
* Success
|
|
16151
|
-
*/
|
|
16152
|
-
201: {
|
|
16153
|
-
code: number;
|
|
16154
|
-
data: {
|
|
16155
|
-
approvalState: {
|
|
16156
|
-
approvalCount: number;
|
|
16157
|
-
hasActiveRejection: boolean;
|
|
16158
|
-
};
|
|
16159
|
-
review: {
|
|
16160
|
-
createdAt: string;
|
|
16161
|
-
decision: 'approve' | 'reject' | 'request_changes' | 'withdraw';
|
|
16162
|
-
id: string;
|
|
16163
|
-
note: string | null;
|
|
16164
|
-
reviewerPrincipalId: string;
|
|
16165
|
-
};
|
|
16166
|
-
} | null;
|
|
16167
|
-
error: {
|
|
16168
|
-
code: string;
|
|
16169
|
-
details?: unknown | null;
|
|
16170
|
-
message: string;
|
|
16171
|
-
rowErrors?: Array<{
|
|
16172
|
-
code: string;
|
|
16173
|
-
message: string;
|
|
16174
|
-
path: Array<string | number>;
|
|
16175
|
-
}> | null;
|
|
16176
|
-
} | null;
|
|
16177
|
-
pagination: {
|
|
16178
|
-
limit: number;
|
|
16179
|
-
page: number;
|
|
16180
|
-
total: number;
|
|
16181
|
-
totalPages: number;
|
|
16182
|
-
} | null;
|
|
16183
|
-
sdkBehavior?: {
|
|
16184
|
-
flags: {
|
|
16185
|
-
[key: string]: unknown;
|
|
16186
|
-
};
|
|
16187
|
-
v: number;
|
|
16188
|
-
} | null;
|
|
16189
|
-
success: boolean;
|
|
16190
|
-
};
|
|
16191
|
-
};
|
|
16192
|
-
export type PromptsSubmitPromptReviewResponse = PromptsSubmitPromptReviewResponses[keyof PromptsSubmitPromptReviewResponses];
|
|
16193
|
-
export type PromptsWithdrawPromptReviewData = {
|
|
16194
|
-
body: {
|
|
16195
|
-
note?: string | null;
|
|
16196
|
-
};
|
|
16197
|
-
path: {
|
|
16198
|
-
projectId: string;
|
|
16199
|
-
promptId: string;
|
|
16200
|
-
versionNumber: string;
|
|
16201
|
-
};
|
|
16202
|
-
query?: never;
|
|
16203
|
-
url: '/v1/projects/{projectId}/prompts/{promptId}/versions/{versionNumber}/reviews:withdraw';
|
|
16204
|
-
};
|
|
16205
|
-
export type PromptsWithdrawPromptReviewErrors = {
|
|
16206
|
-
/**
|
|
16207
|
-
* BadRequestError
|
|
16208
|
-
*/
|
|
16209
|
-
400: BadRequestError;
|
|
16210
|
-
/**
|
|
16211
|
-
* UnauthorizedError
|
|
16212
|
-
*/
|
|
16213
|
-
401: UnauthorizedError;
|
|
16214
|
-
/**
|
|
16215
|
-
* ForbiddenError
|
|
16216
|
-
*/
|
|
16217
|
-
403: ForbiddenError;
|
|
16218
|
-
/**
|
|
16219
|
-
* NotFoundError
|
|
16220
|
-
*/
|
|
16221
|
-
404: NotFoundError;
|
|
16222
|
-
/**
|
|
16223
|
-
* ConflictError
|
|
16224
|
-
*/
|
|
16225
|
-
409: ConflictError;
|
|
16226
|
-
/**
|
|
16227
|
-
* GoneError
|
|
16228
|
-
*/
|
|
16229
|
-
410: GoneError;
|
|
16230
|
-
/**
|
|
16231
|
-
* ContentTooLargeError
|
|
16232
|
-
*/
|
|
16233
|
-
413: ContentTooLargeError;
|
|
16234
|
-
/**
|
|
16235
|
-
* MisdirectedRequestError
|
|
16236
|
-
*/
|
|
16237
|
-
421: MisdirectedRequestError;
|
|
16238
|
-
/**
|
|
16239
|
-
* UnprocessableEntityError
|
|
16240
|
-
*/
|
|
16241
|
-
422: UnprocessableEntityError;
|
|
16242
|
-
/**
|
|
16243
|
-
* TooManyRequestsError
|
|
16244
|
-
*/
|
|
16245
|
-
429: TooManyRequestsError;
|
|
16246
|
-
/**
|
|
16247
|
-
* InternalServerError
|
|
16248
|
-
*/
|
|
16249
|
-
500: InternalServerError;
|
|
16250
|
-
/**
|
|
16251
|
-
* ServiceUnavailableError
|
|
16252
|
-
*/
|
|
16253
|
-
503: ServiceUnavailableError;
|
|
16254
|
-
};
|
|
16255
|
-
export type PromptsWithdrawPromptReviewError = PromptsWithdrawPromptReviewErrors[keyof PromptsWithdrawPromptReviewErrors];
|
|
16256
|
-
export type PromptsWithdrawPromptReviewResponses = {
|
|
16257
|
-
/**
|
|
16258
|
-
* Success
|
|
16259
|
-
*/
|
|
16260
|
-
201: {
|
|
16261
|
-
code: number;
|
|
16262
|
-
data: {
|
|
16263
|
-
approvalState: {
|
|
16264
|
-
approvalCount: number;
|
|
16265
|
-
hasActiveRejection: boolean;
|
|
16266
|
-
};
|
|
16267
|
-
review: {
|
|
16268
|
-
createdAt: string;
|
|
16269
|
-
decision: 'approve' | 'reject' | 'request_changes' | 'withdraw';
|
|
16270
|
-
id: string;
|
|
16271
|
-
note: string | null;
|
|
16272
|
-
reviewerPrincipalId: string;
|
|
16273
|
-
};
|
|
16274
|
-
} | null;
|
|
16275
|
-
error: {
|
|
16276
|
-
code: string;
|
|
16277
|
-
details?: unknown | null;
|
|
16278
|
-
message: string;
|
|
16279
|
-
rowErrors?: Array<{
|
|
16280
|
-
code: string;
|
|
16281
|
-
message: string;
|
|
16282
|
-
path: Array<string | number>;
|
|
16283
|
-
}> | null;
|
|
16284
|
-
} | null;
|
|
16285
|
-
pagination: {
|
|
16286
|
-
limit: number;
|
|
16287
|
-
page: number;
|
|
16288
|
-
total: number;
|
|
16289
|
-
totalPages: number;
|
|
16290
|
-
} | null;
|
|
16291
|
-
sdkBehavior?: {
|
|
16292
|
-
flags: {
|
|
16293
|
-
[key: string]: unknown;
|
|
16294
|
-
};
|
|
16295
|
-
v: number;
|
|
16296
|
-
} | null;
|
|
16297
|
-
success: boolean;
|
|
16298
|
-
};
|
|
16299
|
-
};
|
|
16300
|
-
export type PromptsWithdrawPromptReviewResponse = PromptsWithdrawPromptReviewResponses[keyof PromptsWithdrawPromptReviewResponses];
|
|
16301
|
-
export type PromptsResolvePromptData = {
|
|
16302
|
-
body: {
|
|
16303
|
-
labels: Array<string>;
|
|
16304
|
-
slug: string;
|
|
16305
|
-
subject?: string | null;
|
|
16306
|
-
variables?: {
|
|
16307
|
-
[key: string]: unknown;
|
|
16308
|
-
} | null;
|
|
16309
|
-
};
|
|
16310
|
-
path: {
|
|
16311
|
-
projectId: string;
|
|
16312
|
-
};
|
|
16313
|
-
query?: never;
|
|
16314
|
-
url: '/v1/projects/{projectId}/prompts:resolve';
|
|
16315
|
-
};
|
|
16316
|
-
export type PromptsResolvePromptErrors = {
|
|
16317
|
-
/**
|
|
16318
|
-
* BadRequestError
|
|
16319
|
-
*/
|
|
16320
|
-
400: BadRequestError;
|
|
16321
|
-
/**
|
|
16322
|
-
* UnauthorizedError
|
|
16323
|
-
*/
|
|
16324
|
-
401: UnauthorizedError;
|
|
16325
|
-
/**
|
|
16326
|
-
* ForbiddenError
|
|
16327
|
-
*/
|
|
16328
|
-
403: ForbiddenError;
|
|
16329
|
-
/**
|
|
16330
|
-
* NotFoundError
|
|
16331
|
-
*/
|
|
16332
|
-
404: NotFoundError;
|
|
16333
|
-
/**
|
|
16334
|
-
* ConflictError
|
|
16335
|
-
*/
|
|
16336
|
-
409: ConflictError;
|
|
16337
|
-
/**
|
|
16338
|
-
* GoneError
|
|
16339
|
-
*/
|
|
16340
|
-
410: GoneError;
|
|
16341
|
-
/**
|
|
16342
|
-
* ContentTooLargeError
|
|
16343
|
-
*/
|
|
16344
|
-
413: ContentTooLargeError;
|
|
16345
|
-
/**
|
|
16346
|
-
* MisdirectedRequestError
|
|
16347
|
-
*/
|
|
16348
|
-
421: MisdirectedRequestError;
|
|
16349
|
-
/**
|
|
16350
|
-
* UnprocessableEntityError
|
|
16351
|
-
*/
|
|
16352
|
-
422: UnprocessableEntityError;
|
|
16353
|
-
/**
|
|
16354
|
-
* TooManyRequestsError
|
|
16355
|
-
*/
|
|
16356
|
-
429: TooManyRequestsError;
|
|
16357
|
-
/**
|
|
16358
|
-
* InternalServerError
|
|
16359
|
-
*/
|
|
16360
|
-
500: InternalServerError;
|
|
16361
|
-
/**
|
|
16362
|
-
* ServiceUnavailableError
|
|
16363
|
-
*/
|
|
16364
|
-
503: ServiceUnavailableError;
|
|
16365
|
-
};
|
|
16366
|
-
export type PromptsResolvePromptError = PromptsResolvePromptErrors[keyof PromptsResolvePromptErrors];
|
|
16367
|
-
export type PromptsResolvePromptResponses = {
|
|
16368
|
-
/**
|
|
16369
|
-
* Success
|
|
16370
|
-
*/
|
|
16371
|
-
200: {
|
|
16372
|
-
code: number;
|
|
16373
|
-
data: ResolvedPrompt | null;
|
|
16374
|
-
error: {
|
|
16375
|
-
code: string;
|
|
16376
|
-
details?: unknown | null;
|
|
16377
|
-
message: string;
|
|
16378
|
-
rowErrors?: Array<{
|
|
16379
|
-
code: string;
|
|
16380
|
-
message: string;
|
|
16381
|
-
path: Array<string | number>;
|
|
16382
|
-
}> | null;
|
|
16383
|
-
} | null;
|
|
16384
|
-
pagination: {
|
|
16385
|
-
limit: number;
|
|
16386
|
-
page: number;
|
|
16387
|
-
total: number;
|
|
16388
|
-
totalPages: number;
|
|
16389
|
-
} | null;
|
|
16390
|
-
sdkBehavior?: {
|
|
16391
|
-
flags: {
|
|
16392
|
-
[key: string]: unknown;
|
|
16393
|
-
};
|
|
16394
|
-
v: number;
|
|
16395
|
-
} | null;
|
|
16396
|
-
success: boolean;
|
|
16397
|
-
};
|
|
16398
|
-
};
|
|
16399
|
-
export type PromptsResolvePromptResponse = PromptsResolvePromptResponses[keyof PromptsResolvePromptResponses];
|
|
16400
15432
|
export type CredentialLifecycleRenameCredentialData = {
|
|
16401
15433
|
body: {
|
|
16402
15434
|
label: string;
|