@to11ai/sdk 3.0.0-rc.10 → 3.0.0-rc.12
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 -1
- package/dist/generated/types.gen.d.ts +178 -94
- package/dist/generated/zod.gen.d.ts +373 -286
- package/dist/projectEnvironments/resource.cjs +20 -2
- package/dist/projectEnvironments/resource.d.ts +21 -5
- package/dist/projectEnvironments/resource.js +20 -2
- package/dist/projectEnvironments/types.d.ts +14 -1
- package/dist/prompts/resource.cjs +19 -3
- package/dist/prompts/resource.d.ts +14 -2
- package/dist/prompts/resource.js +24 -4
- package/dist/prompts/types.d.ts +11 -1
- package/dist/routingRules/resource.d.ts +44 -2
- package/dist/routingRules/types.d.ts +33 -3
- package/package.json +1 -1
- package/src/generated/types.gen.ts +178 -94
- package/src/generated/zod.gen.ts +203 -109
- package/src/projectEnvironments/resource.ts +44 -9
- package/src/projectEnvironments/types.ts +19 -1
- package/src/prompts/resource.ts +44 -3
- package/src/prompts/types.ts +12 -1
- package/src/routingRules/resource.ts +77 -5
- package/src/routingRules/types.ts +35 -3
package/README.md
CHANGED
|
@@ -117,7 +117,7 @@ const to11 = createClient({ apiKey, projectId: "proj_abc123" });
|
|
|
117
117
|
await to11.prompts.list(); // uses the bound projectId
|
|
118
118
|
await to11.prompts.get({ promptId: "prompt_1" });
|
|
119
119
|
await to11.prompts.getVersion({ promptId: "prompt_1", versionNumber: 3 });
|
|
120
|
-
await to11.prompts.listLabels({ promptId: "prompt_1" }); // [{ label: "latest", versionId: "ver_9", … }]
|
|
120
|
+
await to11.prompts.listLabels({ promptId: "prompt_1" }); // { items: [{ label: "latest", versionId: "ver_9", … }], pagination }
|
|
121
121
|
```
|
|
122
122
|
|
|
123
123
|
`listVersions` pages a prompt's versions newest first and returns summaries — `id`, `version`, `format`, `changelog`, who created it and when — without the content. Pass `pagination.nextCursor` back as `cursor` for the next page (`null` on the last one); `limit` defaults to 50 and clamps to 100. Read one version's `templateJson`, `variablesSchema` and `modelConfig` with `getVersion`:
|
|
@@ -176,7 +176,6 @@ export type ProjectEnvironment = {
|
|
|
176
176
|
* @deprecated Always `false`. To be removed.
|
|
177
177
|
*/
|
|
178
178
|
isPointer?: boolean | null;
|
|
179
|
-
isProduction: boolean;
|
|
180
179
|
isSystem: boolean;
|
|
181
180
|
name: string;
|
|
182
181
|
projectId: string;
|
|
@@ -2157,7 +2156,7 @@ export type ApiKeysGetApiKeyAuditData = {
|
|
|
2157
2156
|
};
|
|
2158
2157
|
query?: {
|
|
2159
2158
|
cursor?: string | null;
|
|
2160
|
-
limit?:
|
|
2159
|
+
limit?: number | null;
|
|
2161
2160
|
eventType?: string | null;
|
|
2162
2161
|
};
|
|
2163
2162
|
url: '/v1/api-keys/{id}/audit';
|
|
@@ -2220,7 +2219,7 @@ export type ApiKeysGetApiKeyAuditResponses = {
|
|
|
2220
2219
|
200: {
|
|
2221
2220
|
code: number;
|
|
2222
2221
|
data: {
|
|
2223
|
-
|
|
2222
|
+
items: Array<{
|
|
2224
2223
|
apiKeyId: string;
|
|
2225
2224
|
environment: string;
|
|
2226
2225
|
event: string;
|
|
@@ -2231,7 +2230,10 @@ export type ApiKeysGetApiKeyAuditResponses = {
|
|
|
2231
2230
|
traceId: string;
|
|
2232
2231
|
workspaceId: string | null;
|
|
2233
2232
|
}>;
|
|
2234
|
-
|
|
2233
|
+
pagination: {
|
|
2234
|
+
limit: number;
|
|
2235
|
+
nextCursor: string | null;
|
|
2236
|
+
};
|
|
2235
2237
|
} | null;
|
|
2236
2238
|
error: {
|
|
2237
2239
|
code: string;
|
|
@@ -9834,8 +9836,8 @@ export type ProjectAuditListProjectAuditEventsData = {
|
|
|
9834
9836
|
event_type?: string | null;
|
|
9835
9837
|
since?: string | null;
|
|
9836
9838
|
until?: string | null;
|
|
9837
|
-
limit?: string | null;
|
|
9838
9839
|
cursor?: string | null;
|
|
9840
|
+
limit?: number | null;
|
|
9839
9841
|
};
|
|
9840
9842
|
url: '/v1/projects/{projectId}/audit';
|
|
9841
9843
|
};
|
|
@@ -9922,6 +9924,7 @@ export type ProjectAuditListProjectAuditEventsResponses = {
|
|
|
9922
9924
|
scheduledBy: string | null;
|
|
9923
9925
|
}>;
|
|
9924
9926
|
pagination: {
|
|
9927
|
+
limit: number;
|
|
9925
9928
|
nextCursor: string | null;
|
|
9926
9929
|
};
|
|
9927
9930
|
} | null;
|
|
@@ -10067,8 +10070,8 @@ export type CredentialsDirectoryListProjectCredentialsDirectoryData = {
|
|
|
10067
10070
|
catalog_id?: string | null;
|
|
10068
10071
|
lifecycle_status?: 'active' | 'deleted' | null;
|
|
10069
10072
|
attached_provider_count?: '0' | '1' | '2+' | null;
|
|
10070
|
-
limit?: string | null;
|
|
10071
10073
|
cursor?: string | null;
|
|
10074
|
+
limit?: number | null;
|
|
10072
10075
|
};
|
|
10073
10076
|
url: '/v1/projects/{projectId}/credentials';
|
|
10074
10077
|
};
|
|
@@ -10163,6 +10166,7 @@ export type CredentialsDirectoryListProjectCredentialsDirectoryResponses = {
|
|
|
10163
10166
|
projectId: string;
|
|
10164
10167
|
}>;
|
|
10165
10168
|
pagination: {
|
|
10169
|
+
limit: number;
|
|
10166
10170
|
nextCursor: string | null;
|
|
10167
10171
|
};
|
|
10168
10172
|
} | null;
|
|
@@ -10199,8 +10203,8 @@ export type CredentialAuditGetCredentialAuditData = {
|
|
|
10199
10203
|
credentialId: string;
|
|
10200
10204
|
};
|
|
10201
10205
|
query?: {
|
|
10202
|
-
|
|
10203
|
-
|
|
10206
|
+
cursor?: string | null;
|
|
10207
|
+
limit?: number | null;
|
|
10204
10208
|
actorId?: string | null;
|
|
10205
10209
|
eventType?: string | null;
|
|
10206
10210
|
};
|
|
@@ -10264,7 +10268,7 @@ export type CredentialAuditGetCredentialAuditResponses = {
|
|
|
10264
10268
|
200: {
|
|
10265
10269
|
code: number;
|
|
10266
10270
|
data: {
|
|
10267
|
-
|
|
10271
|
+
items: Array<{
|
|
10268
10272
|
actorId: string;
|
|
10269
10273
|
actorType: string;
|
|
10270
10274
|
afterState: unknown | null;
|
|
@@ -10281,7 +10285,10 @@ export type CredentialAuditGetCredentialAuditResponses = {
|
|
|
10281
10285
|
scheduledAt: string | null;
|
|
10282
10286
|
scheduledBy: string | null;
|
|
10283
10287
|
}>;
|
|
10284
|
-
|
|
10288
|
+
pagination: {
|
|
10289
|
+
limit: number;
|
|
10290
|
+
nextCursor: string | null;
|
|
10291
|
+
};
|
|
10285
10292
|
} | null;
|
|
10286
10293
|
error: {
|
|
10287
10294
|
code: string;
|
|
@@ -10723,7 +10730,7 @@ export type ProjectEnvironmentsListProjectEnvironmentsData = {
|
|
|
10723
10730
|
};
|
|
10724
10731
|
query?: {
|
|
10725
10732
|
includeArchived?: 'true' | 'false' | null;
|
|
10726
|
-
|
|
10733
|
+
cursor?: string | null;
|
|
10727
10734
|
limit?: number | null;
|
|
10728
10735
|
};
|
|
10729
10736
|
url: '/v1/projects/{projectId}/environments';
|
|
@@ -10785,7 +10792,13 @@ export type ProjectEnvironmentsListProjectEnvironmentsResponses = {
|
|
|
10785
10792
|
*/
|
|
10786
10793
|
200: {
|
|
10787
10794
|
code: number;
|
|
10788
|
-
data:
|
|
10795
|
+
data: {
|
|
10796
|
+
items: Array<ProjectEnvironment>;
|
|
10797
|
+
pagination: {
|
|
10798
|
+
limit: number;
|
|
10799
|
+
nextCursor: string | null;
|
|
10800
|
+
};
|
|
10801
|
+
} | null;
|
|
10789
10802
|
error: {
|
|
10790
10803
|
code: string;
|
|
10791
10804
|
details?: unknown | null;
|
|
@@ -10818,7 +10831,6 @@ export type ProjectEnvironmentsCreateProjectEnvironmentData = {
|
|
|
10818
10831
|
description?: string | null | null;
|
|
10819
10832
|
isDefault?: boolean | null;
|
|
10820
10833
|
isGatewayFallback?: boolean | null;
|
|
10821
|
-
isProduction?: boolean | null;
|
|
10822
10834
|
name: string;
|
|
10823
10835
|
slug: string;
|
|
10824
10836
|
sortOrder?: number | null;
|
|
@@ -11032,7 +11044,6 @@ export type ProjectEnvironmentsUpdateProjectEnvironmentData = {
|
|
|
11032
11044
|
description?: string | null | null;
|
|
11033
11045
|
isDefault?: boolean | null;
|
|
11034
11046
|
isGatewayFallback?: boolean | null;
|
|
11035
|
-
isProduction?: boolean | null;
|
|
11036
11047
|
name?: string | null;
|
|
11037
11048
|
slug?: string | null;
|
|
11038
11049
|
sortOrder?: number | null;
|
|
@@ -11413,7 +11424,7 @@ export type ApiKeysListApiKeysProjectData = {
|
|
|
11413
11424
|
projectId: string;
|
|
11414
11425
|
};
|
|
11415
11426
|
query?: {
|
|
11416
|
-
|
|
11427
|
+
cursor?: string | null;
|
|
11417
11428
|
limit?: number | null;
|
|
11418
11429
|
};
|
|
11419
11430
|
url: '/v1/projects/{projectId}/keys';
|
|
@@ -11475,17 +11486,33 @@ export type ApiKeysListApiKeysProjectResponses = {
|
|
|
11475
11486
|
*/
|
|
11476
11487
|
200: {
|
|
11477
11488
|
code: number;
|
|
11478
|
-
data:
|
|
11479
|
-
|
|
11480
|
-
|
|
11481
|
-
|
|
11482
|
-
|
|
11483
|
-
|
|
11484
|
-
|
|
11485
|
-
|
|
11486
|
-
|
|
11487
|
-
|
|
11488
|
-
|
|
11489
|
+
data: {
|
|
11490
|
+
items: Array<{
|
|
11491
|
+
createdAt: string;
|
|
11492
|
+
createdBy: string | null;
|
|
11493
|
+
environment: 'live' | 'test';
|
|
11494
|
+
expiresAt: string | null;
|
|
11495
|
+
graceExpiresAt: string | null;
|
|
11496
|
+
id: string;
|
|
11497
|
+
ipAllowlist: Array<string>;
|
|
11498
|
+
keyPreview: string;
|
|
11499
|
+
name: string;
|
|
11500
|
+
orgId: string | null;
|
|
11501
|
+
prefix: string;
|
|
11502
|
+
projectId: string | null;
|
|
11503
|
+
revokedAt: string | null;
|
|
11504
|
+
rotatedFromId: string | null;
|
|
11505
|
+
rotatedToId: string | null;
|
|
11506
|
+
scopeTier: 'platform' | 'org' | 'workspace' | 'project';
|
|
11507
|
+
scopes: Array<string>;
|
|
11508
|
+
status: 'active' | 'revoked' | 'rotating' | 'expired';
|
|
11509
|
+
workspaceId: string | null;
|
|
11510
|
+
}>;
|
|
11511
|
+
pagination: {
|
|
11512
|
+
limit: number;
|
|
11513
|
+
nextCursor: string | null;
|
|
11514
|
+
};
|
|
11515
|
+
} | null;
|
|
11489
11516
|
error: {
|
|
11490
11517
|
code: string;
|
|
11491
11518
|
details?: unknown | null;
|
|
@@ -11975,7 +12002,7 @@ export type CostRatesGetEffectiveCostRatesData = {
|
|
|
11975
12002
|
provider?: string | null;
|
|
11976
12003
|
model?: string | null;
|
|
11977
12004
|
asOf?: string | null;
|
|
11978
|
-
|
|
12005
|
+
cursor?: string | null;
|
|
11979
12006
|
limit?: number | null;
|
|
11980
12007
|
};
|
|
11981
12008
|
url: '/v1/projects/{projectId}/llm-cost-rates/effective';
|
|
@@ -12037,20 +12064,26 @@ export type CostRatesGetEffectiveCostRatesResponses = {
|
|
|
12037
12064
|
*/
|
|
12038
12065
|
200: {
|
|
12039
12066
|
code: number;
|
|
12040
|
-
data:
|
|
12041
|
-
|
|
12042
|
-
|
|
12043
|
-
|
|
12044
|
-
|
|
12045
|
-
|
|
12046
|
-
|
|
12047
|
-
|
|
12048
|
-
|
|
12049
|
-
|
|
12050
|
-
|
|
12051
|
-
|
|
12052
|
-
|
|
12053
|
-
|
|
12067
|
+
data: {
|
|
12068
|
+
items: Array<{
|
|
12069
|
+
inputIncludesCacheCreation: boolean | null;
|
|
12070
|
+
inputIncludesCacheRead: boolean | null;
|
|
12071
|
+
matchType: 'exact' | 'prefix';
|
|
12072
|
+
modelMatch: string;
|
|
12073
|
+
outputIncludesReasoning: boolean | null;
|
|
12074
|
+
pricePerMillion: number;
|
|
12075
|
+
provider: string;
|
|
12076
|
+
source: 'builtin' | 'organization' | 'workspace' | 'project';
|
|
12077
|
+
tierMaxTokens: number | null;
|
|
12078
|
+
tierMinTokens: number | null;
|
|
12079
|
+
tokenType: 'input' | 'output' | 'cache_read' | 'cache_creation' | 'cache_creation_5m' | 'cache_creation_1h' | 'reasoning';
|
|
12080
|
+
validFrom: string;
|
|
12081
|
+
}>;
|
|
12082
|
+
pagination: {
|
|
12083
|
+
limit: number;
|
|
12084
|
+
nextCursor: string | null;
|
|
12085
|
+
};
|
|
12086
|
+
} | null;
|
|
12054
12087
|
error: {
|
|
12055
12088
|
code: string;
|
|
12056
12089
|
details?: unknown | null;
|
|
@@ -13982,7 +14015,7 @@ export type PromptsListPromptLabelsData = {
|
|
|
13982
14015
|
promptId: string;
|
|
13983
14016
|
};
|
|
13984
14017
|
query?: {
|
|
13985
|
-
|
|
14018
|
+
cursor?: string | null;
|
|
13986
14019
|
limit?: number | null;
|
|
13987
14020
|
};
|
|
13988
14021
|
url: '/v1/projects/{projectId}/prompts/{promptId}/labels';
|
|
@@ -14044,7 +14077,13 @@ export type PromptsListPromptLabelsResponses = {
|
|
|
14044
14077
|
*/
|
|
14045
14078
|
200: {
|
|
14046
14079
|
code: number;
|
|
14047
|
-
data:
|
|
14080
|
+
data: {
|
|
14081
|
+
items: Array<PromptLabelPointer>;
|
|
14082
|
+
pagination: {
|
|
14083
|
+
limit: number;
|
|
14084
|
+
nextCursor: string | null;
|
|
14085
|
+
};
|
|
14086
|
+
} | null;
|
|
14048
14087
|
error: {
|
|
14049
14088
|
code: string;
|
|
14050
14089
|
details?: unknown | null;
|
|
@@ -15105,7 +15144,7 @@ export type CredentialAttachmentsListEligibleCredentialsData = {
|
|
|
15105
15144
|
providerId: string;
|
|
15106
15145
|
};
|
|
15107
15146
|
query?: {
|
|
15108
|
-
|
|
15147
|
+
cursor?: string | null;
|
|
15109
15148
|
limit?: number | null;
|
|
15110
15149
|
};
|
|
15111
15150
|
url: '/v1/projects/{projectId}/providers/{providerId}/eligible-credentials';
|
|
@@ -15167,14 +15206,20 @@ export type CredentialAttachmentsListEligibleCredentialsResponses = {
|
|
|
15167
15206
|
*/
|
|
15168
15207
|
200: {
|
|
15169
15208
|
code: number;
|
|
15170
|
-
data:
|
|
15171
|
-
|
|
15172
|
-
|
|
15173
|
-
|
|
15174
|
-
|
|
15175
|
-
|
|
15176
|
-
|
|
15177
|
-
|
|
15209
|
+
data: {
|
|
15210
|
+
items: Array<{
|
|
15211
|
+
createdAt: string;
|
|
15212
|
+
credentialType: string;
|
|
15213
|
+
id: string;
|
|
15214
|
+
keyLast4: string;
|
|
15215
|
+
label: string | null;
|
|
15216
|
+
providerCatalogId: string;
|
|
15217
|
+
}>;
|
|
15218
|
+
pagination: {
|
|
15219
|
+
limit: number;
|
|
15220
|
+
nextCursor: string | null;
|
|
15221
|
+
};
|
|
15222
|
+
} | null;
|
|
15178
15223
|
error: {
|
|
15179
15224
|
code: string;
|
|
15180
15225
|
details?: unknown | null;
|
|
@@ -17023,7 +17068,7 @@ export type RoutingMetricsGetRoutingProviderMetricsData = {
|
|
|
17023
17068
|
};
|
|
17024
17069
|
query?: {
|
|
17025
17070
|
window?: string | null;
|
|
17026
|
-
|
|
17071
|
+
cursor?: string | null;
|
|
17027
17072
|
limit?: number | null;
|
|
17028
17073
|
};
|
|
17029
17074
|
url: '/v1/projects/{projectId}/routing/providers/metrics';
|
|
@@ -17085,17 +17130,23 @@ export type RoutingMetricsGetRoutingProviderMetricsResponses = {
|
|
|
17085
17130
|
*/
|
|
17086
17131
|
200: {
|
|
17087
17132
|
code: number;
|
|
17088
|
-
data:
|
|
17089
|
-
|
|
17090
|
-
|
|
17091
|
-
|
|
17092
|
-
|
|
17093
|
-
|
|
17094
|
-
|
|
17095
|
-
|
|
17096
|
-
|
|
17097
|
-
|
|
17098
|
-
|
|
17133
|
+
data: {
|
|
17134
|
+
items: Array<{
|
|
17135
|
+
calls7dTotal: number;
|
|
17136
|
+
daily: Array<number>;
|
|
17137
|
+
errorCount: number;
|
|
17138
|
+
errorRate: number;
|
|
17139
|
+
latencyP50Ms: number | null;
|
|
17140
|
+
latencyP95Ms: number | null;
|
|
17141
|
+
providerId: string;
|
|
17142
|
+
requests: number;
|
|
17143
|
+
spend7dUsd: number | null;
|
|
17144
|
+
}>;
|
|
17145
|
+
pagination: {
|
|
17146
|
+
limit: number;
|
|
17147
|
+
nextCursor: string | null;
|
|
17148
|
+
};
|
|
17149
|
+
} | null;
|
|
17099
17150
|
error: {
|
|
17100
17151
|
code: string;
|
|
17101
17152
|
details?: unknown | null;
|
|
@@ -20038,7 +20089,7 @@ export type ProviderConfigVersionsListProviderConfigVersionsData = {
|
|
|
20038
20089
|
providerId: string;
|
|
20039
20090
|
};
|
|
20040
20091
|
query?: {
|
|
20041
|
-
|
|
20092
|
+
cursor?: string | null;
|
|
20042
20093
|
limit?: number | null;
|
|
20043
20094
|
};
|
|
20044
20095
|
url: '/v1/projects/{projectId}/routing/providers/{providerId}/versions';
|
|
@@ -20100,17 +20151,23 @@ export type ProviderConfigVersionsListProviderConfigVersionsResponses = {
|
|
|
20100
20151
|
*/
|
|
20101
20152
|
200: {
|
|
20102
20153
|
code: number;
|
|
20103
|
-
data:
|
|
20104
|
-
|
|
20105
|
-
|
|
20154
|
+
data: {
|
|
20155
|
+
items: Array<{
|
|
20156
|
+
configSnapshot: {
|
|
20157
|
+
[key: string]: unknown;
|
|
20158
|
+
};
|
|
20159
|
+
contentHash: string;
|
|
20160
|
+
createdAt: string;
|
|
20161
|
+
createdBy: string | null;
|
|
20162
|
+
id: string;
|
|
20163
|
+
liveInEnvSlugs: Array<string>;
|
|
20164
|
+
version: number;
|
|
20165
|
+
}>;
|
|
20166
|
+
pagination: {
|
|
20167
|
+
limit: number;
|
|
20168
|
+
nextCursor: string | null;
|
|
20106
20169
|
};
|
|
20107
|
-
|
|
20108
|
-
createdAt: string;
|
|
20109
|
-
createdBy: string | null;
|
|
20110
|
-
id: string;
|
|
20111
|
-
liveInEnvSlugs: Array<string>;
|
|
20112
|
-
version: number;
|
|
20113
|
-
}> | null;
|
|
20170
|
+
} | null;
|
|
20114
20171
|
error: {
|
|
20115
20172
|
code: string;
|
|
20116
20173
|
details?: unknown | null;
|
|
@@ -21171,7 +21228,8 @@ export type RuleReleasesListRuleReleasesData = {
|
|
|
21171
21228
|
};
|
|
21172
21229
|
query?: {
|
|
21173
21230
|
envSlug?: string | null;
|
|
21174
|
-
|
|
21231
|
+
cursor?: string | null;
|
|
21232
|
+
limit?: number | null;
|
|
21175
21233
|
};
|
|
21176
21234
|
url: '/v1/projects/{projectId}/routing/rules/{ruleId}/releases';
|
|
21177
21235
|
};
|
|
@@ -21232,7 +21290,13 @@ export type RuleReleasesListRuleReleasesResponses = {
|
|
|
21232
21290
|
*/
|
|
21233
21291
|
200: {
|
|
21234
21292
|
code: number;
|
|
21235
|
-
data:
|
|
21293
|
+
data: {
|
|
21294
|
+
items: Array<RuleRelease>;
|
|
21295
|
+
pagination: {
|
|
21296
|
+
limit: number;
|
|
21297
|
+
nextCursor: string | null;
|
|
21298
|
+
};
|
|
21299
|
+
} | null;
|
|
21236
21300
|
error: {
|
|
21237
21301
|
code: string;
|
|
21238
21302
|
details?: unknown | null;
|
|
@@ -21267,7 +21331,8 @@ export type RuleReleasesListRuleReleasesEnvData = {
|
|
|
21267
21331
|
envSlug: string;
|
|
21268
21332
|
};
|
|
21269
21333
|
query?: {
|
|
21270
|
-
|
|
21334
|
+
cursor?: string | null;
|
|
21335
|
+
limit?: number | null;
|
|
21271
21336
|
};
|
|
21272
21337
|
url: '/v1/projects/{projectId}/routing/rules/{ruleId}/releases/{envSlug}';
|
|
21273
21338
|
};
|
|
@@ -21328,7 +21393,13 @@ export type RuleReleasesListRuleReleasesEnvResponses = {
|
|
|
21328
21393
|
*/
|
|
21329
21394
|
200: {
|
|
21330
21395
|
code: number;
|
|
21331
|
-
data:
|
|
21396
|
+
data: {
|
|
21397
|
+
items: Array<RuleRelease>;
|
|
21398
|
+
pagination: {
|
|
21399
|
+
limit: number;
|
|
21400
|
+
nextCursor: string | null;
|
|
21401
|
+
};
|
|
21402
|
+
} | null;
|
|
21332
21403
|
error: {
|
|
21333
21404
|
code: string;
|
|
21334
21405
|
details?: unknown | null;
|
|
@@ -21893,7 +21964,7 @@ export type RuleVersionsListRuleVersionsData = {
|
|
|
21893
21964
|
};
|
|
21894
21965
|
query?: {
|
|
21895
21966
|
cursor?: string | null;
|
|
21896
|
-
limit?:
|
|
21967
|
+
limit?: number | null;
|
|
21897
21968
|
};
|
|
21898
21969
|
url: '/v1/projects/{projectId}/routing/rules/{ruleId}/versions';
|
|
21899
21970
|
};
|
|
@@ -21954,7 +22025,13 @@ export type RuleVersionsListRuleVersionsResponses = {
|
|
|
21954
22025
|
*/
|
|
21955
22026
|
200: {
|
|
21956
22027
|
code: number;
|
|
21957
|
-
data:
|
|
22028
|
+
data: {
|
|
22029
|
+
items: Array<RuleVersion>;
|
|
22030
|
+
pagination: {
|
|
22031
|
+
limit: number;
|
|
22032
|
+
nextCursor: string | null;
|
|
22033
|
+
};
|
|
22034
|
+
} | null;
|
|
21958
22035
|
error: {
|
|
21959
22036
|
code: string;
|
|
21960
22037
|
details?: unknown | null;
|
|
@@ -22185,7 +22262,7 @@ export type RoutingTargetsListRoutingTargetsData = {
|
|
|
22185
22262
|
projectId: string;
|
|
22186
22263
|
};
|
|
22187
22264
|
query?: {
|
|
22188
|
-
|
|
22265
|
+
cursor?: string | null;
|
|
22189
22266
|
limit?: number | null;
|
|
22190
22267
|
};
|
|
22191
22268
|
url: '/v1/projects/{projectId}/routing/targets';
|
|
@@ -22247,17 +22324,23 @@ export type RoutingTargetsListRoutingTargetsResponses = {
|
|
|
22247
22324
|
*/
|
|
22248
22325
|
200: {
|
|
22249
22326
|
code: number;
|
|
22250
|
-
data:
|
|
22251
|
-
|
|
22252
|
-
|
|
22253
|
-
|
|
22254
|
-
|
|
22255
|
-
|
|
22256
|
-
|
|
22257
|
-
|
|
22258
|
-
|
|
22259
|
-
|
|
22260
|
-
|
|
22327
|
+
data: {
|
|
22328
|
+
items: Array<{
|
|
22329
|
+
createdAt: string;
|
|
22330
|
+
credentialId: string | null;
|
|
22331
|
+
id: string;
|
|
22332
|
+
modelId: string;
|
|
22333
|
+
name: string;
|
|
22334
|
+
projectId: string;
|
|
22335
|
+
timeoutMs: number | null;
|
|
22336
|
+
updatedAt: string;
|
|
22337
|
+
weight: number | null;
|
|
22338
|
+
}>;
|
|
22339
|
+
pagination: {
|
|
22340
|
+
limit: number;
|
|
22341
|
+
nextCursor: string | null;
|
|
22342
|
+
};
|
|
22343
|
+
} | null;
|
|
22261
22344
|
error: {
|
|
22262
22345
|
code: string;
|
|
22263
22346
|
details?: unknown | null;
|
|
@@ -22709,8 +22792,8 @@ export type ScheduledChangesListScheduledChangesData = {
|
|
|
22709
22792
|
provider_id?: string | null;
|
|
22710
22793
|
kind?: 'provider_activation' | 'credential_rotation' | 'credential_delete' | 'credential_restore' | 'config_edit' | null;
|
|
22711
22794
|
status?: 'pending' | 'pending_approval' | 'approved' | 'rejected' | 'cancelled' | null;
|
|
22712
|
-
limit?: string | null;
|
|
22713
22795
|
cursor?: string | null;
|
|
22796
|
+
limit?: number | null;
|
|
22714
22797
|
};
|
|
22715
22798
|
url: '/v1/projects/{projectId}/scheduled-changes';
|
|
22716
22799
|
};
|
|
@@ -22796,6 +22879,7 @@ export type ScheduledChangesListScheduledChangesResponses = {
|
|
|
22796
22879
|
status: 'pending' | 'pending_approval' | 'approved' | 'rejected' | 'cancelled';
|
|
22797
22880
|
}>;
|
|
22798
22881
|
pagination: {
|
|
22882
|
+
limit: number;
|
|
22799
22883
|
nextCursor: string | null;
|
|
22800
22884
|
};
|
|
22801
22885
|
} | null;
|