@to11ai/sdk 2.0.0 → 2.1.0-rc.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/README.md +2 -2
- package/dist/context.d.ts +1 -1
- package/dist/generated/index.d.ts +1 -1
- package/dist/generated/types.gen.d.ts +365 -235
- package/dist/generated/zod.gen.d.ts +416 -130
- package/dist/prompts/resource.cjs +1 -1
- package/dist/prompts/resource.d.ts +1 -1
- package/dist/prompts/resource.js +1 -1
- package/dist/prompts/shape.d.ts +1 -1
- package/dist/traceparent.d.ts +1 -1
- package/package.json +1 -1
- package/src/context.ts +1 -1
- package/src/generated/index.ts +1 -1
- package/src/generated/types.gen.ts +423 -286
- package/src/generated/zod.gen.ts +336 -221
- package/src/projectEnvironments/resource.ts +2 -2
- package/src/prompts/resource.ts +11 -2
- package/src/prompts/shape.ts +1 -1
- package/src/traceparent.ts +1 -1
|
@@ -89,6 +89,18 @@ export type GoneError = {
|
|
|
89
89
|
success: false;
|
|
90
90
|
};
|
|
91
91
|
|
|
92
|
+
export type ImportPromptVersionInput = {
|
|
93
|
+
changelog?: string | null;
|
|
94
|
+
files: Array<{
|
|
95
|
+
content: string;
|
|
96
|
+
contentType?: 'text/markdown' | 'text/plain' | null;
|
|
97
|
+
filename: string;
|
|
98
|
+
id?: string | null;
|
|
99
|
+
}>;
|
|
100
|
+
format?: 'skill' | null;
|
|
101
|
+
kind?: 'skill' | null;
|
|
102
|
+
};
|
|
103
|
+
|
|
92
104
|
export type InternalServerError = {
|
|
93
105
|
_tag: 'InternalServerError';
|
|
94
106
|
code: number;
|
|
@@ -160,6 +172,7 @@ export type PrincipalApiKeyContextInvariant = {
|
|
|
160
172
|
keyFingerprint: string;
|
|
161
173
|
keyId: string;
|
|
162
174
|
orgId: string | null;
|
|
175
|
+
orgSlug?: string | null;
|
|
163
176
|
projectId: string | null;
|
|
164
177
|
scopes: Array<string>;
|
|
165
178
|
workspaceId: string | null;
|
|
@@ -221,6 +234,7 @@ export type Prompt = {
|
|
|
221
234
|
createdByUserId: string;
|
|
222
235
|
description: string | null;
|
|
223
236
|
id: string;
|
|
237
|
+
kind: 'chat' | 'skill';
|
|
224
238
|
name: string;
|
|
225
239
|
projectId: string;
|
|
226
240
|
slug: string;
|
|
@@ -274,7 +288,7 @@ export type PromptVersion = {
|
|
|
274
288
|
createdByDisplayName: string | null;
|
|
275
289
|
createdByImage: string | null;
|
|
276
290
|
createdByUserId: string;
|
|
277
|
-
format: 'text' | 'chat';
|
|
291
|
+
format: 'text' | 'chat' | 'skill';
|
|
278
292
|
id: string;
|
|
279
293
|
modelConfig: unknown;
|
|
280
294
|
promptId: string;
|
|
@@ -298,6 +312,33 @@ export type RenderedChatPrompt = {
|
|
|
298
312
|
|
|
299
313
|
export type RenderedPrompt = RenderedTextPrompt | RenderedChatPrompt;
|
|
300
314
|
|
|
315
|
+
export type RenderedSkill = {
|
|
316
|
+
contentHash: string;
|
|
317
|
+
files: Array<RenderedSkillFile>;
|
|
318
|
+
format: 'skill';
|
|
319
|
+
label: string;
|
|
320
|
+
promptId: string;
|
|
321
|
+
releaseId: string;
|
|
322
|
+
version: number;
|
|
323
|
+
versionId: string;
|
|
324
|
+
};
|
|
325
|
+
|
|
326
|
+
export type RenderedSkillFile = {
|
|
327
|
+
content: string;
|
|
328
|
+
contentType: 'text/markdown' | 'text/plain';
|
|
329
|
+
filename: string;
|
|
330
|
+
id: string;
|
|
331
|
+
};
|
|
332
|
+
|
|
333
|
+
export type RenderedSkillVersion = {
|
|
334
|
+
contentHash: string;
|
|
335
|
+
files: Array<RenderedSkillFile>;
|
|
336
|
+
format: 'skill';
|
|
337
|
+
promptId: string;
|
|
338
|
+
version: number;
|
|
339
|
+
versionId: string;
|
|
340
|
+
};
|
|
341
|
+
|
|
301
342
|
export type RenderedTextMessage = {
|
|
302
343
|
content: string;
|
|
303
344
|
role: 'system' | 'user' | 'developer';
|
|
@@ -314,6 +355,12 @@ export type RenderedToolMessage = {
|
|
|
314
355
|
toolCallId: string;
|
|
315
356
|
};
|
|
316
357
|
|
|
358
|
+
export type ResolvedProjectName = {
|
|
359
|
+
organizationId: string;
|
|
360
|
+
projectId: string;
|
|
361
|
+
workspaceId: string;
|
|
362
|
+
};
|
|
363
|
+
|
|
317
364
|
export type ResolvedPrompt = {
|
|
318
365
|
blockRenderRecord?: {
|
|
319
366
|
[key: string]: 'rendered' | 'dimmed';
|
|
@@ -419,7 +466,8 @@ export type RuleStep = {
|
|
|
419
466
|
};
|
|
420
467
|
|
|
421
468
|
export type RuleTarget = {
|
|
422
|
-
modelId
|
|
469
|
+
modelId?: string | null;
|
|
470
|
+
modelName?: string | null;
|
|
423
471
|
params?: {
|
|
424
472
|
[key: string]: unknown;
|
|
425
473
|
} | null;
|
|
@@ -463,6 +511,21 @@ export type ServiceUnavailableError = {
|
|
|
463
511
|
success: false;
|
|
464
512
|
};
|
|
465
513
|
|
|
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
|
+
|
|
466
529
|
export type TooManyRequestsError = {
|
|
467
530
|
_tag: 'TooManyRequestsError';
|
|
468
531
|
code: number;
|
|
@@ -858,31 +921,6 @@ export type RoutingSnapshotsGetRoutingSnapshotByEnvResponses = {
|
|
|
858
921
|
|
|
859
922
|
export type RoutingSnapshotsGetRoutingSnapshotByEnvResponse = RoutingSnapshotsGetRoutingSnapshotByEnvResponses[keyof RoutingSnapshotsGetRoutingSnapshotByEnvResponses];
|
|
860
923
|
|
|
861
|
-
export type MetricsMetricsData = {
|
|
862
|
-
body?: never;
|
|
863
|
-
path?: never;
|
|
864
|
-
query?: never;
|
|
865
|
-
url: '/metrics';
|
|
866
|
-
};
|
|
867
|
-
|
|
868
|
-
export type MetricsMetricsErrors = {
|
|
869
|
-
/**
|
|
870
|
-
* UnauthorizedError
|
|
871
|
-
*/
|
|
872
|
-
401: UnauthorizedError;
|
|
873
|
-
};
|
|
874
|
-
|
|
875
|
-
export type MetricsMetricsError = MetricsMetricsErrors[keyof MetricsMetricsErrors];
|
|
876
|
-
|
|
877
|
-
export type MetricsMetricsResponses = {
|
|
878
|
-
/**
|
|
879
|
-
* Success
|
|
880
|
-
*/
|
|
881
|
-
200: string;
|
|
882
|
-
};
|
|
883
|
-
|
|
884
|
-
export type MetricsMetricsResponse = MetricsMetricsResponses[keyof MetricsMetricsResponses];
|
|
885
|
-
|
|
886
924
|
export type HealthReadyzData = {
|
|
887
925
|
body?: never;
|
|
888
926
|
path?: never;
|
|
@@ -3513,8 +3551,9 @@ export type IngestTokenExchangeIngestTokenResponses = {
|
|
|
3513
3551
|
200: {
|
|
3514
3552
|
code: number;
|
|
3515
3553
|
data: {
|
|
3516
|
-
apiKeyId
|
|
3554
|
+
apiKeyId?: string | null;
|
|
3517
3555
|
expiresAt: string;
|
|
3556
|
+
principalId: string;
|
|
3518
3557
|
projectId: string;
|
|
3519
3558
|
scopeClass: 'project' | 'org';
|
|
3520
3559
|
scopes: Array<string>;
|
|
@@ -3848,114 +3887,6 @@ export type OrganizationsGetOrganizationInvitationDetailsResponses = {
|
|
|
3848
3887
|
|
|
3849
3888
|
export type OrganizationsGetOrganizationInvitationDetailsResponse = OrganizationsGetOrganizationInvitationDetailsResponses[keyof OrganizationsGetOrganizationInvitationDetailsResponses];
|
|
3850
3889
|
|
|
3851
|
-
export type ApiKeysListApiKeysSuperData = {
|
|
3852
|
-
body?: never;
|
|
3853
|
-
path?: never;
|
|
3854
|
-
query?: {
|
|
3855
|
-
page?: number | null;
|
|
3856
|
-
limit?: number | null;
|
|
3857
|
-
};
|
|
3858
|
-
url: '/v1/keys';
|
|
3859
|
-
};
|
|
3860
|
-
|
|
3861
|
-
export type ApiKeysListApiKeysSuperErrors = {
|
|
3862
|
-
/**
|
|
3863
|
-
* BadRequestError
|
|
3864
|
-
*/
|
|
3865
|
-
400: BadRequestError;
|
|
3866
|
-
/**
|
|
3867
|
-
* UnauthorizedError
|
|
3868
|
-
*/
|
|
3869
|
-
401: UnauthorizedError;
|
|
3870
|
-
/**
|
|
3871
|
-
* ForbiddenError
|
|
3872
|
-
*/
|
|
3873
|
-
403: ForbiddenError;
|
|
3874
|
-
/**
|
|
3875
|
-
* NotFoundError
|
|
3876
|
-
*/
|
|
3877
|
-
404: NotFoundError;
|
|
3878
|
-
/**
|
|
3879
|
-
* ConflictError
|
|
3880
|
-
*/
|
|
3881
|
-
409: ConflictError;
|
|
3882
|
-
/**
|
|
3883
|
-
* GoneError
|
|
3884
|
-
*/
|
|
3885
|
-
410: GoneError;
|
|
3886
|
-
/**
|
|
3887
|
-
* ContentTooLargeError
|
|
3888
|
-
*/
|
|
3889
|
-
413: ContentTooLargeError;
|
|
3890
|
-
/**
|
|
3891
|
-
* MisdirectedRequestError
|
|
3892
|
-
*/
|
|
3893
|
-
421: MisdirectedRequestError;
|
|
3894
|
-
/**
|
|
3895
|
-
* UnprocessableEntityError
|
|
3896
|
-
*/
|
|
3897
|
-
422: UnprocessableEntityError;
|
|
3898
|
-
/**
|
|
3899
|
-
* TooManyRequestsError
|
|
3900
|
-
*/
|
|
3901
|
-
429: TooManyRequestsError;
|
|
3902
|
-
/**
|
|
3903
|
-
* InternalServerError
|
|
3904
|
-
*/
|
|
3905
|
-
500: InternalServerError;
|
|
3906
|
-
/**
|
|
3907
|
-
* ServiceUnavailableError
|
|
3908
|
-
*/
|
|
3909
|
-
503: ServiceUnavailableError;
|
|
3910
|
-
};
|
|
3911
|
-
|
|
3912
|
-
export type ApiKeysListApiKeysSuperError = ApiKeysListApiKeysSuperErrors[keyof ApiKeysListApiKeysSuperErrors];
|
|
3913
|
-
|
|
3914
|
-
export type ApiKeysListApiKeysSuperResponses = {
|
|
3915
|
-
/**
|
|
3916
|
-
* Success
|
|
3917
|
-
*/
|
|
3918
|
-
200: {
|
|
3919
|
-
code: number;
|
|
3920
|
-
data: Array<{
|
|
3921
|
-
createdAt: string;
|
|
3922
|
-
environment: 'live' | 'test';
|
|
3923
|
-
expiresAt: string;
|
|
3924
|
-
id: string;
|
|
3925
|
-
key: string;
|
|
3926
|
-
orgId: string | null;
|
|
3927
|
-
projectId: string | null;
|
|
3928
|
-
revokedAt: string | null;
|
|
3929
|
-
scopes: Array<string>;
|
|
3930
|
-
}> | null;
|
|
3931
|
-
error: {
|
|
3932
|
-
code: string;
|
|
3933
|
-
details?: unknown | null;
|
|
3934
|
-
message: string;
|
|
3935
|
-
rowErrors?: Array<{
|
|
3936
|
-
code: string;
|
|
3937
|
-
message: string;
|
|
3938
|
-
path: Array<string | number>;
|
|
3939
|
-
}> | null;
|
|
3940
|
-
} | null;
|
|
3941
|
-
pagination: {
|
|
3942
|
-
limit: number;
|
|
3943
|
-
page: number;
|
|
3944
|
-
total: number;
|
|
3945
|
-
totalPages: number;
|
|
3946
|
-
} | null;
|
|
3947
|
-
sdkBehavior?: {
|
|
3948
|
-
flags: {
|
|
3949
|
-
[key: string]: unknown;
|
|
3950
|
-
};
|
|
3951
|
-
v: number;
|
|
3952
|
-
} | null;
|
|
3953
|
-
success: boolean;
|
|
3954
|
-
};
|
|
3955
|
-
};
|
|
3956
|
-
|
|
3957
|
-
export type ApiKeysListApiKeysSuperResponse = ApiKeysListApiKeysSuperResponses[keyof ApiKeysListApiKeysSuperResponses];
|
|
3958
|
-
|
|
3959
3890
|
export type ApiKeysCreateApiKeySuperData = {
|
|
3960
3891
|
body: {
|
|
3961
3892
|
environment: 'live' | 'test';
|
|
@@ -5756,116 +5687,6 @@ export type OrganizationsResendOrganizationInvitationResponses = {
|
|
|
5756
5687
|
|
|
5757
5688
|
export type OrganizationsResendOrganizationInvitationResponse = OrganizationsResendOrganizationInvitationResponses[keyof OrganizationsResendOrganizationInvitationResponses];
|
|
5758
5689
|
|
|
5759
|
-
export type ApiKeysListApiKeysOrgData = {
|
|
5760
|
-
body?: never;
|
|
5761
|
-
path: {
|
|
5762
|
-
orgId: string;
|
|
5763
|
-
};
|
|
5764
|
-
query?: {
|
|
5765
|
-
page?: number | null;
|
|
5766
|
-
limit?: number | null;
|
|
5767
|
-
};
|
|
5768
|
-
url: '/v1/orgs/{orgId}/keys';
|
|
5769
|
-
};
|
|
5770
|
-
|
|
5771
|
-
export type ApiKeysListApiKeysOrgErrors = {
|
|
5772
|
-
/**
|
|
5773
|
-
* BadRequestError
|
|
5774
|
-
*/
|
|
5775
|
-
400: BadRequestError;
|
|
5776
|
-
/**
|
|
5777
|
-
* UnauthorizedError
|
|
5778
|
-
*/
|
|
5779
|
-
401: UnauthorizedError;
|
|
5780
|
-
/**
|
|
5781
|
-
* ForbiddenError
|
|
5782
|
-
*/
|
|
5783
|
-
403: ForbiddenError;
|
|
5784
|
-
/**
|
|
5785
|
-
* NotFoundError
|
|
5786
|
-
*/
|
|
5787
|
-
404: NotFoundError;
|
|
5788
|
-
/**
|
|
5789
|
-
* ConflictError
|
|
5790
|
-
*/
|
|
5791
|
-
409: ConflictError;
|
|
5792
|
-
/**
|
|
5793
|
-
* GoneError
|
|
5794
|
-
*/
|
|
5795
|
-
410: GoneError;
|
|
5796
|
-
/**
|
|
5797
|
-
* ContentTooLargeError
|
|
5798
|
-
*/
|
|
5799
|
-
413: ContentTooLargeError;
|
|
5800
|
-
/**
|
|
5801
|
-
* MisdirectedRequestError
|
|
5802
|
-
*/
|
|
5803
|
-
421: MisdirectedRequestError;
|
|
5804
|
-
/**
|
|
5805
|
-
* UnprocessableEntityError
|
|
5806
|
-
*/
|
|
5807
|
-
422: UnprocessableEntityError;
|
|
5808
|
-
/**
|
|
5809
|
-
* TooManyRequestsError
|
|
5810
|
-
*/
|
|
5811
|
-
429: TooManyRequestsError;
|
|
5812
|
-
/**
|
|
5813
|
-
* InternalServerError
|
|
5814
|
-
*/
|
|
5815
|
-
500: InternalServerError;
|
|
5816
|
-
/**
|
|
5817
|
-
* ServiceUnavailableError
|
|
5818
|
-
*/
|
|
5819
|
-
503: ServiceUnavailableError;
|
|
5820
|
-
};
|
|
5821
|
-
|
|
5822
|
-
export type ApiKeysListApiKeysOrgError = ApiKeysListApiKeysOrgErrors[keyof ApiKeysListApiKeysOrgErrors];
|
|
5823
|
-
|
|
5824
|
-
export type ApiKeysListApiKeysOrgResponses = {
|
|
5825
|
-
/**
|
|
5826
|
-
* Success
|
|
5827
|
-
*/
|
|
5828
|
-
200: {
|
|
5829
|
-
code: number;
|
|
5830
|
-
data: Array<{
|
|
5831
|
-
createdAt: string;
|
|
5832
|
-
environment: 'live' | 'test';
|
|
5833
|
-
expiresAt: string;
|
|
5834
|
-
id: string;
|
|
5835
|
-
key: string;
|
|
5836
|
-
orgId: string | null;
|
|
5837
|
-
projectId: string | null;
|
|
5838
|
-
revokedAt: string | null;
|
|
5839
|
-
scopes: Array<string>;
|
|
5840
|
-
}> | null;
|
|
5841
|
-
error: {
|
|
5842
|
-
code: string;
|
|
5843
|
-
details?: unknown | null;
|
|
5844
|
-
message: string;
|
|
5845
|
-
rowErrors?: Array<{
|
|
5846
|
-
code: string;
|
|
5847
|
-
message: string;
|
|
5848
|
-
path: Array<string | number>;
|
|
5849
|
-
}> | null;
|
|
5850
|
-
} | null;
|
|
5851
|
-
pagination: {
|
|
5852
|
-
limit: number;
|
|
5853
|
-
page: number;
|
|
5854
|
-
total: number;
|
|
5855
|
-
totalPages: number;
|
|
5856
|
-
} | null;
|
|
5857
|
-
sdkBehavior?: {
|
|
5858
|
-
flags: {
|
|
5859
|
-
[key: string]: unknown;
|
|
5860
|
-
};
|
|
5861
|
-
v: number;
|
|
5862
|
-
} | null;
|
|
5863
|
-
success: boolean;
|
|
5864
|
-
};
|
|
5865
|
-
};
|
|
5866
|
-
|
|
5867
|
-
export type ApiKeysListApiKeysOrgResponse = ApiKeysListApiKeysOrgResponses[keyof ApiKeysListApiKeysOrgResponses];
|
|
5868
|
-
|
|
5869
5690
|
export type ApiKeysCreateApiKeyOrgData = {
|
|
5870
5691
|
body: {
|
|
5871
5692
|
environment: 'live' | 'test';
|
|
@@ -7213,6 +7034,7 @@ export type ProjectsCreateProjectByOrgResponses = {
|
|
|
7213
7034
|
status: 'active' | 'archived' | 'deleted';
|
|
7214
7035
|
updatedAt: string;
|
|
7215
7036
|
workspaceId: string;
|
|
7037
|
+
workspaceSlug: string;
|
|
7216
7038
|
} | null;
|
|
7217
7039
|
error: {
|
|
7218
7040
|
code: string;
|
|
@@ -9834,7 +9656,110 @@ export type WorkspacesUpsertWorkspaceMemberData = {
|
|
|
9834
9656
|
url: '/v1/orgs/{orgId}/workspaces/{workspaceId}/members/{userId}';
|
|
9835
9657
|
};
|
|
9836
9658
|
|
|
9837
|
-
export type WorkspacesUpsertWorkspaceMemberErrors = {
|
|
9659
|
+
export type WorkspacesUpsertWorkspaceMemberErrors = {
|
|
9660
|
+
/**
|
|
9661
|
+
* BadRequestError
|
|
9662
|
+
*/
|
|
9663
|
+
400: BadRequestError;
|
|
9664
|
+
/**
|
|
9665
|
+
* UnauthorizedError
|
|
9666
|
+
*/
|
|
9667
|
+
401: UnauthorizedError;
|
|
9668
|
+
/**
|
|
9669
|
+
* ForbiddenError
|
|
9670
|
+
*/
|
|
9671
|
+
403: ForbiddenError;
|
|
9672
|
+
/**
|
|
9673
|
+
* NotFoundError
|
|
9674
|
+
*/
|
|
9675
|
+
404: NotFoundError;
|
|
9676
|
+
/**
|
|
9677
|
+
* ConflictError
|
|
9678
|
+
*/
|
|
9679
|
+
409: ConflictError;
|
|
9680
|
+
/**
|
|
9681
|
+
* GoneError
|
|
9682
|
+
*/
|
|
9683
|
+
410: GoneError;
|
|
9684
|
+
/**
|
|
9685
|
+
* ContentTooLargeError
|
|
9686
|
+
*/
|
|
9687
|
+
413: ContentTooLargeError;
|
|
9688
|
+
/**
|
|
9689
|
+
* MisdirectedRequestError
|
|
9690
|
+
*/
|
|
9691
|
+
421: MisdirectedRequestError;
|
|
9692
|
+
/**
|
|
9693
|
+
* UnprocessableEntityError
|
|
9694
|
+
*/
|
|
9695
|
+
422: UnprocessableEntityError;
|
|
9696
|
+
/**
|
|
9697
|
+
* TooManyRequestsError
|
|
9698
|
+
*/
|
|
9699
|
+
429: TooManyRequestsError;
|
|
9700
|
+
/**
|
|
9701
|
+
* InternalServerError
|
|
9702
|
+
*/
|
|
9703
|
+
500: InternalServerError;
|
|
9704
|
+
/**
|
|
9705
|
+
* ServiceUnavailableError
|
|
9706
|
+
*/
|
|
9707
|
+
503: ServiceUnavailableError;
|
|
9708
|
+
};
|
|
9709
|
+
|
|
9710
|
+
export type WorkspacesUpsertWorkspaceMemberError = WorkspacesUpsertWorkspaceMemberErrors[keyof WorkspacesUpsertWorkspaceMemberErrors];
|
|
9711
|
+
|
|
9712
|
+
export type WorkspacesUpsertWorkspaceMemberResponses = {
|
|
9713
|
+
/**
|
|
9714
|
+
* Success
|
|
9715
|
+
*/
|
|
9716
|
+
200: {
|
|
9717
|
+
code: number;
|
|
9718
|
+
data: {
|
|
9719
|
+
createdAt: string;
|
|
9720
|
+
updatedAt: string;
|
|
9721
|
+
userId: string;
|
|
9722
|
+
workspaceId: string;
|
|
9723
|
+
workspaceRoleId: string;
|
|
9724
|
+
} | null;
|
|
9725
|
+
error: {
|
|
9726
|
+
code: string;
|
|
9727
|
+
details?: unknown | null;
|
|
9728
|
+
message: string;
|
|
9729
|
+
rowErrors?: Array<{
|
|
9730
|
+
code: string;
|
|
9731
|
+
message: string;
|
|
9732
|
+
path: Array<string | number>;
|
|
9733
|
+
}> | null;
|
|
9734
|
+
} | null;
|
|
9735
|
+
pagination: {
|
|
9736
|
+
limit: number;
|
|
9737
|
+
page: number;
|
|
9738
|
+
total: number;
|
|
9739
|
+
totalPages: number;
|
|
9740
|
+
} | null;
|
|
9741
|
+
sdkBehavior?: {
|
|
9742
|
+
flags: {
|
|
9743
|
+
[key: string]: unknown;
|
|
9744
|
+
};
|
|
9745
|
+
v: number;
|
|
9746
|
+
} | null;
|
|
9747
|
+
success: boolean;
|
|
9748
|
+
};
|
|
9749
|
+
};
|
|
9750
|
+
|
|
9751
|
+
export type WorkspacesUpsertWorkspaceMemberResponse = WorkspacesUpsertWorkspaceMemberResponses[keyof WorkspacesUpsertWorkspaceMemberResponses];
|
|
9752
|
+
|
|
9753
|
+
export type AuthLookupPrincipalsBatchData = {
|
|
9754
|
+
body: {
|
|
9755
|
+
ids: Array<string>;
|
|
9756
|
+
};
|
|
9757
|
+
path?: never;
|
|
9758
|
+
query?: never;
|
|
9759
|
+
url: '/v1/principals/batch';
|
|
9760
|
+
};
|
|
9761
|
+
|
|
9762
|
+
export type AuthLookupPrincipalsBatchErrors = {
|
|
9838
9763
|
/**
|
|
9839
9764
|
* BadRequestError
|
|
9840
9765
|
*/
|
|
@@ -9885,20 +9810,31 @@ export type WorkspacesUpsertWorkspaceMemberErrors = {
|
|
|
9885
9810
|
503: ServiceUnavailableError;
|
|
9886
9811
|
};
|
|
9887
9812
|
|
|
9888
|
-
export type
|
|
9813
|
+
export type AuthLookupPrincipalsBatchError = AuthLookupPrincipalsBatchErrors[keyof AuthLookupPrincipalsBatchErrors];
|
|
9889
9814
|
|
|
9890
|
-
export type
|
|
9815
|
+
export type AuthLookupPrincipalsBatchResponses = {
|
|
9891
9816
|
/**
|
|
9892
9817
|
* Success
|
|
9893
9818
|
*/
|
|
9894
9819
|
200: {
|
|
9895
9820
|
code: number;
|
|
9896
9821
|
data: {
|
|
9897
|
-
|
|
9898
|
-
|
|
9899
|
-
|
|
9900
|
-
|
|
9901
|
-
|
|
9822
|
+
principals: Array<{
|
|
9823
|
+
email: string | null;
|
|
9824
|
+
firstName: string | null;
|
|
9825
|
+
id: string;
|
|
9826
|
+
image: string | null;
|
|
9827
|
+
kind: 'user';
|
|
9828
|
+
lastName: string | null;
|
|
9829
|
+
} | {
|
|
9830
|
+
id: string;
|
|
9831
|
+
kind: 'api_key';
|
|
9832
|
+
label: string;
|
|
9833
|
+
slug: string;
|
|
9834
|
+
} | {
|
|
9835
|
+
id: string;
|
|
9836
|
+
kind: 'unknown';
|
|
9837
|
+
}>;
|
|
9902
9838
|
} | null;
|
|
9903
9839
|
error: {
|
|
9904
9840
|
code: string;
|
|
@@ -9926,18 +9862,20 @@ export type WorkspacesUpsertWorkspaceMemberResponses = {
|
|
|
9926
9862
|
};
|
|
9927
9863
|
};
|
|
9928
9864
|
|
|
9929
|
-
export type
|
|
9865
|
+
export type AuthLookupPrincipalsBatchResponse = AuthLookupPrincipalsBatchResponses[keyof AuthLookupPrincipalsBatchResponses];
|
|
9930
9866
|
|
|
9931
|
-
export type
|
|
9932
|
-
body
|
|
9933
|
-
|
|
9867
|
+
export type ProjectsGetProjectByNameData = {
|
|
9868
|
+
body?: never;
|
|
9869
|
+
path: {
|
|
9870
|
+
organization: string;
|
|
9871
|
+
workspace: string;
|
|
9872
|
+
project: string;
|
|
9934
9873
|
};
|
|
9935
|
-
path?: never;
|
|
9936
9874
|
query?: never;
|
|
9937
|
-
url: '/v1/
|
|
9875
|
+
url: '/v1/projects/by-name/{organization}/{workspace}/{project}';
|
|
9938
9876
|
};
|
|
9939
9877
|
|
|
9940
|
-
export type
|
|
9878
|
+
export type ProjectsGetProjectByNameErrors = {
|
|
9941
9879
|
/**
|
|
9942
9880
|
* BadRequestError
|
|
9943
9881
|
*/
|
|
@@ -9988,32 +9926,15 @@ export type AuthLookupPrincipalsBatchErrors = {
|
|
|
9988
9926
|
503: ServiceUnavailableError;
|
|
9989
9927
|
};
|
|
9990
9928
|
|
|
9991
|
-
export type
|
|
9929
|
+
export type ProjectsGetProjectByNameError = ProjectsGetProjectByNameErrors[keyof ProjectsGetProjectByNameErrors];
|
|
9992
9930
|
|
|
9993
|
-
export type
|
|
9931
|
+
export type ProjectsGetProjectByNameResponses = {
|
|
9994
9932
|
/**
|
|
9995
9933
|
* Success
|
|
9996
9934
|
*/
|
|
9997
9935
|
200: {
|
|
9998
9936
|
code: number;
|
|
9999
|
-
data:
|
|
10000
|
-
principals: Array<{
|
|
10001
|
-
email: string | null;
|
|
10002
|
-
firstName: string | null;
|
|
10003
|
-
id: string;
|
|
10004
|
-
image: string | null;
|
|
10005
|
-
kind: 'user';
|
|
10006
|
-
lastName: string | null;
|
|
10007
|
-
} | {
|
|
10008
|
-
id: string;
|
|
10009
|
-
kind: 'api_key';
|
|
10010
|
-
label: string;
|
|
10011
|
-
slug: string;
|
|
10012
|
-
} | {
|
|
10013
|
-
id: string;
|
|
10014
|
-
kind: 'unknown';
|
|
10015
|
-
}>;
|
|
10016
|
-
} | null;
|
|
9937
|
+
data: ResolvedProjectName | null;
|
|
10017
9938
|
error: {
|
|
10018
9939
|
code: string;
|
|
10019
9940
|
details?: unknown | null;
|
|
@@ -10040,7 +9961,7 @@ export type AuthLookupPrincipalsBatchResponses = {
|
|
|
10040
9961
|
};
|
|
10041
9962
|
};
|
|
10042
9963
|
|
|
10043
|
-
export type
|
|
9964
|
+
export type ProjectsGetProjectByNameResponse = ProjectsGetProjectByNameResponses[keyof ProjectsGetProjectByNameResponses];
|
|
10044
9965
|
|
|
10045
9966
|
export type ProjectsDeleteProjectData = {
|
|
10046
9967
|
body?: never;
|
|
@@ -10120,6 +10041,7 @@ export type ProjectsDeleteProjectResponses = {
|
|
|
10120
10041
|
status: 'active' | 'archived' | 'deleted';
|
|
10121
10042
|
updatedAt: string;
|
|
10122
10043
|
workspaceId: string;
|
|
10044
|
+
workspaceSlug: string;
|
|
10123
10045
|
} | null;
|
|
10124
10046
|
error: {
|
|
10125
10047
|
code: string;
|
|
@@ -10227,6 +10149,7 @@ export type ProjectsGetProjectResponses = {
|
|
|
10227
10149
|
status: 'active' | 'archived' | 'deleted';
|
|
10228
10150
|
updatedAt: string;
|
|
10229
10151
|
workspaceId: string;
|
|
10152
|
+
workspaceSlug: string;
|
|
10230
10153
|
} | null;
|
|
10231
10154
|
error: {
|
|
10232
10155
|
code: string;
|
|
@@ -10338,6 +10261,7 @@ export type ProjectsUpdateProjectResponses = {
|
|
|
10338
10261
|
status: 'active' | 'archived' | 'deleted';
|
|
10339
10262
|
updatedAt: string;
|
|
10340
10263
|
workspaceId: string;
|
|
10264
|
+
workspaceSlug: string;
|
|
10341
10265
|
} | null;
|
|
10342
10266
|
error: {
|
|
10343
10267
|
code: string;
|
|
@@ -14618,6 +14542,7 @@ export type PromptsListPromptsData = {
|
|
|
14618
14542
|
search?: string | null;
|
|
14619
14543
|
sortDir?: 'asc' | 'desc' | null;
|
|
14620
14544
|
status?: string | null;
|
|
14545
|
+
kind?: string | null;
|
|
14621
14546
|
sortBy?: 'createdAt' | 'updatedAt' | 'name' | 'status' | 'latestVersion' | 'environments' | null;
|
|
14622
14547
|
tags?: string | null;
|
|
14623
14548
|
environment?: string | null;
|
|
@@ -14689,6 +14614,7 @@ export type PromptsListPromptsResponses = {
|
|
|
14689
14614
|
createdByUserId: string;
|
|
14690
14615
|
description: string | null;
|
|
14691
14616
|
id: string;
|
|
14617
|
+
kind: 'chat' | 'skill';
|
|
14692
14618
|
labels: Array<{
|
|
14693
14619
|
label: string;
|
|
14694
14620
|
version: number | null;
|
|
@@ -14741,6 +14667,7 @@ export type PromptsListPromptsResponse = PromptsListPromptsResponses[keyof Promp
|
|
|
14741
14667
|
export type PromptsCreatePromptData = {
|
|
14742
14668
|
body: {
|
|
14743
14669
|
description?: string | null;
|
|
14670
|
+
kind?: 'chat' | 'skill' | null;
|
|
14744
14671
|
name: string;
|
|
14745
14672
|
slug: string;
|
|
14746
14673
|
tags?: Array<string> | null;
|
|
@@ -15028,7 +14955,7 @@ export type PromptsRenderPromptResponses = {
|
|
|
15028
14955
|
*/
|
|
15029
14956
|
200: {
|
|
15030
14957
|
code: number;
|
|
15031
|
-
data: ResolvedPrompt | null;
|
|
14958
|
+
data: ResolvedPrompt | RenderedSkill | null;
|
|
15032
14959
|
error: {
|
|
15033
14960
|
code: string;
|
|
15034
14961
|
details?: unknown | null;
|
|
@@ -15057,12 +14984,117 @@ export type PromptsRenderPromptResponses = {
|
|
|
15057
14984
|
|
|
15058
14985
|
export type PromptsRenderPromptResponse = PromptsRenderPromptResponses[keyof PromptsRenderPromptResponses];
|
|
15059
14986
|
|
|
14987
|
+
export type PromptsRenderSkillVersionData = {
|
|
14988
|
+
body: {
|
|
14989
|
+
variables?: {
|
|
14990
|
+
[key: string]: unknown;
|
|
14991
|
+
} | null;
|
|
14992
|
+
};
|
|
14993
|
+
path: {
|
|
14994
|
+
projectId: string;
|
|
14995
|
+
slug: string;
|
|
14996
|
+
versionNumber: string;
|
|
14997
|
+
};
|
|
14998
|
+
query?: never;
|
|
14999
|
+
url: '/v1/projects/{projectId}/prompts/by-slug/{slug}/versions/{versionNumber}/render';
|
|
15000
|
+
};
|
|
15001
|
+
|
|
15002
|
+
export type PromptsRenderSkillVersionErrors = {
|
|
15003
|
+
/**
|
|
15004
|
+
* BadRequestError
|
|
15005
|
+
*/
|
|
15006
|
+
400: BadRequestError;
|
|
15007
|
+
/**
|
|
15008
|
+
* UnauthorizedError
|
|
15009
|
+
*/
|
|
15010
|
+
401: UnauthorizedError;
|
|
15011
|
+
/**
|
|
15012
|
+
* ForbiddenError
|
|
15013
|
+
*/
|
|
15014
|
+
403: ForbiddenError;
|
|
15015
|
+
/**
|
|
15016
|
+
* NotFoundError
|
|
15017
|
+
*/
|
|
15018
|
+
404: NotFoundError;
|
|
15019
|
+
/**
|
|
15020
|
+
* ConflictError
|
|
15021
|
+
*/
|
|
15022
|
+
409: ConflictError;
|
|
15023
|
+
/**
|
|
15024
|
+
* GoneError
|
|
15025
|
+
*/
|
|
15026
|
+
410: GoneError;
|
|
15027
|
+
/**
|
|
15028
|
+
* ContentTooLargeError
|
|
15029
|
+
*/
|
|
15030
|
+
413: ContentTooLargeError;
|
|
15031
|
+
/**
|
|
15032
|
+
* MisdirectedRequestError
|
|
15033
|
+
*/
|
|
15034
|
+
421: MisdirectedRequestError;
|
|
15035
|
+
/**
|
|
15036
|
+
* UnprocessableEntityError
|
|
15037
|
+
*/
|
|
15038
|
+
422: UnprocessableEntityError;
|
|
15039
|
+
/**
|
|
15040
|
+
* TooManyRequestsError
|
|
15041
|
+
*/
|
|
15042
|
+
429: TooManyRequestsError;
|
|
15043
|
+
/**
|
|
15044
|
+
* InternalServerError
|
|
15045
|
+
*/
|
|
15046
|
+
500: InternalServerError;
|
|
15047
|
+
/**
|
|
15048
|
+
* ServiceUnavailableError
|
|
15049
|
+
*/
|
|
15050
|
+
503: ServiceUnavailableError;
|
|
15051
|
+
};
|
|
15052
|
+
|
|
15053
|
+
export type PromptsRenderSkillVersionError = PromptsRenderSkillVersionErrors[keyof PromptsRenderSkillVersionErrors];
|
|
15054
|
+
|
|
15055
|
+
export type PromptsRenderSkillVersionResponses = {
|
|
15056
|
+
/**
|
|
15057
|
+
* Success
|
|
15058
|
+
*/
|
|
15059
|
+
200: {
|
|
15060
|
+
code: number;
|
|
15061
|
+
data: RenderedSkillVersion | null;
|
|
15062
|
+
error: {
|
|
15063
|
+
code: string;
|
|
15064
|
+
details?: unknown | null;
|
|
15065
|
+
message: string;
|
|
15066
|
+
rowErrors?: Array<{
|
|
15067
|
+
code: string;
|
|
15068
|
+
message: string;
|
|
15069
|
+
path: Array<string | number>;
|
|
15070
|
+
}> | null;
|
|
15071
|
+
} | null;
|
|
15072
|
+
pagination: {
|
|
15073
|
+
limit: number;
|
|
15074
|
+
page: number;
|
|
15075
|
+
total: number;
|
|
15076
|
+
totalPages: number;
|
|
15077
|
+
} | null;
|
|
15078
|
+
sdkBehavior?: {
|
|
15079
|
+
flags: {
|
|
15080
|
+
[key: string]: unknown;
|
|
15081
|
+
};
|
|
15082
|
+
v: number;
|
|
15083
|
+
} | null;
|
|
15084
|
+
success: boolean;
|
|
15085
|
+
};
|
|
15086
|
+
};
|
|
15087
|
+
|
|
15088
|
+
export type PromptsRenderSkillVersionResponse = PromptsRenderSkillVersionResponses[keyof PromptsRenderSkillVersionResponses];
|
|
15089
|
+
|
|
15060
15090
|
export type PromptsGetPromptDirectorySummaryData = {
|
|
15061
15091
|
body?: never;
|
|
15062
15092
|
path: {
|
|
15063
15093
|
projectId: string;
|
|
15064
15094
|
};
|
|
15065
|
-
query?:
|
|
15095
|
+
query?: {
|
|
15096
|
+
kind?: string | null;
|
|
15097
|
+
};
|
|
15066
15098
|
url: '/v1/projects/{projectId}/prompts/summary';
|
|
15067
15099
|
};
|
|
15068
15100
|
|
|
@@ -15372,6 +15404,7 @@ export type PromptsUpdatePromptData = {
|
|
|
15372
15404
|
body: {
|
|
15373
15405
|
description?: string | null | null;
|
|
15374
15406
|
name?: string | null;
|
|
15407
|
+
slug?: string | null;
|
|
15375
15408
|
status?: 'active' | 'archived' | null;
|
|
15376
15409
|
tags?: Array<string> | null;
|
|
15377
15410
|
};
|
|
@@ -15471,6 +15504,104 @@ export type PromptsUpdatePromptResponses = {
|
|
|
15471
15504
|
|
|
15472
15505
|
export type PromptsUpdatePromptResponse = PromptsUpdatePromptResponses[keyof PromptsUpdatePromptResponses];
|
|
15473
15506
|
|
|
15507
|
+
export type PromptsImportPromptVersionData = {
|
|
15508
|
+
body: ImportPromptVersionInput;
|
|
15509
|
+
path: {
|
|
15510
|
+
projectId: string;
|
|
15511
|
+
promptId: string;
|
|
15512
|
+
};
|
|
15513
|
+
query?: never;
|
|
15514
|
+
url: '/v1/projects/{projectId}/prompts/{promptId}/imports';
|
|
15515
|
+
};
|
|
15516
|
+
|
|
15517
|
+
export type PromptsImportPromptVersionErrors = {
|
|
15518
|
+
/**
|
|
15519
|
+
* BadRequestError
|
|
15520
|
+
*/
|
|
15521
|
+
400: BadRequestError;
|
|
15522
|
+
/**
|
|
15523
|
+
* UnauthorizedError
|
|
15524
|
+
*/
|
|
15525
|
+
401: UnauthorizedError;
|
|
15526
|
+
/**
|
|
15527
|
+
* ForbiddenError
|
|
15528
|
+
*/
|
|
15529
|
+
403: ForbiddenError;
|
|
15530
|
+
/**
|
|
15531
|
+
* NotFoundError
|
|
15532
|
+
*/
|
|
15533
|
+
404: NotFoundError;
|
|
15534
|
+
/**
|
|
15535
|
+
* ConflictError
|
|
15536
|
+
*/
|
|
15537
|
+
409: ConflictError;
|
|
15538
|
+
/**
|
|
15539
|
+
* GoneError
|
|
15540
|
+
*/
|
|
15541
|
+
410: GoneError;
|
|
15542
|
+
/**
|
|
15543
|
+
* ContentTooLargeError
|
|
15544
|
+
*/
|
|
15545
|
+
413: ContentTooLargeError;
|
|
15546
|
+
/**
|
|
15547
|
+
* MisdirectedRequestError
|
|
15548
|
+
*/
|
|
15549
|
+
421: MisdirectedRequestError;
|
|
15550
|
+
/**
|
|
15551
|
+
* UnprocessableEntityError
|
|
15552
|
+
*/
|
|
15553
|
+
422: UnprocessableEntityError;
|
|
15554
|
+
/**
|
|
15555
|
+
* TooManyRequestsError
|
|
15556
|
+
*/
|
|
15557
|
+
429: TooManyRequestsError;
|
|
15558
|
+
/**
|
|
15559
|
+
* InternalServerError
|
|
15560
|
+
*/
|
|
15561
|
+
500: InternalServerError;
|
|
15562
|
+
/**
|
|
15563
|
+
* ServiceUnavailableError
|
|
15564
|
+
*/
|
|
15565
|
+
503: ServiceUnavailableError;
|
|
15566
|
+
};
|
|
15567
|
+
|
|
15568
|
+
export type PromptsImportPromptVersionError = PromptsImportPromptVersionErrors[keyof PromptsImportPromptVersionErrors];
|
|
15569
|
+
|
|
15570
|
+
export type PromptsImportPromptVersionResponses = {
|
|
15571
|
+
/**
|
|
15572
|
+
* Success
|
|
15573
|
+
*/
|
|
15574
|
+
201: {
|
|
15575
|
+
code: number;
|
|
15576
|
+
data: PromptVersion | null;
|
|
15577
|
+
error: {
|
|
15578
|
+
code: string;
|
|
15579
|
+
details?: unknown | null;
|
|
15580
|
+
message: string;
|
|
15581
|
+
rowErrors?: Array<{
|
|
15582
|
+
code: string;
|
|
15583
|
+
message: string;
|
|
15584
|
+
path: Array<string | number>;
|
|
15585
|
+
}> | null;
|
|
15586
|
+
} | null;
|
|
15587
|
+
pagination: {
|
|
15588
|
+
limit: number;
|
|
15589
|
+
page: number;
|
|
15590
|
+
total: number;
|
|
15591
|
+
totalPages: number;
|
|
15592
|
+
} | null;
|
|
15593
|
+
sdkBehavior?: {
|
|
15594
|
+
flags: {
|
|
15595
|
+
[key: string]: unknown;
|
|
15596
|
+
};
|
|
15597
|
+
v: number;
|
|
15598
|
+
} | null;
|
|
15599
|
+
success: boolean;
|
|
15600
|
+
};
|
|
15601
|
+
};
|
|
15602
|
+
|
|
15603
|
+
export type PromptsImportPromptVersionResponse = PromptsImportPromptVersionResponses[keyof PromptsImportPromptVersionResponses];
|
|
15604
|
+
|
|
15474
15605
|
export type PromptsListPromptLabelEventsByPromptData = {
|
|
15475
15606
|
body?: never;
|
|
15476
15607
|
path: {
|
|
@@ -16225,7 +16356,7 @@ export type PromptsCreatePromptVersionData = {
|
|
|
16225
16356
|
allowBlockRemovals?: Array<string> | null;
|
|
16226
16357
|
baseVersionId?: string | null;
|
|
16227
16358
|
changelog?: string | null;
|
|
16228
|
-
format: 'text' | 'chat';
|
|
16359
|
+
format: 'text' | 'chat' | 'skill';
|
|
16229
16360
|
modelConfig?: unknown | null;
|
|
16230
16361
|
templateJson: unknown;
|
|
16231
16362
|
variablesSchema?: unknown | null;
|
|
@@ -16483,7 +16614,7 @@ export type PromptsGetPromptVersionDiffResponses = {
|
|
|
16483
16614
|
op: 'reorder';
|
|
16484
16615
|
toIndex: number;
|
|
16485
16616
|
}>;
|
|
16486
|
-
} | null;
|
|
16617
|
+
} | SkillVersionDiff | null;
|
|
16487
16618
|
error: {
|
|
16488
16619
|
code: string;
|
|
16489
16620
|
details?: unknown | null;
|
|
@@ -19477,6 +19608,7 @@ export type RoutingProvidersCreateRoutingProviderResponse = RoutingProvidersCrea
|
|
|
19477
19608
|
|
|
19478
19609
|
export type RoutingProvidersConnectRoutingProviderData = {
|
|
19479
19610
|
body: {
|
|
19611
|
+
blockedModels?: Array<string> | null;
|
|
19480
19612
|
credential: {
|
|
19481
19613
|
apiKey: string;
|
|
19482
19614
|
label?: string | null;
|
|
@@ -19506,6 +19638,7 @@ export type RoutingProvidersConnectRoutingProviderData = {
|
|
|
19506
19638
|
credentialId: string;
|
|
19507
19639
|
type: 'existing';
|
|
19508
19640
|
};
|
|
19641
|
+
modelPolicy?: 'allowlist' | 'denylist' | null;
|
|
19509
19642
|
models: Array<string>;
|
|
19510
19643
|
provider: {
|
|
19511
19644
|
apiVersion?: string | null;
|
|
@@ -21481,7 +21614,9 @@ export type ProviderConfigDraftsUpdateProviderDraftData = {
|
|
|
21481
21614
|
body: {
|
|
21482
21615
|
configSnapshotPatch: {
|
|
21483
21616
|
baseUrl?: string | null | null;
|
|
21617
|
+
blockedModels?: Array<string> | null | null;
|
|
21484
21618
|
customModelIds?: Array<string> | null | null;
|
|
21619
|
+
modelPolicy?: 'allowlist' | 'denylist' | null | null;
|
|
21485
21620
|
models?: Array<string> | null | null;
|
|
21486
21621
|
passthroughMode?: 'managed_precedence' | 'caller_precedence' | 'disabled' | null | null;
|
|
21487
21622
|
providerRegion?: string | null | null;
|
|
@@ -26856,6 +26991,7 @@ export type ProjectsListProjectsResponses = {
|
|
|
26856
26991
|
status: 'active' | 'archived' | 'deleted';
|
|
26857
26992
|
updatedAt: string;
|
|
26858
26993
|
workspaceId: string;
|
|
26994
|
+
workspaceSlug: string;
|
|
26859
26995
|
}> | null;
|
|
26860
26996
|
error: {
|
|
26861
26997
|
code: string;
|
|
@@ -26967,6 +27103,7 @@ export type ProjectsCreateProjectResponses = {
|
|
|
26967
27103
|
status: 'active' | 'archived' | 'deleted';
|
|
26968
27104
|
updatedAt: string;
|
|
26969
27105
|
workspaceId: string;
|
|
27106
|
+
workspaceSlug: string;
|
|
26970
27107
|
} | null;
|
|
26971
27108
|
error: {
|
|
26972
27109
|
code: string;
|