@to11ai/sdk 2.1.0-rc.1 → 2.1.0-rc.2
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 +31 -1001
- package/dist/generated/zod.gen.d.ts +15 -698
- 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 +13 -1026
- package/src/generated/zod.gen.ts +3 -582
- 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
|
@@ -264,24 +264,6 @@ export type PromptLabelPointer = {
|
|
|
264
264
|
versionId: string;
|
|
265
265
|
};
|
|
266
266
|
|
|
267
|
-
export type PromptRelease = {
|
|
268
|
-
activeFrom: string | null;
|
|
269
|
-
activeTo: string | null;
|
|
270
|
-
actorId: string;
|
|
271
|
-
actorType: 'user' | 'api_key' | 'worker';
|
|
272
|
-
assignmentSalt: string | null;
|
|
273
|
-
changeKind: 'release_initial' | 'release_promoted' | 'release_rolled_back' | 'release_weight_changed';
|
|
274
|
-
createdAt: string;
|
|
275
|
-
envSlug: string;
|
|
276
|
-
environmentId: string;
|
|
277
|
-
id: string;
|
|
278
|
-
priorReleaseId: string | null;
|
|
279
|
-
promptId: string;
|
|
280
|
-
reason: string;
|
|
281
|
-
strategy: 'single' | 'weighted';
|
|
282
|
-
versionId: string;
|
|
283
|
-
};
|
|
284
|
-
|
|
285
267
|
export type PromptVersion = {
|
|
286
268
|
changelog: string | null;
|
|
287
269
|
createdAt: string;
|
|
@@ -319,6 +301,8 @@ export type RenderedSkill = {
|
|
|
319
301
|
label: string;
|
|
320
302
|
promptId: string;
|
|
321
303
|
releaseId: string;
|
|
304
|
+
releasedAt?: string | null;
|
|
305
|
+
releasedByDisplayName?: string | null | null;
|
|
322
306
|
version: number;
|
|
323
307
|
versionId: string;
|
|
324
308
|
};
|
|
@@ -371,12 +355,10 @@ export type ResolvedPrompt = {
|
|
|
371
355
|
promptId: string;
|
|
372
356
|
releaseId: string;
|
|
373
357
|
rendered: RenderedPrompt;
|
|
374
|
-
subjectHash?: string | null;
|
|
375
358
|
toolChoice?: 'auto' | 'none' | 'required' | {
|
|
376
359
|
name: string;
|
|
377
360
|
} | null;
|
|
378
361
|
tools?: Array<ResolvedToolDefinition> | null;
|
|
379
|
-
variantName?: string | null;
|
|
380
362
|
version: number;
|
|
381
363
|
versionId: string;
|
|
382
364
|
};
|
|
@@ -511,21 +493,6 @@ export type ServiceUnavailableError = {
|
|
|
511
493
|
success: false;
|
|
512
494
|
};
|
|
513
495
|
|
|
514
|
-
export type SkillFileDiffRow = {
|
|
515
|
-
change: 'unchanged' | 'modified' | 'added' | 'removed' | 'renamed';
|
|
516
|
-
filename: string;
|
|
517
|
-
from?: string | null;
|
|
518
|
-
fromFilename?: string | null;
|
|
519
|
-
to?: string | null;
|
|
520
|
-
};
|
|
521
|
-
|
|
522
|
-
export type SkillVersionDiff = {
|
|
523
|
-
files: Array<SkillFileDiffRow>;
|
|
524
|
-
format: 'skill';
|
|
525
|
-
from: number;
|
|
526
|
-
to: number;
|
|
527
|
-
};
|
|
528
|
-
|
|
529
496
|
export type TooManyRequestsError = {
|
|
530
497
|
_tag: 'TooManyRequestsError';
|
|
531
498
|
code: number;
|
|
@@ -11437,245 +11404,6 @@ export type ProjectEnvironmentsCreateProjectEnvironmentResponses = {
|
|
|
11437
11404
|
|
|
11438
11405
|
export type ProjectEnvironmentsCreateProjectEnvironmentResponse = ProjectEnvironmentsCreateProjectEnvironmentResponses[keyof ProjectEnvironmentsCreateProjectEnvironmentResponses];
|
|
11439
11406
|
|
|
11440
|
-
export type PromptsGetPromptEnvPolicyData = {
|
|
11441
|
-
body?: never;
|
|
11442
|
-
path: {
|
|
11443
|
-
projectId: string;
|
|
11444
|
-
environmentId: string;
|
|
11445
|
-
};
|
|
11446
|
-
query?: never;
|
|
11447
|
-
url: '/v1/projects/{projectId}/environments/{environmentId}/prompt-policy';
|
|
11448
|
-
};
|
|
11449
|
-
|
|
11450
|
-
export type PromptsGetPromptEnvPolicyErrors = {
|
|
11451
|
-
/**
|
|
11452
|
-
* BadRequestError
|
|
11453
|
-
*/
|
|
11454
|
-
400: BadRequestError;
|
|
11455
|
-
/**
|
|
11456
|
-
* UnauthorizedError
|
|
11457
|
-
*/
|
|
11458
|
-
401: UnauthorizedError;
|
|
11459
|
-
/**
|
|
11460
|
-
* ForbiddenError
|
|
11461
|
-
*/
|
|
11462
|
-
403: ForbiddenError;
|
|
11463
|
-
/**
|
|
11464
|
-
* NotFoundError
|
|
11465
|
-
*/
|
|
11466
|
-
404: NotFoundError;
|
|
11467
|
-
/**
|
|
11468
|
-
* ConflictError
|
|
11469
|
-
*/
|
|
11470
|
-
409: ConflictError;
|
|
11471
|
-
/**
|
|
11472
|
-
* GoneError
|
|
11473
|
-
*/
|
|
11474
|
-
410: GoneError;
|
|
11475
|
-
/**
|
|
11476
|
-
* ContentTooLargeError
|
|
11477
|
-
*/
|
|
11478
|
-
413: ContentTooLargeError;
|
|
11479
|
-
/**
|
|
11480
|
-
* MisdirectedRequestError
|
|
11481
|
-
*/
|
|
11482
|
-
421: MisdirectedRequestError;
|
|
11483
|
-
/**
|
|
11484
|
-
* UnprocessableEntityError
|
|
11485
|
-
*/
|
|
11486
|
-
422: UnprocessableEntityError;
|
|
11487
|
-
/**
|
|
11488
|
-
* TooManyRequestsError
|
|
11489
|
-
*/
|
|
11490
|
-
429: TooManyRequestsError;
|
|
11491
|
-
/**
|
|
11492
|
-
* InternalServerError
|
|
11493
|
-
*/
|
|
11494
|
-
500: InternalServerError;
|
|
11495
|
-
/**
|
|
11496
|
-
* ServiceUnavailableError
|
|
11497
|
-
*/
|
|
11498
|
-
503: ServiceUnavailableError;
|
|
11499
|
-
};
|
|
11500
|
-
|
|
11501
|
-
export type PromptsGetPromptEnvPolicyError = PromptsGetPromptEnvPolicyErrors[keyof PromptsGetPromptEnvPolicyErrors];
|
|
11502
|
-
|
|
11503
|
-
export type PromptsGetPromptEnvPolicyResponses = {
|
|
11504
|
-
/**
|
|
11505
|
-
* Success
|
|
11506
|
-
*/
|
|
11507
|
-
200: {
|
|
11508
|
-
code: number;
|
|
11509
|
-
data: {
|
|
11510
|
-
policy: {
|
|
11511
|
-
createdAt: string;
|
|
11512
|
-
createdBy: string;
|
|
11513
|
-
envSlug: string;
|
|
11514
|
-
environmentId: string;
|
|
11515
|
-
id: string;
|
|
11516
|
-
minimumDwellTimeHours: number;
|
|
11517
|
-
noRollbackInSource: boolean;
|
|
11518
|
-
noRollbackLookBackHours: number;
|
|
11519
|
-
projectId: string;
|
|
11520
|
-
requiredSourceEnvId: string | null;
|
|
11521
|
-
requiredSourceEnvSlug: string | null;
|
|
11522
|
-
requiresApproval: boolean;
|
|
11523
|
-
requiresApprovalSeparationOfDuties: boolean;
|
|
11524
|
-
updatedAt: string;
|
|
11525
|
-
updatedBy: string;
|
|
11526
|
-
} | null;
|
|
11527
|
-
} | null;
|
|
11528
|
-
error: {
|
|
11529
|
-
code: string;
|
|
11530
|
-
details?: unknown | null;
|
|
11531
|
-
message: string;
|
|
11532
|
-
rowErrors?: Array<{
|
|
11533
|
-
code: string;
|
|
11534
|
-
message: string;
|
|
11535
|
-
path: Array<string | number>;
|
|
11536
|
-
}> | null;
|
|
11537
|
-
} | null;
|
|
11538
|
-
pagination: {
|
|
11539
|
-
limit: number;
|
|
11540
|
-
page: number;
|
|
11541
|
-
total: number;
|
|
11542
|
-
totalPages: number;
|
|
11543
|
-
} | null;
|
|
11544
|
-
sdkBehavior?: {
|
|
11545
|
-
flags: {
|
|
11546
|
-
[key: string]: unknown;
|
|
11547
|
-
};
|
|
11548
|
-
v: number;
|
|
11549
|
-
} | null;
|
|
11550
|
-
success: boolean;
|
|
11551
|
-
};
|
|
11552
|
-
};
|
|
11553
|
-
|
|
11554
|
-
export type PromptsGetPromptEnvPolicyResponse = PromptsGetPromptEnvPolicyResponses[keyof PromptsGetPromptEnvPolicyResponses];
|
|
11555
|
-
|
|
11556
|
-
export type PromptsUpsertPromptEnvPolicyData = {
|
|
11557
|
-
body: {
|
|
11558
|
-
minimumDwellTimeHours?: number | null;
|
|
11559
|
-
noRollbackInSource?: boolean | null;
|
|
11560
|
-
noRollbackLookBackHours?: number | null;
|
|
11561
|
-
requiredSourceEnvId?: string | null | null;
|
|
11562
|
-
requiresApproval?: boolean | null;
|
|
11563
|
-
requiresApprovalSeparationOfDuties?: boolean | null;
|
|
11564
|
-
};
|
|
11565
|
-
path: {
|
|
11566
|
-
projectId: string;
|
|
11567
|
-
environmentId: string;
|
|
11568
|
-
};
|
|
11569
|
-
query?: never;
|
|
11570
|
-
url: '/v1/projects/{projectId}/environments/{environmentId}/prompt-policy';
|
|
11571
|
-
};
|
|
11572
|
-
|
|
11573
|
-
export type PromptsUpsertPromptEnvPolicyErrors = {
|
|
11574
|
-
/**
|
|
11575
|
-
* BadRequestError
|
|
11576
|
-
*/
|
|
11577
|
-
400: BadRequestError;
|
|
11578
|
-
/**
|
|
11579
|
-
* UnauthorizedError
|
|
11580
|
-
*/
|
|
11581
|
-
401: UnauthorizedError;
|
|
11582
|
-
/**
|
|
11583
|
-
* ForbiddenError
|
|
11584
|
-
*/
|
|
11585
|
-
403: ForbiddenError;
|
|
11586
|
-
/**
|
|
11587
|
-
* NotFoundError
|
|
11588
|
-
*/
|
|
11589
|
-
404: NotFoundError;
|
|
11590
|
-
/**
|
|
11591
|
-
* ConflictError
|
|
11592
|
-
*/
|
|
11593
|
-
409: ConflictError;
|
|
11594
|
-
/**
|
|
11595
|
-
* GoneError
|
|
11596
|
-
*/
|
|
11597
|
-
410: GoneError;
|
|
11598
|
-
/**
|
|
11599
|
-
* ContentTooLargeError
|
|
11600
|
-
*/
|
|
11601
|
-
413: ContentTooLargeError;
|
|
11602
|
-
/**
|
|
11603
|
-
* MisdirectedRequestError
|
|
11604
|
-
*/
|
|
11605
|
-
421: MisdirectedRequestError;
|
|
11606
|
-
/**
|
|
11607
|
-
* UnprocessableEntityError
|
|
11608
|
-
*/
|
|
11609
|
-
422: UnprocessableEntityError;
|
|
11610
|
-
/**
|
|
11611
|
-
* TooManyRequestsError
|
|
11612
|
-
*/
|
|
11613
|
-
429: TooManyRequestsError;
|
|
11614
|
-
/**
|
|
11615
|
-
* InternalServerError
|
|
11616
|
-
*/
|
|
11617
|
-
500: InternalServerError;
|
|
11618
|
-
/**
|
|
11619
|
-
* ServiceUnavailableError
|
|
11620
|
-
*/
|
|
11621
|
-
503: ServiceUnavailableError;
|
|
11622
|
-
};
|
|
11623
|
-
|
|
11624
|
-
export type PromptsUpsertPromptEnvPolicyError = PromptsUpsertPromptEnvPolicyErrors[keyof PromptsUpsertPromptEnvPolicyErrors];
|
|
11625
|
-
|
|
11626
|
-
export type PromptsUpsertPromptEnvPolicyResponses = {
|
|
11627
|
-
/**
|
|
11628
|
-
* Success
|
|
11629
|
-
*/
|
|
11630
|
-
200: {
|
|
11631
|
-
code: number;
|
|
11632
|
-
data: {
|
|
11633
|
-
policy: {
|
|
11634
|
-
createdAt: string;
|
|
11635
|
-
createdBy: string;
|
|
11636
|
-
envSlug: string;
|
|
11637
|
-
environmentId: string;
|
|
11638
|
-
id: string;
|
|
11639
|
-
minimumDwellTimeHours: number;
|
|
11640
|
-
noRollbackInSource: boolean;
|
|
11641
|
-
noRollbackLookBackHours: number;
|
|
11642
|
-
projectId: string;
|
|
11643
|
-
requiredSourceEnvId: string | null;
|
|
11644
|
-
requiredSourceEnvSlug: string | null;
|
|
11645
|
-
requiresApproval: boolean;
|
|
11646
|
-
requiresApprovalSeparationOfDuties: boolean;
|
|
11647
|
-
updatedAt: string;
|
|
11648
|
-
updatedBy: string;
|
|
11649
|
-
} | null;
|
|
11650
|
-
} | null;
|
|
11651
|
-
error: {
|
|
11652
|
-
code: string;
|
|
11653
|
-
details?: unknown | null;
|
|
11654
|
-
message: string;
|
|
11655
|
-
rowErrors?: Array<{
|
|
11656
|
-
code: string;
|
|
11657
|
-
message: string;
|
|
11658
|
-
path: Array<string | number>;
|
|
11659
|
-
}> | null;
|
|
11660
|
-
} | null;
|
|
11661
|
-
pagination: {
|
|
11662
|
-
limit: number;
|
|
11663
|
-
page: number;
|
|
11664
|
-
total: number;
|
|
11665
|
-
totalPages: number;
|
|
11666
|
-
} | null;
|
|
11667
|
-
sdkBehavior?: {
|
|
11668
|
-
flags: {
|
|
11669
|
-
[key: string]: unknown;
|
|
11670
|
-
};
|
|
11671
|
-
v: number;
|
|
11672
|
-
} | null;
|
|
11673
|
-
success: boolean;
|
|
11674
|
-
};
|
|
11675
|
-
};
|
|
11676
|
-
|
|
11677
|
-
export type PromptsUpsertPromptEnvPolicyResponse = PromptsUpsertPromptEnvPolicyResponses[keyof PromptsUpsertPromptEnvPolicyResponses];
|
|
11678
|
-
|
|
11679
11407
|
export type SnapshotGetProjectSnapshotAtTimeData = {
|
|
11680
11408
|
body?: never;
|
|
11681
11409
|
path: {
|
|
@@ -14618,10 +14346,10 @@ export type PromptsListPromptsResponses = {
|
|
|
14618
14346
|
labels: Array<{
|
|
14619
14347
|
label: string;
|
|
14620
14348
|
version: number | null;
|
|
14621
|
-
weighted
|
|
14349
|
+
weighted?: {
|
|
14622
14350
|
split: string;
|
|
14623
14351
|
variants: number;
|
|
14624
|
-
} | null;
|
|
14352
|
+
} | null | null;
|
|
14625
14353
|
}>;
|
|
14626
14354
|
lastModifiedAt: string;
|
|
14627
14355
|
lastModifiedByDisplayName: string | null;
|
|
@@ -16033,25 +15761,19 @@ export type PromptsListPromptLabelEventsByLabelResponses = {
|
|
|
16033
15761
|
|
|
16034
15762
|
export type PromptsListPromptLabelEventsByLabelResponse = PromptsListPromptLabelEventsByLabelResponses[keyof PromptsListPromptLabelEventsByLabelResponses];
|
|
16035
15763
|
|
|
16036
|
-
export type
|
|
16037
|
-
body
|
|
16038
|
-
reason: string;
|
|
16039
|
-
variants: Array<{
|
|
16040
|
-
name: string;
|
|
16041
|
-
versionId: string;
|
|
16042
|
-
weight: number;
|
|
16043
|
-
}>;
|
|
16044
|
-
};
|
|
15764
|
+
export type PromptMetricsGetPromptRequestMetricsData = {
|
|
15765
|
+
body?: never;
|
|
16045
15766
|
path: {
|
|
16046
15767
|
projectId: string;
|
|
16047
15768
|
promptId: string;
|
|
16048
|
-
label: string;
|
|
16049
15769
|
};
|
|
16050
|
-
query?:
|
|
16051
|
-
|
|
15770
|
+
query?: {
|
|
15771
|
+
window?: string | null;
|
|
15772
|
+
};
|
|
15773
|
+
url: '/v1/projects/{projectId}/prompts/{promptId}/request-metrics';
|
|
16052
15774
|
};
|
|
16053
15775
|
|
|
16054
|
-
export type
|
|
15776
|
+
export type PromptMetricsGetPromptRequestMetricsErrors = {
|
|
16055
15777
|
/**
|
|
16056
15778
|
* BadRequestError
|
|
16057
15779
|
*/
|
|
@@ -16102,109 +15824,9 @@ export type PromptsSetWeightedReleaseErrors = {
|
|
|
16102
15824
|
503: ServiceUnavailableError;
|
|
16103
15825
|
};
|
|
16104
15826
|
|
|
16105
|
-
export type
|
|
15827
|
+
export type PromptMetricsGetPromptRequestMetricsError = PromptMetricsGetPromptRequestMetricsErrors[keyof PromptMetricsGetPromptRequestMetricsErrors];
|
|
16106
15828
|
|
|
16107
|
-
export type
|
|
16108
|
-
/**
|
|
16109
|
-
* Success
|
|
16110
|
-
*/
|
|
16111
|
-
200: {
|
|
16112
|
-
code: number;
|
|
16113
|
-
data: PromptRelease | null;
|
|
16114
|
-
error: {
|
|
16115
|
-
code: string;
|
|
16116
|
-
details?: unknown | null;
|
|
16117
|
-
message: string;
|
|
16118
|
-
rowErrors?: Array<{
|
|
16119
|
-
code: string;
|
|
16120
|
-
message: string;
|
|
16121
|
-
path: Array<string | number>;
|
|
16122
|
-
}> | null;
|
|
16123
|
-
} | null;
|
|
16124
|
-
pagination: {
|
|
16125
|
-
limit: number;
|
|
16126
|
-
page: number;
|
|
16127
|
-
total: number;
|
|
16128
|
-
totalPages: number;
|
|
16129
|
-
} | null;
|
|
16130
|
-
sdkBehavior?: {
|
|
16131
|
-
flags: {
|
|
16132
|
-
[key: string]: unknown;
|
|
16133
|
-
};
|
|
16134
|
-
v: number;
|
|
16135
|
-
} | null;
|
|
16136
|
-
success: boolean;
|
|
16137
|
-
};
|
|
16138
|
-
};
|
|
16139
|
-
|
|
16140
|
-
export type PromptsSetWeightedReleaseResponse = PromptsSetWeightedReleaseResponses[keyof PromptsSetWeightedReleaseResponses];
|
|
16141
|
-
|
|
16142
|
-
export type PromptMetricsGetPromptRequestMetricsData = {
|
|
16143
|
-
body?: never;
|
|
16144
|
-
path: {
|
|
16145
|
-
projectId: string;
|
|
16146
|
-
promptId: string;
|
|
16147
|
-
};
|
|
16148
|
-
query?: {
|
|
16149
|
-
window?: string | null;
|
|
16150
|
-
};
|
|
16151
|
-
url: '/v1/projects/{projectId}/prompts/{promptId}/request-metrics';
|
|
16152
|
-
};
|
|
16153
|
-
|
|
16154
|
-
export type PromptMetricsGetPromptRequestMetricsErrors = {
|
|
16155
|
-
/**
|
|
16156
|
-
* BadRequestError
|
|
16157
|
-
*/
|
|
16158
|
-
400: BadRequestError;
|
|
16159
|
-
/**
|
|
16160
|
-
* UnauthorizedError
|
|
16161
|
-
*/
|
|
16162
|
-
401: UnauthorizedError;
|
|
16163
|
-
/**
|
|
16164
|
-
* ForbiddenError
|
|
16165
|
-
*/
|
|
16166
|
-
403: ForbiddenError;
|
|
16167
|
-
/**
|
|
16168
|
-
* NotFoundError
|
|
16169
|
-
*/
|
|
16170
|
-
404: NotFoundError;
|
|
16171
|
-
/**
|
|
16172
|
-
* ConflictError
|
|
16173
|
-
*/
|
|
16174
|
-
409: ConflictError;
|
|
16175
|
-
/**
|
|
16176
|
-
* GoneError
|
|
16177
|
-
*/
|
|
16178
|
-
410: GoneError;
|
|
16179
|
-
/**
|
|
16180
|
-
* ContentTooLargeError
|
|
16181
|
-
*/
|
|
16182
|
-
413: ContentTooLargeError;
|
|
16183
|
-
/**
|
|
16184
|
-
* MisdirectedRequestError
|
|
16185
|
-
*/
|
|
16186
|
-
421: MisdirectedRequestError;
|
|
16187
|
-
/**
|
|
16188
|
-
* UnprocessableEntityError
|
|
16189
|
-
*/
|
|
16190
|
-
422: UnprocessableEntityError;
|
|
16191
|
-
/**
|
|
16192
|
-
* TooManyRequestsError
|
|
16193
|
-
*/
|
|
16194
|
-
429: TooManyRequestsError;
|
|
16195
|
-
/**
|
|
16196
|
-
* InternalServerError
|
|
16197
|
-
*/
|
|
16198
|
-
500: InternalServerError;
|
|
16199
|
-
/**
|
|
16200
|
-
* ServiceUnavailableError
|
|
16201
|
-
*/
|
|
16202
|
-
503: ServiceUnavailableError;
|
|
16203
|
-
};
|
|
16204
|
-
|
|
16205
|
-
export type PromptMetricsGetPromptRequestMetricsError = PromptMetricsGetPromptRequestMetricsErrors[keyof PromptMetricsGetPromptRequestMetricsErrors];
|
|
16206
|
-
|
|
16207
|
-
export type PromptMetricsGetPromptRequestMetricsResponses = {
|
|
15829
|
+
export type PromptMetricsGetPromptRequestMetricsResponses = {
|
|
16208
15830
|
/**
|
|
16209
15831
|
* Success
|
|
16210
15832
|
*/
|
|
@@ -16457,192 +16079,6 @@ export type PromptsCreatePromptVersionResponses = {
|
|
|
16457
16079
|
|
|
16458
16080
|
export type PromptsCreatePromptVersionResponse = PromptsCreatePromptVersionResponses[keyof PromptsCreatePromptVersionResponses];
|
|
16459
16081
|
|
|
16460
|
-
export type PromptsGetPromptVersionDiffData = {
|
|
16461
|
-
body?: never;
|
|
16462
|
-
path: {
|
|
16463
|
-
projectId: string;
|
|
16464
|
-
promptId: string;
|
|
16465
|
-
versionId: string;
|
|
16466
|
-
};
|
|
16467
|
-
query?: {
|
|
16468
|
-
against?: string | null;
|
|
16469
|
-
};
|
|
16470
|
-
url: '/v1/projects/{projectId}/prompts/{promptId}/versions/{versionId}/diff';
|
|
16471
|
-
};
|
|
16472
|
-
|
|
16473
|
-
export type PromptsGetPromptVersionDiffErrors = {
|
|
16474
|
-
/**
|
|
16475
|
-
* BadRequestError
|
|
16476
|
-
*/
|
|
16477
|
-
400: BadRequestError;
|
|
16478
|
-
/**
|
|
16479
|
-
* UnauthorizedError
|
|
16480
|
-
*/
|
|
16481
|
-
401: UnauthorizedError;
|
|
16482
|
-
/**
|
|
16483
|
-
* ForbiddenError
|
|
16484
|
-
*/
|
|
16485
|
-
403: ForbiddenError;
|
|
16486
|
-
/**
|
|
16487
|
-
* NotFoundError
|
|
16488
|
-
*/
|
|
16489
|
-
404: NotFoundError;
|
|
16490
|
-
/**
|
|
16491
|
-
* ConflictError
|
|
16492
|
-
*/
|
|
16493
|
-
409: ConflictError;
|
|
16494
|
-
/**
|
|
16495
|
-
* GoneError
|
|
16496
|
-
*/
|
|
16497
|
-
410: GoneError;
|
|
16498
|
-
/**
|
|
16499
|
-
* ContentTooLargeError
|
|
16500
|
-
*/
|
|
16501
|
-
413: ContentTooLargeError;
|
|
16502
|
-
/**
|
|
16503
|
-
* MisdirectedRequestError
|
|
16504
|
-
*/
|
|
16505
|
-
421: MisdirectedRequestError;
|
|
16506
|
-
/**
|
|
16507
|
-
* UnprocessableEntityError
|
|
16508
|
-
*/
|
|
16509
|
-
422: UnprocessableEntityError;
|
|
16510
|
-
/**
|
|
16511
|
-
* TooManyRequestsError
|
|
16512
|
-
*/
|
|
16513
|
-
429: TooManyRequestsError;
|
|
16514
|
-
/**
|
|
16515
|
-
* InternalServerError
|
|
16516
|
-
*/
|
|
16517
|
-
500: InternalServerError;
|
|
16518
|
-
/**
|
|
16519
|
-
* ServiceUnavailableError
|
|
16520
|
-
*/
|
|
16521
|
-
503: ServiceUnavailableError;
|
|
16522
|
-
};
|
|
16523
|
-
|
|
16524
|
-
export type PromptsGetPromptVersionDiffError = PromptsGetPromptVersionDiffErrors[keyof PromptsGetPromptVersionDiffErrors];
|
|
16525
|
-
|
|
16526
|
-
export type PromptsGetPromptVersionDiffResponses = {
|
|
16527
|
-
/**
|
|
16528
|
-
* Success
|
|
16529
|
-
*/
|
|
16530
|
-
200: {
|
|
16531
|
-
code: number;
|
|
16532
|
-
data: {
|
|
16533
|
-
operations: Array<{
|
|
16534
|
-
condition: {
|
|
16535
|
-
kind: string;
|
|
16536
|
-
};
|
|
16537
|
-
content?: string | null;
|
|
16538
|
-
name: string;
|
|
16539
|
-
op: 'add';
|
|
16540
|
-
role: 'system' | 'user' | 'assistant' | 'developer' | 'tool';
|
|
16541
|
-
toolCallId?: string | null;
|
|
16542
|
-
toolCalls?: Array<{
|
|
16543
|
-
arguments: {
|
|
16544
|
-
[key: string]: unknown;
|
|
16545
|
-
};
|
|
16546
|
-
id: string;
|
|
16547
|
-
name: string;
|
|
16548
|
-
}> | null;
|
|
16549
|
-
} | {
|
|
16550
|
-
condition: {
|
|
16551
|
-
kind: string;
|
|
16552
|
-
};
|
|
16553
|
-
content?: string | null;
|
|
16554
|
-
name: string;
|
|
16555
|
-
op: 'remove';
|
|
16556
|
-
role: 'system' | 'user' | 'assistant' | 'developer' | 'tool';
|
|
16557
|
-
toolCallId?: string | null;
|
|
16558
|
-
toolCalls?: Array<{
|
|
16559
|
-
arguments: {
|
|
16560
|
-
[key: string]: unknown;
|
|
16561
|
-
};
|
|
16562
|
-
id: string;
|
|
16563
|
-
name: string;
|
|
16564
|
-
}> | null;
|
|
16565
|
-
} | {
|
|
16566
|
-
after: string;
|
|
16567
|
-
before: string;
|
|
16568
|
-
name: string;
|
|
16569
|
-
op: 'edit_content';
|
|
16570
|
-
} | {
|
|
16571
|
-
after: {
|
|
16572
|
-
kind: string;
|
|
16573
|
-
};
|
|
16574
|
-
before: {
|
|
16575
|
-
kind: string;
|
|
16576
|
-
};
|
|
16577
|
-
name: string;
|
|
16578
|
-
op: 'edit_condition';
|
|
16579
|
-
} | {
|
|
16580
|
-
after: 'system' | 'user' | 'assistant' | 'developer' | 'tool';
|
|
16581
|
-
before: 'system' | 'user' | 'assistant' | 'developer' | 'tool';
|
|
16582
|
-
name: string;
|
|
16583
|
-
op: 'edit_role';
|
|
16584
|
-
} | {
|
|
16585
|
-
after: boolean;
|
|
16586
|
-
before: boolean;
|
|
16587
|
-
name: string;
|
|
16588
|
-
op: 'edit_required';
|
|
16589
|
-
} | {
|
|
16590
|
-
after: string;
|
|
16591
|
-
before: string;
|
|
16592
|
-
name: string;
|
|
16593
|
-
op: 'edit_tool_call_id';
|
|
16594
|
-
} | {
|
|
16595
|
-
after: Array<{
|
|
16596
|
-
arguments: {
|
|
16597
|
-
[key: string]: unknown;
|
|
16598
|
-
};
|
|
16599
|
-
id: string;
|
|
16600
|
-
name: string;
|
|
16601
|
-
}>;
|
|
16602
|
-
before: Array<{
|
|
16603
|
-
arguments: {
|
|
16604
|
-
[key: string]: unknown;
|
|
16605
|
-
};
|
|
16606
|
-
id: string;
|
|
16607
|
-
name: string;
|
|
16608
|
-
}>;
|
|
16609
|
-
name: string;
|
|
16610
|
-
op: 'edit_tool_calls';
|
|
16611
|
-
} | {
|
|
16612
|
-
fromIndex: number;
|
|
16613
|
-
name: string;
|
|
16614
|
-
op: 'reorder';
|
|
16615
|
-
toIndex: number;
|
|
16616
|
-
}>;
|
|
16617
|
-
} | SkillVersionDiff | null;
|
|
16618
|
-
error: {
|
|
16619
|
-
code: string;
|
|
16620
|
-
details?: unknown | null;
|
|
16621
|
-
message: string;
|
|
16622
|
-
rowErrors?: Array<{
|
|
16623
|
-
code: string;
|
|
16624
|
-
message: string;
|
|
16625
|
-
path: Array<string | number>;
|
|
16626
|
-
}> | null;
|
|
16627
|
-
} | null;
|
|
16628
|
-
pagination: {
|
|
16629
|
-
limit: number;
|
|
16630
|
-
page: number;
|
|
16631
|
-
total: number;
|
|
16632
|
-
totalPages: number;
|
|
16633
|
-
} | null;
|
|
16634
|
-
sdkBehavior?: {
|
|
16635
|
-
flags: {
|
|
16636
|
-
[key: string]: unknown;
|
|
16637
|
-
};
|
|
16638
|
-
v: number;
|
|
16639
|
-
} | null;
|
|
16640
|
-
success: boolean;
|
|
16641
|
-
};
|
|
16642
|
-
};
|
|
16643
|
-
|
|
16644
|
-
export type PromptsGetPromptVersionDiffResponse = PromptsGetPromptVersionDiffResponses[keyof PromptsGetPromptVersionDiffResponses];
|
|
16645
|
-
|
|
16646
16082
|
export type PromptsGetPromptVersionData = {
|
|
16647
16083
|
body?: never;
|
|
16648
16084
|
path: {
|
|
@@ -16742,455 +16178,6 @@ export type PromptsGetPromptVersionResponses = {
|
|
|
16742
16178
|
|
|
16743
16179
|
export type PromptsGetPromptVersionResponse = PromptsGetPromptVersionResponses[keyof PromptsGetPromptVersionResponses];
|
|
16744
16180
|
|
|
16745
|
-
export type PromptsGetPromptReviewStateData = {
|
|
16746
|
-
body?: never;
|
|
16747
|
-
path: {
|
|
16748
|
-
projectId: string;
|
|
16749
|
-
promptId: string;
|
|
16750
|
-
versionNumber: string;
|
|
16751
|
-
};
|
|
16752
|
-
query?: never;
|
|
16753
|
-
url: '/v1/projects/{projectId}/prompts/{promptId}/versions/{versionNumber}/reviews';
|
|
16754
|
-
};
|
|
16755
|
-
|
|
16756
|
-
export type PromptsGetPromptReviewStateErrors = {
|
|
16757
|
-
/**
|
|
16758
|
-
* BadRequestError
|
|
16759
|
-
*/
|
|
16760
|
-
400: BadRequestError;
|
|
16761
|
-
/**
|
|
16762
|
-
* UnauthorizedError
|
|
16763
|
-
*/
|
|
16764
|
-
401: UnauthorizedError;
|
|
16765
|
-
/**
|
|
16766
|
-
* ForbiddenError
|
|
16767
|
-
*/
|
|
16768
|
-
403: ForbiddenError;
|
|
16769
|
-
/**
|
|
16770
|
-
* NotFoundError
|
|
16771
|
-
*/
|
|
16772
|
-
404: NotFoundError;
|
|
16773
|
-
/**
|
|
16774
|
-
* ConflictError
|
|
16775
|
-
*/
|
|
16776
|
-
409: ConflictError;
|
|
16777
|
-
/**
|
|
16778
|
-
* GoneError
|
|
16779
|
-
*/
|
|
16780
|
-
410: GoneError;
|
|
16781
|
-
/**
|
|
16782
|
-
* ContentTooLargeError
|
|
16783
|
-
*/
|
|
16784
|
-
413: ContentTooLargeError;
|
|
16785
|
-
/**
|
|
16786
|
-
* MisdirectedRequestError
|
|
16787
|
-
*/
|
|
16788
|
-
421: MisdirectedRequestError;
|
|
16789
|
-
/**
|
|
16790
|
-
* UnprocessableEntityError
|
|
16791
|
-
*/
|
|
16792
|
-
422: UnprocessableEntityError;
|
|
16793
|
-
/**
|
|
16794
|
-
* TooManyRequestsError
|
|
16795
|
-
*/
|
|
16796
|
-
429: TooManyRequestsError;
|
|
16797
|
-
/**
|
|
16798
|
-
* InternalServerError
|
|
16799
|
-
*/
|
|
16800
|
-
500: InternalServerError;
|
|
16801
|
-
/**
|
|
16802
|
-
* ServiceUnavailableError
|
|
16803
|
-
*/
|
|
16804
|
-
503: ServiceUnavailableError;
|
|
16805
|
-
};
|
|
16806
|
-
|
|
16807
|
-
export type PromptsGetPromptReviewStateError = PromptsGetPromptReviewStateErrors[keyof PromptsGetPromptReviewStateErrors];
|
|
16808
|
-
|
|
16809
|
-
export type PromptsGetPromptReviewStateResponses = {
|
|
16810
|
-
/**
|
|
16811
|
-
* Success
|
|
16812
|
-
*/
|
|
16813
|
-
200: {
|
|
16814
|
-
code: number;
|
|
16815
|
-
data: {
|
|
16816
|
-
activeDecisions: Array<{
|
|
16817
|
-
createdAt: string;
|
|
16818
|
-
decision: 'approve' | 'reject' | 'request_changes' | 'withdraw';
|
|
16819
|
-
hasActiveRejection: boolean;
|
|
16820
|
-
reviewId: string;
|
|
16821
|
-
reviewerPrincipalId: string;
|
|
16822
|
-
}>;
|
|
16823
|
-
approvalCount: number;
|
|
16824
|
-
callerHasActiveRejection: boolean;
|
|
16825
|
-
hasActiveRejection: boolean;
|
|
16826
|
-
reviews: Array<{
|
|
16827
|
-
createdAt: string;
|
|
16828
|
-
decision: 'approve' | 'reject' | 'request_changes' | 'withdraw';
|
|
16829
|
-
id: string;
|
|
16830
|
-
note: string | null;
|
|
16831
|
-
reviewerDisplayName: string | null;
|
|
16832
|
-
reviewerPrincipalId: string;
|
|
16833
|
-
}>;
|
|
16834
|
-
} | null;
|
|
16835
|
-
error: {
|
|
16836
|
-
code: string;
|
|
16837
|
-
details?: unknown | null;
|
|
16838
|
-
message: string;
|
|
16839
|
-
rowErrors?: Array<{
|
|
16840
|
-
code: string;
|
|
16841
|
-
message: string;
|
|
16842
|
-
path: Array<string | number>;
|
|
16843
|
-
}> | null;
|
|
16844
|
-
} | null;
|
|
16845
|
-
pagination: {
|
|
16846
|
-
limit: number;
|
|
16847
|
-
page: number;
|
|
16848
|
-
total: number;
|
|
16849
|
-
totalPages: number;
|
|
16850
|
-
} | null;
|
|
16851
|
-
sdkBehavior?: {
|
|
16852
|
-
flags: {
|
|
16853
|
-
[key: string]: unknown;
|
|
16854
|
-
};
|
|
16855
|
-
v: number;
|
|
16856
|
-
} | null;
|
|
16857
|
-
success: boolean;
|
|
16858
|
-
};
|
|
16859
|
-
};
|
|
16860
|
-
|
|
16861
|
-
export type PromptsGetPromptReviewStateResponse = PromptsGetPromptReviewStateResponses[keyof PromptsGetPromptReviewStateResponses];
|
|
16862
|
-
|
|
16863
|
-
export type PromptsSubmitPromptReviewData = {
|
|
16864
|
-
body: {
|
|
16865
|
-
decision: 'approve' | 'reject' | 'request_changes';
|
|
16866
|
-
note?: string | null;
|
|
16867
|
-
};
|
|
16868
|
-
path: {
|
|
16869
|
-
projectId: string;
|
|
16870
|
-
promptId: string;
|
|
16871
|
-
versionNumber: string;
|
|
16872
|
-
};
|
|
16873
|
-
query?: never;
|
|
16874
|
-
url: '/v1/projects/{projectId}/prompts/{promptId}/versions/{versionNumber}/reviews';
|
|
16875
|
-
};
|
|
16876
|
-
|
|
16877
|
-
export type PromptsSubmitPromptReviewErrors = {
|
|
16878
|
-
/**
|
|
16879
|
-
* BadRequestError
|
|
16880
|
-
*/
|
|
16881
|
-
400: BadRequestError;
|
|
16882
|
-
/**
|
|
16883
|
-
* UnauthorizedError
|
|
16884
|
-
*/
|
|
16885
|
-
401: UnauthorizedError;
|
|
16886
|
-
/**
|
|
16887
|
-
* ForbiddenError
|
|
16888
|
-
*/
|
|
16889
|
-
403: ForbiddenError;
|
|
16890
|
-
/**
|
|
16891
|
-
* NotFoundError
|
|
16892
|
-
*/
|
|
16893
|
-
404: NotFoundError;
|
|
16894
|
-
/**
|
|
16895
|
-
* ConflictError
|
|
16896
|
-
*/
|
|
16897
|
-
409: ConflictError;
|
|
16898
|
-
/**
|
|
16899
|
-
* GoneError
|
|
16900
|
-
*/
|
|
16901
|
-
410: GoneError;
|
|
16902
|
-
/**
|
|
16903
|
-
* ContentTooLargeError
|
|
16904
|
-
*/
|
|
16905
|
-
413: ContentTooLargeError;
|
|
16906
|
-
/**
|
|
16907
|
-
* MisdirectedRequestError
|
|
16908
|
-
*/
|
|
16909
|
-
421: MisdirectedRequestError;
|
|
16910
|
-
/**
|
|
16911
|
-
* UnprocessableEntityError
|
|
16912
|
-
*/
|
|
16913
|
-
422: UnprocessableEntityError;
|
|
16914
|
-
/**
|
|
16915
|
-
* TooManyRequestsError
|
|
16916
|
-
*/
|
|
16917
|
-
429: TooManyRequestsError;
|
|
16918
|
-
/**
|
|
16919
|
-
* InternalServerError
|
|
16920
|
-
*/
|
|
16921
|
-
500: InternalServerError;
|
|
16922
|
-
/**
|
|
16923
|
-
* ServiceUnavailableError
|
|
16924
|
-
*/
|
|
16925
|
-
503: ServiceUnavailableError;
|
|
16926
|
-
};
|
|
16927
|
-
|
|
16928
|
-
export type PromptsSubmitPromptReviewError = PromptsSubmitPromptReviewErrors[keyof PromptsSubmitPromptReviewErrors];
|
|
16929
|
-
|
|
16930
|
-
export type PromptsSubmitPromptReviewResponses = {
|
|
16931
|
-
/**
|
|
16932
|
-
* Success
|
|
16933
|
-
*/
|
|
16934
|
-
201: {
|
|
16935
|
-
code: number;
|
|
16936
|
-
data: {
|
|
16937
|
-
approvalState: {
|
|
16938
|
-
approvalCount: number;
|
|
16939
|
-
hasActiveRejection: boolean;
|
|
16940
|
-
};
|
|
16941
|
-
review: {
|
|
16942
|
-
createdAt: string;
|
|
16943
|
-
decision: 'approve' | 'reject' | 'request_changes' | 'withdraw';
|
|
16944
|
-
id: string;
|
|
16945
|
-
note: string | null;
|
|
16946
|
-
reviewerPrincipalId: string;
|
|
16947
|
-
};
|
|
16948
|
-
} | null;
|
|
16949
|
-
error: {
|
|
16950
|
-
code: string;
|
|
16951
|
-
details?: unknown | null;
|
|
16952
|
-
message: string;
|
|
16953
|
-
rowErrors?: Array<{
|
|
16954
|
-
code: string;
|
|
16955
|
-
message: string;
|
|
16956
|
-
path: Array<string | number>;
|
|
16957
|
-
}> | null;
|
|
16958
|
-
} | null;
|
|
16959
|
-
pagination: {
|
|
16960
|
-
limit: number;
|
|
16961
|
-
page: number;
|
|
16962
|
-
total: number;
|
|
16963
|
-
totalPages: number;
|
|
16964
|
-
} | null;
|
|
16965
|
-
sdkBehavior?: {
|
|
16966
|
-
flags: {
|
|
16967
|
-
[key: string]: unknown;
|
|
16968
|
-
};
|
|
16969
|
-
v: number;
|
|
16970
|
-
} | null;
|
|
16971
|
-
success: boolean;
|
|
16972
|
-
};
|
|
16973
|
-
};
|
|
16974
|
-
|
|
16975
|
-
export type PromptsSubmitPromptReviewResponse = PromptsSubmitPromptReviewResponses[keyof PromptsSubmitPromptReviewResponses];
|
|
16976
|
-
|
|
16977
|
-
export type PromptsWithdrawPromptReviewData = {
|
|
16978
|
-
body: {
|
|
16979
|
-
note?: string | null;
|
|
16980
|
-
};
|
|
16981
|
-
path: {
|
|
16982
|
-
projectId: string;
|
|
16983
|
-
promptId: string;
|
|
16984
|
-
versionNumber: string;
|
|
16985
|
-
};
|
|
16986
|
-
query?: never;
|
|
16987
|
-
url: '/v1/projects/{projectId}/prompts/{promptId}/versions/{versionNumber}/reviews:withdraw';
|
|
16988
|
-
};
|
|
16989
|
-
|
|
16990
|
-
export type PromptsWithdrawPromptReviewErrors = {
|
|
16991
|
-
/**
|
|
16992
|
-
* BadRequestError
|
|
16993
|
-
*/
|
|
16994
|
-
400: BadRequestError;
|
|
16995
|
-
/**
|
|
16996
|
-
* UnauthorizedError
|
|
16997
|
-
*/
|
|
16998
|
-
401: UnauthorizedError;
|
|
16999
|
-
/**
|
|
17000
|
-
* ForbiddenError
|
|
17001
|
-
*/
|
|
17002
|
-
403: ForbiddenError;
|
|
17003
|
-
/**
|
|
17004
|
-
* NotFoundError
|
|
17005
|
-
*/
|
|
17006
|
-
404: NotFoundError;
|
|
17007
|
-
/**
|
|
17008
|
-
* ConflictError
|
|
17009
|
-
*/
|
|
17010
|
-
409: ConflictError;
|
|
17011
|
-
/**
|
|
17012
|
-
* GoneError
|
|
17013
|
-
*/
|
|
17014
|
-
410: GoneError;
|
|
17015
|
-
/**
|
|
17016
|
-
* ContentTooLargeError
|
|
17017
|
-
*/
|
|
17018
|
-
413: ContentTooLargeError;
|
|
17019
|
-
/**
|
|
17020
|
-
* MisdirectedRequestError
|
|
17021
|
-
*/
|
|
17022
|
-
421: MisdirectedRequestError;
|
|
17023
|
-
/**
|
|
17024
|
-
* UnprocessableEntityError
|
|
17025
|
-
*/
|
|
17026
|
-
422: UnprocessableEntityError;
|
|
17027
|
-
/**
|
|
17028
|
-
* TooManyRequestsError
|
|
17029
|
-
*/
|
|
17030
|
-
429: TooManyRequestsError;
|
|
17031
|
-
/**
|
|
17032
|
-
* InternalServerError
|
|
17033
|
-
*/
|
|
17034
|
-
500: InternalServerError;
|
|
17035
|
-
/**
|
|
17036
|
-
* ServiceUnavailableError
|
|
17037
|
-
*/
|
|
17038
|
-
503: ServiceUnavailableError;
|
|
17039
|
-
};
|
|
17040
|
-
|
|
17041
|
-
export type PromptsWithdrawPromptReviewError = PromptsWithdrawPromptReviewErrors[keyof PromptsWithdrawPromptReviewErrors];
|
|
17042
|
-
|
|
17043
|
-
export type PromptsWithdrawPromptReviewResponses = {
|
|
17044
|
-
/**
|
|
17045
|
-
* Success
|
|
17046
|
-
*/
|
|
17047
|
-
201: {
|
|
17048
|
-
code: number;
|
|
17049
|
-
data: {
|
|
17050
|
-
approvalState: {
|
|
17051
|
-
approvalCount: number;
|
|
17052
|
-
hasActiveRejection: boolean;
|
|
17053
|
-
};
|
|
17054
|
-
review: {
|
|
17055
|
-
createdAt: string;
|
|
17056
|
-
decision: 'approve' | 'reject' | 'request_changes' | 'withdraw';
|
|
17057
|
-
id: string;
|
|
17058
|
-
note: string | null;
|
|
17059
|
-
reviewerPrincipalId: string;
|
|
17060
|
-
};
|
|
17061
|
-
} | null;
|
|
17062
|
-
error: {
|
|
17063
|
-
code: string;
|
|
17064
|
-
details?: unknown | null;
|
|
17065
|
-
message: string;
|
|
17066
|
-
rowErrors?: Array<{
|
|
17067
|
-
code: string;
|
|
17068
|
-
message: string;
|
|
17069
|
-
path: Array<string | number>;
|
|
17070
|
-
}> | null;
|
|
17071
|
-
} | null;
|
|
17072
|
-
pagination: {
|
|
17073
|
-
limit: number;
|
|
17074
|
-
page: number;
|
|
17075
|
-
total: number;
|
|
17076
|
-
totalPages: number;
|
|
17077
|
-
} | null;
|
|
17078
|
-
sdkBehavior?: {
|
|
17079
|
-
flags: {
|
|
17080
|
-
[key: string]: unknown;
|
|
17081
|
-
};
|
|
17082
|
-
v: number;
|
|
17083
|
-
} | null;
|
|
17084
|
-
success: boolean;
|
|
17085
|
-
};
|
|
17086
|
-
};
|
|
17087
|
-
|
|
17088
|
-
export type PromptsWithdrawPromptReviewResponse = PromptsWithdrawPromptReviewResponses[keyof PromptsWithdrawPromptReviewResponses];
|
|
17089
|
-
|
|
17090
|
-
export type PromptsResolvePromptData = {
|
|
17091
|
-
body: {
|
|
17092
|
-
labels: Array<string>;
|
|
17093
|
-
slug: string;
|
|
17094
|
-
subject?: string | null;
|
|
17095
|
-
variables?: {
|
|
17096
|
-
[key: string]: unknown;
|
|
17097
|
-
} | null;
|
|
17098
|
-
};
|
|
17099
|
-
path: {
|
|
17100
|
-
projectId: string;
|
|
17101
|
-
};
|
|
17102
|
-
query?: never;
|
|
17103
|
-
url: '/v1/projects/{projectId}/prompts:resolve';
|
|
17104
|
-
};
|
|
17105
|
-
|
|
17106
|
-
export type PromptsResolvePromptErrors = {
|
|
17107
|
-
/**
|
|
17108
|
-
* BadRequestError
|
|
17109
|
-
*/
|
|
17110
|
-
400: BadRequestError;
|
|
17111
|
-
/**
|
|
17112
|
-
* UnauthorizedError
|
|
17113
|
-
*/
|
|
17114
|
-
401: UnauthorizedError;
|
|
17115
|
-
/**
|
|
17116
|
-
* ForbiddenError
|
|
17117
|
-
*/
|
|
17118
|
-
403: ForbiddenError;
|
|
17119
|
-
/**
|
|
17120
|
-
* NotFoundError
|
|
17121
|
-
*/
|
|
17122
|
-
404: NotFoundError;
|
|
17123
|
-
/**
|
|
17124
|
-
* ConflictError
|
|
17125
|
-
*/
|
|
17126
|
-
409: ConflictError;
|
|
17127
|
-
/**
|
|
17128
|
-
* GoneError
|
|
17129
|
-
*/
|
|
17130
|
-
410: GoneError;
|
|
17131
|
-
/**
|
|
17132
|
-
* ContentTooLargeError
|
|
17133
|
-
*/
|
|
17134
|
-
413: ContentTooLargeError;
|
|
17135
|
-
/**
|
|
17136
|
-
* MisdirectedRequestError
|
|
17137
|
-
*/
|
|
17138
|
-
421: MisdirectedRequestError;
|
|
17139
|
-
/**
|
|
17140
|
-
* UnprocessableEntityError
|
|
17141
|
-
*/
|
|
17142
|
-
422: UnprocessableEntityError;
|
|
17143
|
-
/**
|
|
17144
|
-
* TooManyRequestsError
|
|
17145
|
-
*/
|
|
17146
|
-
429: TooManyRequestsError;
|
|
17147
|
-
/**
|
|
17148
|
-
* InternalServerError
|
|
17149
|
-
*/
|
|
17150
|
-
500: InternalServerError;
|
|
17151
|
-
/**
|
|
17152
|
-
* ServiceUnavailableError
|
|
17153
|
-
*/
|
|
17154
|
-
503: ServiceUnavailableError;
|
|
17155
|
-
};
|
|
17156
|
-
|
|
17157
|
-
export type PromptsResolvePromptError = PromptsResolvePromptErrors[keyof PromptsResolvePromptErrors];
|
|
17158
|
-
|
|
17159
|
-
export type PromptsResolvePromptResponses = {
|
|
17160
|
-
/**
|
|
17161
|
-
* Success
|
|
17162
|
-
*/
|
|
17163
|
-
200: {
|
|
17164
|
-
code: number;
|
|
17165
|
-
data: ResolvedPrompt | null;
|
|
17166
|
-
error: {
|
|
17167
|
-
code: string;
|
|
17168
|
-
details?: unknown | null;
|
|
17169
|
-
message: string;
|
|
17170
|
-
rowErrors?: Array<{
|
|
17171
|
-
code: string;
|
|
17172
|
-
message: string;
|
|
17173
|
-
path: Array<string | number>;
|
|
17174
|
-
}> | null;
|
|
17175
|
-
} | null;
|
|
17176
|
-
pagination: {
|
|
17177
|
-
limit: number;
|
|
17178
|
-
page: number;
|
|
17179
|
-
total: number;
|
|
17180
|
-
totalPages: number;
|
|
17181
|
-
} | null;
|
|
17182
|
-
sdkBehavior?: {
|
|
17183
|
-
flags: {
|
|
17184
|
-
[key: string]: unknown;
|
|
17185
|
-
};
|
|
17186
|
-
v: number;
|
|
17187
|
-
} | null;
|
|
17188
|
-
success: boolean;
|
|
17189
|
-
};
|
|
17190
|
-
};
|
|
17191
|
-
|
|
17192
|
-
export type PromptsResolvePromptResponse = PromptsResolvePromptResponses[keyof PromptsResolvePromptResponses];
|
|
17193
|
-
|
|
17194
16181
|
export type CredentialLifecycleRenameCredentialData = {
|
|
17195
16182
|
body: {
|
|
17196
16183
|
label: string;
|