cloudflare/cloudflare-typescript
Publicmirrored from https://github.com/cloudflare/cloudflare-typescriptAvailable
src/resources/ai-gateway/dynamic-routing.ts
2348lines · modecode
| 1 | // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. |
| 2 | |
| 3 | import { APIResource } from '../../resource'; |
| 4 | import * as Core from '../../core'; |
| 5 | |
| 6 | export class DynamicRouting extends APIResource { |
| 7 | /** |
| 8 | * Create a new AI Gateway Dynamic Route. |
| 9 | * |
| 10 | * @example |
| 11 | * ```ts |
| 12 | * const dynamicRouting = |
| 13 | * await client.aiGateway.dynamicRouting.create('54442216', { |
| 14 | * account_id: '0d37909e38d3e99c29fa2cd343ac421a', |
| 15 | * elements: [ |
| 16 | * { |
| 17 | * id: 'id', |
| 18 | * outputs: { next: { elementId: 'elementId' } }, |
| 19 | * type: 'start', |
| 20 | * }, |
| 21 | * ], |
| 22 | * name: 'name', |
| 23 | * }); |
| 24 | * ``` |
| 25 | */ |
| 26 | create( |
| 27 | gatewayId: string, |
| 28 | params: DynamicRoutingCreateParams, |
| 29 | options?: Core.RequestOptions, |
| 30 | ): Core.APIPromise<DynamicRoutingCreateResponse> { |
| 31 | const { account_id, ...body } = params; |
| 32 | return ( |
| 33 | this._client.post(`/accounts/${account_id}/ai-gateway/gateways/${gatewayId}/routes`, { |
| 34 | body, |
| 35 | ...options, |
| 36 | }) as Core.APIPromise<{ result: DynamicRoutingCreateResponse }> |
| 37 | )._thenUnwrap((obj) => obj.result); |
| 38 | } |
| 39 | |
| 40 | /** |
| 41 | * Update an AI Gateway Dynamic Route. |
| 42 | * |
| 43 | * @example |
| 44 | * ```ts |
| 45 | * const dynamicRouting = |
| 46 | * await client.aiGateway.dynamicRouting.update( |
| 47 | * '54442216', |
| 48 | * '54442216', |
| 49 | * { |
| 50 | * account_id: '0d37909e38d3e99c29fa2cd343ac421a', |
| 51 | * name: 'Route Name', |
| 52 | * }, |
| 53 | * ); |
| 54 | * ``` |
| 55 | */ |
| 56 | update( |
| 57 | gatewayId: string, |
| 58 | id: string, |
| 59 | params: DynamicRoutingUpdateParams, |
| 60 | options?: Core.RequestOptions, |
| 61 | ): Core.APIPromise<DynamicRoutingUpdateResponse> { |
| 62 | const { account_id, ...body } = params; |
| 63 | return this._client.patch(`/accounts/${account_id}/ai-gateway/gateways/${gatewayId}/routes/${id}`, { |
| 64 | body, |
| 65 | ...options, |
| 66 | }); |
| 67 | } |
| 68 | |
| 69 | /** |
| 70 | * List all AI Gateway Dynamic Routes. |
| 71 | * |
| 72 | * @example |
| 73 | * ```ts |
| 74 | * const dynamicRoutings = |
| 75 | * await client.aiGateway.dynamicRouting.list('54442216', { |
| 76 | * account_id: '0d37909e38d3e99c29fa2cd343ac421a', |
| 77 | * }); |
| 78 | * ``` |
| 79 | */ |
| 80 | list( |
| 81 | gatewayId: string, |
| 82 | params: DynamicRoutingListParams, |
| 83 | options?: Core.RequestOptions, |
| 84 | ): Core.APIPromise<DynamicRoutingListResponse> { |
| 85 | const { account_id } = params; |
| 86 | return this._client.get(`/accounts/${account_id}/ai-gateway/gateways/${gatewayId}/routes`, options); |
| 87 | } |
| 88 | |
| 89 | /** |
| 90 | * Delete an AI Gateway Dynamic Route. |
| 91 | * |
| 92 | * @example |
| 93 | * ```ts |
| 94 | * const dynamicRouting = |
| 95 | * await client.aiGateway.dynamicRouting.delete( |
| 96 | * '54442216', |
| 97 | * '54442216', |
| 98 | * { account_id: '0d37909e38d3e99c29fa2cd343ac421a' }, |
| 99 | * ); |
| 100 | * ``` |
| 101 | */ |
| 102 | delete( |
| 103 | gatewayId: string, |
| 104 | id: string, |
| 105 | params: DynamicRoutingDeleteParams, |
| 106 | options?: Core.RequestOptions, |
| 107 | ): Core.APIPromise<DynamicRoutingDeleteResponse> { |
| 108 | const { account_id } = params; |
| 109 | return ( |
| 110 | this._client.delete( |
| 111 | `/accounts/${account_id}/ai-gateway/gateways/${gatewayId}/routes/${id}`, |
| 112 | options, |
| 113 | ) as Core.APIPromise<{ result: DynamicRoutingDeleteResponse }> |
| 114 | )._thenUnwrap((obj) => obj.result); |
| 115 | } |
| 116 | |
| 117 | /** |
| 118 | * Create a new AI Gateway Dynamic Route Deployment. |
| 119 | * |
| 120 | * @example |
| 121 | * ```ts |
| 122 | * const response = |
| 123 | * await client.aiGateway.dynamicRouting.createDeployment( |
| 124 | * '54442216', |
| 125 | * '54442216', |
| 126 | * { |
| 127 | * account_id: '0d37909e38d3e99c29fa2cd343ac421a', |
| 128 | * version_id: '54442216', |
| 129 | * }, |
| 130 | * ); |
| 131 | * ``` |
| 132 | */ |
| 133 | createDeployment( |
| 134 | gatewayId: string, |
| 135 | id: string, |
| 136 | params: DynamicRoutingCreateDeploymentParams, |
| 137 | options?: Core.RequestOptions, |
| 138 | ): Core.APIPromise<DynamicRoutingCreateDeploymentResponse> { |
| 139 | const { account_id, ...body } = params; |
| 140 | return ( |
| 141 | this._client.post(`/accounts/${account_id}/ai-gateway/gateways/${gatewayId}/routes/${id}/deployments`, { |
| 142 | body, |
| 143 | ...options, |
| 144 | }) as Core.APIPromise<{ result: DynamicRoutingCreateDeploymentResponse }> |
| 145 | )._thenUnwrap((obj) => obj.result); |
| 146 | } |
| 147 | |
| 148 | /** |
| 149 | * Create a new AI Gateway Dynamic Route Version. |
| 150 | * |
| 151 | * @example |
| 152 | * ```ts |
| 153 | * const response = |
| 154 | * await client.aiGateway.dynamicRouting.createVersion( |
| 155 | * '54442216', |
| 156 | * '54442216', |
| 157 | * { |
| 158 | * account_id: '0d37909e38d3e99c29fa2cd343ac421a', |
| 159 | * elements: [ |
| 160 | * { |
| 161 | * id: 'id', |
| 162 | * outputs: { next: { elementId: 'elementId' } }, |
| 163 | * type: 'start', |
| 164 | * }, |
| 165 | * ], |
| 166 | * }, |
| 167 | * ); |
| 168 | * ``` |
| 169 | */ |
| 170 | createVersion( |
| 171 | gatewayId: string, |
| 172 | id: string, |
| 173 | params: DynamicRoutingCreateVersionParams, |
| 174 | options?: Core.RequestOptions, |
| 175 | ): Core.APIPromise<DynamicRoutingCreateVersionResponse> { |
| 176 | const { account_id, ...body } = params; |
| 177 | return ( |
| 178 | this._client.post(`/accounts/${account_id}/ai-gateway/gateways/${gatewayId}/routes/${id}/versions`, { |
| 179 | body, |
| 180 | ...options, |
| 181 | }) as Core.APIPromise<{ result: DynamicRoutingCreateVersionResponse }> |
| 182 | )._thenUnwrap((obj) => obj.result); |
| 183 | } |
| 184 | |
| 185 | /** |
| 186 | * Get an AI Gateway Dynamic Route. |
| 187 | * |
| 188 | * @example |
| 189 | * ```ts |
| 190 | * const dynamicRouting = |
| 191 | * await client.aiGateway.dynamicRouting.get( |
| 192 | * '54442216', |
| 193 | * '54442216', |
| 194 | * { account_id: '0d37909e38d3e99c29fa2cd343ac421a' }, |
| 195 | * ); |
| 196 | * ``` |
| 197 | */ |
| 198 | get( |
| 199 | gatewayId: string, |
| 200 | id: string, |
| 201 | params: DynamicRoutingGetParams, |
| 202 | options?: Core.RequestOptions, |
| 203 | ): Core.APIPromise<DynamicRoutingGetResponse> { |
| 204 | const { account_id } = params; |
| 205 | return ( |
| 206 | this._client.get( |
| 207 | `/accounts/${account_id}/ai-gateway/gateways/${gatewayId}/routes/${id}`, |
| 208 | options, |
| 209 | ) as Core.APIPromise<{ result: DynamicRoutingGetResponse }> |
| 210 | )._thenUnwrap((obj) => obj.result); |
| 211 | } |
| 212 | |
| 213 | /** |
| 214 | * Get an AI Gateway Dynamic Route Version. |
| 215 | * |
| 216 | * @example |
| 217 | * ```ts |
| 218 | * const response = |
| 219 | * await client.aiGateway.dynamicRouting.getVersion( |
| 220 | * '54442216', |
| 221 | * '54442216', |
| 222 | * '54442216', |
| 223 | * { account_id: '0d37909e38d3e99c29fa2cd343ac421a' }, |
| 224 | * ); |
| 225 | * ``` |
| 226 | */ |
| 227 | getVersion( |
| 228 | gatewayId: string, |
| 229 | id: string, |
| 230 | versionId: string, |
| 231 | params: DynamicRoutingGetVersionParams, |
| 232 | options?: Core.RequestOptions, |
| 233 | ): Core.APIPromise<DynamicRoutingGetVersionResponse> { |
| 234 | const { account_id } = params; |
| 235 | return ( |
| 236 | this._client.get( |
| 237 | `/accounts/${account_id}/ai-gateway/gateways/${gatewayId}/routes/${id}/versions/${versionId}`, |
| 238 | options, |
| 239 | ) as Core.APIPromise<{ result: DynamicRoutingGetVersionResponse }> |
| 240 | )._thenUnwrap((obj) => obj.result); |
| 241 | } |
| 242 | |
| 243 | /** |
| 244 | * List all AI Gateway Dynamic Route Deployments. |
| 245 | * |
| 246 | * @example |
| 247 | * ```ts |
| 248 | * const response = |
| 249 | * await client.aiGateway.dynamicRouting.listDeployments( |
| 250 | * '54442216', |
| 251 | * '54442216', |
| 252 | * { account_id: '0d37909e38d3e99c29fa2cd343ac421a' }, |
| 253 | * ); |
| 254 | * ``` |
| 255 | */ |
| 256 | listDeployments( |
| 257 | gatewayId: string, |
| 258 | id: string, |
| 259 | params: DynamicRoutingListDeploymentsParams, |
| 260 | options?: Core.RequestOptions, |
| 261 | ): Core.APIPromise<DynamicRoutingListDeploymentsResponse> { |
| 262 | const { account_id } = params; |
| 263 | return this._client.get( |
| 264 | `/accounts/${account_id}/ai-gateway/gateways/${gatewayId}/routes/${id}/deployments`, |
| 265 | options, |
| 266 | ); |
| 267 | } |
| 268 | |
| 269 | /** |
| 270 | * List all AI Gateway Dynamic Route Versions. |
| 271 | * |
| 272 | * @example |
| 273 | * ```ts |
| 274 | * const response = |
| 275 | * await client.aiGateway.dynamicRouting.listVersions( |
| 276 | * '54442216', |
| 277 | * '54442216', |
| 278 | * { account_id: '0d37909e38d3e99c29fa2cd343ac421a' }, |
| 279 | * ); |
| 280 | * ``` |
| 281 | */ |
| 282 | listVersions( |
| 283 | gatewayId: string, |
| 284 | id: string, |
| 285 | params: DynamicRoutingListVersionsParams, |
| 286 | options?: Core.RequestOptions, |
| 287 | ): Core.APIPromise<DynamicRoutingListVersionsResponse> { |
| 288 | const { account_id } = params; |
| 289 | return this._client.get( |
| 290 | `/accounts/${account_id}/ai-gateway/gateways/${gatewayId}/routes/${id}/versions`, |
| 291 | options, |
| 292 | ); |
| 293 | } |
| 294 | } |
| 295 | |
| 296 | export interface DynamicRoutingCreateResponse { |
| 297 | id: string; |
| 298 | |
| 299 | created_at: string; |
| 300 | |
| 301 | deployment: DynamicRoutingCreateResponse.Deployment; |
| 302 | |
| 303 | elements: Array< |
| 304 | | DynamicRoutingCreateResponse.UnionMember0 |
| 305 | | DynamicRoutingCreateResponse.UnionMember1 |
| 306 | | DynamicRoutingCreateResponse.UnionMember2 |
| 307 | | DynamicRoutingCreateResponse.UnionMember3 |
| 308 | | DynamicRoutingCreateResponse.UnionMember4 |
| 309 | | DynamicRoutingCreateResponse.UnionMember5 |
| 310 | >; |
| 311 | |
| 312 | gateway_id: string; |
| 313 | |
| 314 | modified_at: string; |
| 315 | |
| 316 | name: string; |
| 317 | |
| 318 | version: DynamicRoutingCreateResponse.Version; |
| 319 | } |
| 320 | |
| 321 | export namespace DynamicRoutingCreateResponse { |
| 322 | export interface Deployment { |
| 323 | created_at: string; |
| 324 | |
| 325 | deployment_id: string; |
| 326 | |
| 327 | version_id: string; |
| 328 | } |
| 329 | |
| 330 | export interface UnionMember0 { |
| 331 | id: string; |
| 332 | |
| 333 | outputs: UnionMember0.Outputs; |
| 334 | |
| 335 | type: 'start'; |
| 336 | } |
| 337 | |
| 338 | export namespace UnionMember0 { |
| 339 | export interface Outputs { |
| 340 | next: Outputs.Next; |
| 341 | } |
| 342 | |
| 343 | export namespace Outputs { |
| 344 | export interface Next { |
| 345 | elementId: string; |
| 346 | } |
| 347 | } |
| 348 | } |
| 349 | |
| 350 | export interface UnionMember1 { |
| 351 | id: string; |
| 352 | |
| 353 | outputs: UnionMember1.Outputs; |
| 354 | |
| 355 | properties: UnionMember1.Properties; |
| 356 | |
| 357 | type: 'conditional'; |
| 358 | } |
| 359 | |
| 360 | export namespace UnionMember1 { |
| 361 | export interface Outputs { |
| 362 | false: Outputs.False; |
| 363 | |
| 364 | true: Outputs.True; |
| 365 | } |
| 366 | |
| 367 | export namespace Outputs { |
| 368 | export interface False { |
| 369 | elementId: string; |
| 370 | } |
| 371 | |
| 372 | export interface True { |
| 373 | elementId: string; |
| 374 | } |
| 375 | } |
| 376 | |
| 377 | export interface Properties { |
| 378 | conditions?: unknown; |
| 379 | } |
| 380 | } |
| 381 | |
| 382 | export interface UnionMember2 { |
| 383 | id: string; |
| 384 | |
| 385 | outputs: { [key: string]: UnionMember2.Outputs }; |
| 386 | |
| 387 | type: 'percentage'; |
| 388 | } |
| 389 | |
| 390 | export namespace UnionMember2 { |
| 391 | export interface Outputs { |
| 392 | elementId: string; |
| 393 | } |
| 394 | } |
| 395 | |
| 396 | export interface UnionMember3 { |
| 397 | id: string; |
| 398 | |
| 399 | outputs: UnionMember3.Outputs; |
| 400 | |
| 401 | properties: UnionMember3.Properties; |
| 402 | |
| 403 | type: 'rate'; |
| 404 | } |
| 405 | |
| 406 | export namespace UnionMember3 { |
| 407 | export interface Outputs { |
| 408 | fallback: Outputs.Fallback; |
| 409 | |
| 410 | success: Outputs.Success; |
| 411 | } |
| 412 | |
| 413 | export namespace Outputs { |
| 414 | export interface Fallback { |
| 415 | elementId: string; |
| 416 | } |
| 417 | |
| 418 | export interface Success { |
| 419 | elementId: string; |
| 420 | } |
| 421 | } |
| 422 | |
| 423 | export interface Properties { |
| 424 | key: string; |
| 425 | |
| 426 | limit: number; |
| 427 | |
| 428 | limitType: 'count' | 'cost'; |
| 429 | |
| 430 | window: number; |
| 431 | } |
| 432 | } |
| 433 | |
| 434 | export interface UnionMember4 { |
| 435 | id: string; |
| 436 | |
| 437 | outputs: UnionMember4.Outputs; |
| 438 | |
| 439 | properties: UnionMember4.Properties; |
| 440 | |
| 441 | type: 'model'; |
| 442 | } |
| 443 | |
| 444 | export namespace UnionMember4 { |
| 445 | export interface Outputs { |
| 446 | fallback: Outputs.Fallback; |
| 447 | |
| 448 | success: Outputs.Success; |
| 449 | } |
| 450 | |
| 451 | export namespace Outputs { |
| 452 | export interface Fallback { |
| 453 | elementId: string; |
| 454 | } |
| 455 | |
| 456 | export interface Success { |
| 457 | elementId: string; |
| 458 | } |
| 459 | } |
| 460 | |
| 461 | export interface Properties { |
| 462 | model: string; |
| 463 | |
| 464 | provider: string; |
| 465 | |
| 466 | retries: number; |
| 467 | |
| 468 | timeout: number; |
| 469 | } |
| 470 | } |
| 471 | |
| 472 | export interface UnionMember5 { |
| 473 | id: string; |
| 474 | |
| 475 | outputs: { [key: string]: UnionMember5.Outputs }; |
| 476 | |
| 477 | type: 'end'; |
| 478 | } |
| 479 | |
| 480 | export namespace UnionMember5 { |
| 481 | export interface Outputs { |
| 482 | elementId: string; |
| 483 | } |
| 484 | } |
| 485 | |
| 486 | export interface Version { |
| 487 | active: 'true' | 'false'; |
| 488 | |
| 489 | created_at: string; |
| 490 | |
| 491 | data: string; |
| 492 | |
| 493 | version_id: string; |
| 494 | } |
| 495 | } |
| 496 | |
| 497 | export interface DynamicRoutingUpdateResponse { |
| 498 | route: DynamicRoutingUpdateResponse.Route; |
| 499 | |
| 500 | success: boolean; |
| 501 | } |
| 502 | |
| 503 | export namespace DynamicRoutingUpdateResponse { |
| 504 | export interface Route { |
| 505 | id: string; |
| 506 | |
| 507 | account_tag: string; |
| 508 | |
| 509 | created_at: string; |
| 510 | |
| 511 | deployment: Route.Deployment; |
| 512 | |
| 513 | elements: Array< |
| 514 | | Route.UnionMember0 |
| 515 | | Route.UnionMember1 |
| 516 | | Route.UnionMember2 |
| 517 | | Route.UnionMember3 |
| 518 | | Route.UnionMember4 |
| 519 | | Route.UnionMember5 |
| 520 | >; |
| 521 | |
| 522 | gateway_id: string; |
| 523 | |
| 524 | modified_at: string; |
| 525 | |
| 526 | name: string; |
| 527 | |
| 528 | version: Route.Version; |
| 529 | } |
| 530 | |
| 531 | export namespace Route { |
| 532 | export interface Deployment { |
| 533 | created_at: string; |
| 534 | |
| 535 | deployment_id: string; |
| 536 | |
| 537 | version_id: string; |
| 538 | } |
| 539 | |
| 540 | export interface UnionMember0 { |
| 541 | id: string; |
| 542 | |
| 543 | outputs: UnionMember0.Outputs; |
| 544 | |
| 545 | type: 'start'; |
| 546 | } |
| 547 | |
| 548 | export namespace UnionMember0 { |
| 549 | export interface Outputs { |
| 550 | next: Outputs.Next; |
| 551 | } |
| 552 | |
| 553 | export namespace Outputs { |
| 554 | export interface Next { |
| 555 | elementId: string; |
| 556 | } |
| 557 | } |
| 558 | } |
| 559 | |
| 560 | export interface UnionMember1 { |
| 561 | id: string; |
| 562 | |
| 563 | outputs: UnionMember1.Outputs; |
| 564 | |
| 565 | properties: UnionMember1.Properties; |
| 566 | |
| 567 | type: 'conditional'; |
| 568 | } |
| 569 | |
| 570 | export namespace UnionMember1 { |
| 571 | export interface Outputs { |
| 572 | false: Outputs.False; |
| 573 | |
| 574 | true: Outputs.True; |
| 575 | } |
| 576 | |
| 577 | export namespace Outputs { |
| 578 | export interface False { |
| 579 | elementId: string; |
| 580 | } |
| 581 | |
| 582 | export interface True { |
| 583 | elementId: string; |
| 584 | } |
| 585 | } |
| 586 | |
| 587 | export interface Properties { |
| 588 | conditions?: unknown; |
| 589 | } |
| 590 | } |
| 591 | |
| 592 | export interface UnionMember2 { |
| 593 | id: string; |
| 594 | |
| 595 | outputs: { [key: string]: UnionMember2.Outputs }; |
| 596 | |
| 597 | type: 'percentage'; |
| 598 | } |
| 599 | |
| 600 | export namespace UnionMember2 { |
| 601 | export interface Outputs { |
| 602 | elementId: string; |
| 603 | } |
| 604 | } |
| 605 | |
| 606 | export interface UnionMember3 { |
| 607 | id: string; |
| 608 | |
| 609 | outputs: UnionMember3.Outputs; |
| 610 | |
| 611 | properties: UnionMember3.Properties; |
| 612 | |
| 613 | type: 'rate'; |
| 614 | } |
| 615 | |
| 616 | export namespace UnionMember3 { |
| 617 | export interface Outputs { |
| 618 | fallback: Outputs.Fallback; |
| 619 | |
| 620 | success: Outputs.Success; |
| 621 | } |
| 622 | |
| 623 | export namespace Outputs { |
| 624 | export interface Fallback { |
| 625 | elementId: string; |
| 626 | } |
| 627 | |
| 628 | export interface Success { |
| 629 | elementId: string; |
| 630 | } |
| 631 | } |
| 632 | |
| 633 | export interface Properties { |
| 634 | key: string; |
| 635 | |
| 636 | limit: number; |
| 637 | |
| 638 | limitType: 'count' | 'cost'; |
| 639 | |
| 640 | window: number; |
| 641 | } |
| 642 | } |
| 643 | |
| 644 | export interface UnionMember4 { |
| 645 | id: string; |
| 646 | |
| 647 | outputs: UnionMember4.Outputs; |
| 648 | |
| 649 | properties: UnionMember4.Properties; |
| 650 | |
| 651 | type: 'model'; |
| 652 | } |
| 653 | |
| 654 | export namespace UnionMember4 { |
| 655 | export interface Outputs { |
| 656 | fallback: Outputs.Fallback; |
| 657 | |
| 658 | success: Outputs.Success; |
| 659 | } |
| 660 | |
| 661 | export namespace Outputs { |
| 662 | export interface Fallback { |
| 663 | elementId: string; |
| 664 | } |
| 665 | |
| 666 | export interface Success { |
| 667 | elementId: string; |
| 668 | } |
| 669 | } |
| 670 | |
| 671 | export interface Properties { |
| 672 | model: string; |
| 673 | |
| 674 | provider: string; |
| 675 | |
| 676 | retries: number; |
| 677 | |
| 678 | timeout: number; |
| 679 | } |
| 680 | } |
| 681 | |
| 682 | export interface UnionMember5 { |
| 683 | id: string; |
| 684 | |
| 685 | outputs: { [key: string]: UnionMember5.Outputs }; |
| 686 | |
| 687 | type: 'end'; |
| 688 | } |
| 689 | |
| 690 | export namespace UnionMember5 { |
| 691 | export interface Outputs { |
| 692 | elementId: string; |
| 693 | } |
| 694 | } |
| 695 | |
| 696 | export interface Version { |
| 697 | active: 'true' | 'false'; |
| 698 | |
| 699 | created_at: string; |
| 700 | |
| 701 | data: string; |
| 702 | |
| 703 | version_id: string; |
| 704 | } |
| 705 | } |
| 706 | } |
| 707 | |
| 708 | export interface DynamicRoutingListResponse { |
| 709 | data: DynamicRoutingListResponse.Data; |
| 710 | |
| 711 | success: boolean; |
| 712 | } |
| 713 | |
| 714 | export namespace DynamicRoutingListResponse { |
| 715 | export interface Data { |
| 716 | order_by: string; |
| 717 | |
| 718 | order_by_direction: string; |
| 719 | |
| 720 | page: number; |
| 721 | |
| 722 | per_page: number; |
| 723 | |
| 724 | routes: Array<Data.Route>; |
| 725 | } |
| 726 | |
| 727 | export namespace Data { |
| 728 | export interface Route { |
| 729 | id: string; |
| 730 | |
| 731 | account_tag: string; |
| 732 | |
| 733 | created_at: string; |
| 734 | |
| 735 | deployment: Route.Deployment; |
| 736 | |
| 737 | elements: Array< |
| 738 | | Route.UnionMember0 |
| 739 | | Route.UnionMember1 |
| 740 | | Route.UnionMember2 |
| 741 | | Route.UnionMember3 |
| 742 | | Route.UnionMember4 |
| 743 | | Route.UnionMember5 |
| 744 | >; |
| 745 | |
| 746 | gateway_id: string; |
| 747 | |
| 748 | modified_at: string; |
| 749 | |
| 750 | name: string; |
| 751 | |
| 752 | version: Route.Version; |
| 753 | } |
| 754 | |
| 755 | export namespace Route { |
| 756 | export interface Deployment { |
| 757 | created_at: string; |
| 758 | |
| 759 | deployment_id: string; |
| 760 | |
| 761 | version_id: string; |
| 762 | } |
| 763 | |
| 764 | export interface UnionMember0 { |
| 765 | id: string; |
| 766 | |
| 767 | outputs: UnionMember0.Outputs; |
| 768 | |
| 769 | type: 'start'; |
| 770 | } |
| 771 | |
| 772 | export namespace UnionMember0 { |
| 773 | export interface Outputs { |
| 774 | next: Outputs.Next; |
| 775 | } |
| 776 | |
| 777 | export namespace Outputs { |
| 778 | export interface Next { |
| 779 | elementId: string; |
| 780 | } |
| 781 | } |
| 782 | } |
| 783 | |
| 784 | export interface UnionMember1 { |
| 785 | id: string; |
| 786 | |
| 787 | outputs: UnionMember1.Outputs; |
| 788 | |
| 789 | properties: UnionMember1.Properties; |
| 790 | |
| 791 | type: 'conditional'; |
| 792 | } |
| 793 | |
| 794 | export namespace UnionMember1 { |
| 795 | export interface Outputs { |
| 796 | false: Outputs.False; |
| 797 | |
| 798 | true: Outputs.True; |
| 799 | } |
| 800 | |
| 801 | export namespace Outputs { |
| 802 | export interface False { |
| 803 | elementId: string; |
| 804 | } |
| 805 | |
| 806 | export interface True { |
| 807 | elementId: string; |
| 808 | } |
| 809 | } |
| 810 | |
| 811 | export interface Properties { |
| 812 | conditions?: unknown; |
| 813 | } |
| 814 | } |
| 815 | |
| 816 | export interface UnionMember2 { |
| 817 | id: string; |
| 818 | |
| 819 | outputs: { [key: string]: UnionMember2.Outputs }; |
| 820 | |
| 821 | type: 'percentage'; |
| 822 | } |
| 823 | |
| 824 | export namespace UnionMember2 { |
| 825 | export interface Outputs { |
| 826 | elementId: string; |
| 827 | } |
| 828 | } |
| 829 | |
| 830 | export interface UnionMember3 { |
| 831 | id: string; |
| 832 | |
| 833 | outputs: UnionMember3.Outputs; |
| 834 | |
| 835 | properties: UnionMember3.Properties; |
| 836 | |
| 837 | type: 'rate'; |
| 838 | } |
| 839 | |
| 840 | export namespace UnionMember3 { |
| 841 | export interface Outputs { |
| 842 | fallback: Outputs.Fallback; |
| 843 | |
| 844 | success: Outputs.Success; |
| 845 | } |
| 846 | |
| 847 | export namespace Outputs { |
| 848 | export interface Fallback { |
| 849 | elementId: string; |
| 850 | } |
| 851 | |
| 852 | export interface Success { |
| 853 | elementId: string; |
| 854 | } |
| 855 | } |
| 856 | |
| 857 | export interface Properties { |
| 858 | key: string; |
| 859 | |
| 860 | limit: number; |
| 861 | |
| 862 | limitType: 'count' | 'cost'; |
| 863 | |
| 864 | window: number; |
| 865 | } |
| 866 | } |
| 867 | |
| 868 | export interface UnionMember4 { |
| 869 | id: string; |
| 870 | |
| 871 | outputs: UnionMember4.Outputs; |
| 872 | |
| 873 | properties: UnionMember4.Properties; |
| 874 | |
| 875 | type: 'model'; |
| 876 | } |
| 877 | |
| 878 | export namespace UnionMember4 { |
| 879 | export interface Outputs { |
| 880 | fallback: Outputs.Fallback; |
| 881 | |
| 882 | success: Outputs.Success; |
| 883 | } |
| 884 | |
| 885 | export namespace Outputs { |
| 886 | export interface Fallback { |
| 887 | elementId: string; |
| 888 | } |
| 889 | |
| 890 | export interface Success { |
| 891 | elementId: string; |
| 892 | } |
| 893 | } |
| 894 | |
| 895 | export interface Properties { |
| 896 | model: string; |
| 897 | |
| 898 | provider: string; |
| 899 | |
| 900 | retries: number; |
| 901 | |
| 902 | timeout: number; |
| 903 | } |
| 904 | } |
| 905 | |
| 906 | export interface UnionMember5 { |
| 907 | id: string; |
| 908 | |
| 909 | outputs: { [key: string]: UnionMember5.Outputs }; |
| 910 | |
| 911 | type: 'end'; |
| 912 | } |
| 913 | |
| 914 | export namespace UnionMember5 { |
| 915 | export interface Outputs { |
| 916 | elementId: string; |
| 917 | } |
| 918 | } |
| 919 | |
| 920 | export interface Version { |
| 921 | active: 'true' | 'false'; |
| 922 | |
| 923 | created_at: string; |
| 924 | |
| 925 | data: string; |
| 926 | |
| 927 | version_id: string; |
| 928 | } |
| 929 | } |
| 930 | } |
| 931 | } |
| 932 | |
| 933 | export interface DynamicRoutingDeleteResponse { |
| 934 | id: string; |
| 935 | |
| 936 | created_at: string; |
| 937 | |
| 938 | elements: Array< |
| 939 | | DynamicRoutingDeleteResponse.UnionMember0 |
| 940 | | DynamicRoutingDeleteResponse.UnionMember1 |
| 941 | | DynamicRoutingDeleteResponse.UnionMember2 |
| 942 | | DynamicRoutingDeleteResponse.UnionMember3 |
| 943 | | DynamicRoutingDeleteResponse.UnionMember4 |
| 944 | | DynamicRoutingDeleteResponse.UnionMember5 |
| 945 | >; |
| 946 | |
| 947 | gateway_id: string; |
| 948 | |
| 949 | modified_at: string; |
| 950 | |
| 951 | name: string; |
| 952 | } |
| 953 | |
| 954 | export namespace DynamicRoutingDeleteResponse { |
| 955 | export interface UnionMember0 { |
| 956 | id: string; |
| 957 | |
| 958 | outputs: UnionMember0.Outputs; |
| 959 | |
| 960 | type: 'start'; |
| 961 | } |
| 962 | |
| 963 | export namespace UnionMember0 { |
| 964 | export interface Outputs { |
| 965 | next: Outputs.Next; |
| 966 | } |
| 967 | |
| 968 | export namespace Outputs { |
| 969 | export interface Next { |
| 970 | elementId: string; |
| 971 | } |
| 972 | } |
| 973 | } |
| 974 | |
| 975 | export interface UnionMember1 { |
| 976 | id: string; |
| 977 | |
| 978 | outputs: UnionMember1.Outputs; |
| 979 | |
| 980 | properties: UnionMember1.Properties; |
| 981 | |
| 982 | type: 'conditional'; |
| 983 | } |
| 984 | |
| 985 | export namespace UnionMember1 { |
| 986 | export interface Outputs { |
| 987 | false: Outputs.False; |
| 988 | |
| 989 | true: Outputs.True; |
| 990 | } |
| 991 | |
| 992 | export namespace Outputs { |
| 993 | export interface False { |
| 994 | elementId: string; |
| 995 | } |
| 996 | |
| 997 | export interface True { |
| 998 | elementId: string; |
| 999 | } |
| 1000 | } |
| 1001 | |
| 1002 | export interface Properties { |
| 1003 | conditions?: unknown; |
| 1004 | } |
| 1005 | } |
| 1006 | |
| 1007 | export interface UnionMember2 { |
| 1008 | id: string; |
| 1009 | |
| 1010 | outputs: { [key: string]: UnionMember2.Outputs }; |
| 1011 | |
| 1012 | type: 'percentage'; |
| 1013 | } |
| 1014 | |
| 1015 | export namespace UnionMember2 { |
| 1016 | export interface Outputs { |
| 1017 | elementId: string; |
| 1018 | } |
| 1019 | } |
| 1020 | |
| 1021 | export interface UnionMember3 { |
| 1022 | id: string; |
| 1023 | |
| 1024 | outputs: UnionMember3.Outputs; |
| 1025 | |
| 1026 | properties: UnionMember3.Properties; |
| 1027 | |
| 1028 | type: 'rate'; |
| 1029 | } |
| 1030 | |
| 1031 | export namespace UnionMember3 { |
| 1032 | export interface Outputs { |
| 1033 | fallback: Outputs.Fallback; |
| 1034 | |
| 1035 | success: Outputs.Success; |
| 1036 | } |
| 1037 | |
| 1038 | export namespace Outputs { |
| 1039 | export interface Fallback { |
| 1040 | elementId: string; |
| 1041 | } |
| 1042 | |
| 1043 | export interface Success { |
| 1044 | elementId: string; |
| 1045 | } |
| 1046 | } |
| 1047 | |
| 1048 | export interface Properties { |
| 1049 | key: string; |
| 1050 | |
| 1051 | limit: number; |
| 1052 | |
| 1053 | limitType: 'count' | 'cost'; |
| 1054 | |
| 1055 | window: number; |
| 1056 | } |
| 1057 | } |
| 1058 | |
| 1059 | export interface UnionMember4 { |
| 1060 | id: string; |
| 1061 | |
| 1062 | outputs: UnionMember4.Outputs; |
| 1063 | |
| 1064 | properties: UnionMember4.Properties; |
| 1065 | |
| 1066 | type: 'model'; |
| 1067 | } |
| 1068 | |
| 1069 | export namespace UnionMember4 { |
| 1070 | export interface Outputs { |
| 1071 | fallback: Outputs.Fallback; |
| 1072 | |
| 1073 | success: Outputs.Success; |
| 1074 | } |
| 1075 | |
| 1076 | export namespace Outputs { |
| 1077 | export interface Fallback { |
| 1078 | elementId: string; |
| 1079 | } |
| 1080 | |
| 1081 | export interface Success { |
| 1082 | elementId: string; |
| 1083 | } |
| 1084 | } |
| 1085 | |
| 1086 | export interface Properties { |
| 1087 | model: string; |
| 1088 | |
| 1089 | provider: string; |
| 1090 | |
| 1091 | retries: number; |
| 1092 | |
| 1093 | timeout: number; |
| 1094 | } |
| 1095 | } |
| 1096 | |
| 1097 | export interface UnionMember5 { |
| 1098 | id: string; |
| 1099 | |
| 1100 | outputs: { [key: string]: UnionMember5.Outputs }; |
| 1101 | |
| 1102 | type: 'end'; |
| 1103 | } |
| 1104 | |
| 1105 | export namespace UnionMember5 { |
| 1106 | export interface Outputs { |
| 1107 | elementId: string; |
| 1108 | } |
| 1109 | } |
| 1110 | } |
| 1111 | |
| 1112 | export interface DynamicRoutingCreateDeploymentResponse { |
| 1113 | id: string; |
| 1114 | |
| 1115 | created_at: string; |
| 1116 | |
| 1117 | elements: Array< |
| 1118 | | DynamicRoutingCreateDeploymentResponse.UnionMember0 |
| 1119 | | DynamicRoutingCreateDeploymentResponse.UnionMember1 |
| 1120 | | DynamicRoutingCreateDeploymentResponse.UnionMember2 |
| 1121 | | DynamicRoutingCreateDeploymentResponse.UnionMember3 |
| 1122 | | DynamicRoutingCreateDeploymentResponse.UnionMember4 |
| 1123 | | DynamicRoutingCreateDeploymentResponse.UnionMember5 |
| 1124 | >; |
| 1125 | |
| 1126 | gateway_id: string; |
| 1127 | |
| 1128 | modified_at: string; |
| 1129 | |
| 1130 | name: string; |
| 1131 | } |
| 1132 | |
| 1133 | export namespace DynamicRoutingCreateDeploymentResponse { |
| 1134 | export interface UnionMember0 { |
| 1135 | id: string; |
| 1136 | |
| 1137 | outputs: UnionMember0.Outputs; |
| 1138 | |
| 1139 | type: 'start'; |
| 1140 | } |
| 1141 | |
| 1142 | export namespace UnionMember0 { |
| 1143 | export interface Outputs { |
| 1144 | next: Outputs.Next; |
| 1145 | } |
| 1146 | |
| 1147 | export namespace Outputs { |
| 1148 | export interface Next { |
| 1149 | elementId: string; |
| 1150 | } |
| 1151 | } |
| 1152 | } |
| 1153 | |
| 1154 | export interface UnionMember1 { |
| 1155 | id: string; |
| 1156 | |
| 1157 | outputs: UnionMember1.Outputs; |
| 1158 | |
| 1159 | properties: UnionMember1.Properties; |
| 1160 | |
| 1161 | type: 'conditional'; |
| 1162 | } |
| 1163 | |
| 1164 | export namespace UnionMember1 { |
| 1165 | export interface Outputs { |
| 1166 | false: Outputs.False; |
| 1167 | |
| 1168 | true: Outputs.True; |
| 1169 | } |
| 1170 | |
| 1171 | export namespace Outputs { |
| 1172 | export interface False { |
| 1173 | elementId: string; |
| 1174 | } |
| 1175 | |
| 1176 | export interface True { |
| 1177 | elementId: string; |
| 1178 | } |
| 1179 | } |
| 1180 | |
| 1181 | export interface Properties { |
| 1182 | conditions?: unknown; |
| 1183 | } |
| 1184 | } |
| 1185 | |
| 1186 | export interface UnionMember2 { |
| 1187 | id: string; |
| 1188 | |
| 1189 | outputs: { [key: string]: UnionMember2.Outputs }; |
| 1190 | |
| 1191 | type: 'percentage'; |
| 1192 | } |
| 1193 | |
| 1194 | export namespace UnionMember2 { |
| 1195 | export interface Outputs { |
| 1196 | elementId: string; |
| 1197 | } |
| 1198 | } |
| 1199 | |
| 1200 | export interface UnionMember3 { |
| 1201 | id: string; |
| 1202 | |
| 1203 | outputs: UnionMember3.Outputs; |
| 1204 | |
| 1205 | properties: UnionMember3.Properties; |
| 1206 | |
| 1207 | type: 'rate'; |
| 1208 | } |
| 1209 | |
| 1210 | export namespace UnionMember3 { |
| 1211 | export interface Outputs { |
| 1212 | fallback: Outputs.Fallback; |
| 1213 | |
| 1214 | success: Outputs.Success; |
| 1215 | } |
| 1216 | |
| 1217 | export namespace Outputs { |
| 1218 | export interface Fallback { |
| 1219 | elementId: string; |
| 1220 | } |
| 1221 | |
| 1222 | export interface Success { |
| 1223 | elementId: string; |
| 1224 | } |
| 1225 | } |
| 1226 | |
| 1227 | export interface Properties { |
| 1228 | key: string; |
| 1229 | |
| 1230 | limit: number; |
| 1231 | |
| 1232 | limitType: 'count' | 'cost'; |
| 1233 | |
| 1234 | window: number; |
| 1235 | } |
| 1236 | } |
| 1237 | |
| 1238 | export interface UnionMember4 { |
| 1239 | id: string; |
| 1240 | |
| 1241 | outputs: UnionMember4.Outputs; |
| 1242 | |
| 1243 | properties: UnionMember4.Properties; |
| 1244 | |
| 1245 | type: 'model'; |
| 1246 | } |
| 1247 | |
| 1248 | export namespace UnionMember4 { |
| 1249 | export interface Outputs { |
| 1250 | fallback: Outputs.Fallback; |
| 1251 | |
| 1252 | success: Outputs.Success; |
| 1253 | } |
| 1254 | |
| 1255 | export namespace Outputs { |
| 1256 | export interface Fallback { |
| 1257 | elementId: string; |
| 1258 | } |
| 1259 | |
| 1260 | export interface Success { |
| 1261 | elementId: string; |
| 1262 | } |
| 1263 | } |
| 1264 | |
| 1265 | export interface Properties { |
| 1266 | model: string; |
| 1267 | |
| 1268 | provider: string; |
| 1269 | |
| 1270 | retries: number; |
| 1271 | |
| 1272 | timeout: number; |
| 1273 | } |
| 1274 | } |
| 1275 | |
| 1276 | export interface UnionMember5 { |
| 1277 | id: string; |
| 1278 | |
| 1279 | outputs: { [key: string]: UnionMember5.Outputs }; |
| 1280 | |
| 1281 | type: 'end'; |
| 1282 | } |
| 1283 | |
| 1284 | export namespace UnionMember5 { |
| 1285 | export interface Outputs { |
| 1286 | elementId: string; |
| 1287 | } |
| 1288 | } |
| 1289 | } |
| 1290 | |
| 1291 | export interface DynamicRoutingCreateVersionResponse { |
| 1292 | id: string; |
| 1293 | |
| 1294 | created_at: string; |
| 1295 | |
| 1296 | elements: Array< |
| 1297 | | DynamicRoutingCreateVersionResponse.UnionMember0 |
| 1298 | | DynamicRoutingCreateVersionResponse.UnionMember1 |
| 1299 | | DynamicRoutingCreateVersionResponse.UnionMember2 |
| 1300 | | DynamicRoutingCreateVersionResponse.UnionMember3 |
| 1301 | | DynamicRoutingCreateVersionResponse.UnionMember4 |
| 1302 | | DynamicRoutingCreateVersionResponse.UnionMember5 |
| 1303 | >; |
| 1304 | |
| 1305 | gateway_id: string; |
| 1306 | |
| 1307 | modified_at: string; |
| 1308 | |
| 1309 | name: string; |
| 1310 | } |
| 1311 | |
| 1312 | export namespace DynamicRoutingCreateVersionResponse { |
| 1313 | export interface UnionMember0 { |
| 1314 | id: string; |
| 1315 | |
| 1316 | outputs: UnionMember0.Outputs; |
| 1317 | |
| 1318 | type: 'start'; |
| 1319 | } |
| 1320 | |
| 1321 | export namespace UnionMember0 { |
| 1322 | export interface Outputs { |
| 1323 | next: Outputs.Next; |
| 1324 | } |
| 1325 | |
| 1326 | export namespace Outputs { |
| 1327 | export interface Next { |
| 1328 | elementId: string; |
| 1329 | } |
| 1330 | } |
| 1331 | } |
| 1332 | |
| 1333 | export interface UnionMember1 { |
| 1334 | id: string; |
| 1335 | |
| 1336 | outputs: UnionMember1.Outputs; |
| 1337 | |
| 1338 | properties: UnionMember1.Properties; |
| 1339 | |
| 1340 | type: 'conditional'; |
| 1341 | } |
| 1342 | |
| 1343 | export namespace UnionMember1 { |
| 1344 | export interface Outputs { |
| 1345 | false: Outputs.False; |
| 1346 | |
| 1347 | true: Outputs.True; |
| 1348 | } |
| 1349 | |
| 1350 | export namespace Outputs { |
| 1351 | export interface False { |
| 1352 | elementId: string; |
| 1353 | } |
| 1354 | |
| 1355 | export interface True { |
| 1356 | elementId: string; |
| 1357 | } |
| 1358 | } |
| 1359 | |
| 1360 | export interface Properties { |
| 1361 | conditions?: unknown; |
| 1362 | } |
| 1363 | } |
| 1364 | |
| 1365 | export interface UnionMember2 { |
| 1366 | id: string; |
| 1367 | |
| 1368 | outputs: { [key: string]: UnionMember2.Outputs }; |
| 1369 | |
| 1370 | type: 'percentage'; |
| 1371 | } |
| 1372 | |
| 1373 | export namespace UnionMember2 { |
| 1374 | export interface Outputs { |
| 1375 | elementId: string; |
| 1376 | } |
| 1377 | } |
| 1378 | |
| 1379 | export interface UnionMember3 { |
| 1380 | id: string; |
| 1381 | |
| 1382 | outputs: UnionMember3.Outputs; |
| 1383 | |
| 1384 | properties: UnionMember3.Properties; |
| 1385 | |
| 1386 | type: 'rate'; |
| 1387 | } |
| 1388 | |
| 1389 | export namespace UnionMember3 { |
| 1390 | export interface Outputs { |
| 1391 | fallback: Outputs.Fallback; |
| 1392 | |
| 1393 | success: Outputs.Success; |
| 1394 | } |
| 1395 | |
| 1396 | export namespace Outputs { |
| 1397 | export interface Fallback { |
| 1398 | elementId: string; |
| 1399 | } |
| 1400 | |
| 1401 | export interface Success { |
| 1402 | elementId: string; |
| 1403 | } |
| 1404 | } |
| 1405 | |
| 1406 | export interface Properties { |
| 1407 | key: string; |
| 1408 | |
| 1409 | limit: number; |
| 1410 | |
| 1411 | limitType: 'count' | 'cost'; |
| 1412 | |
| 1413 | window: number; |
| 1414 | } |
| 1415 | } |
| 1416 | |
| 1417 | export interface UnionMember4 { |
| 1418 | id: string; |
| 1419 | |
| 1420 | outputs: UnionMember4.Outputs; |
| 1421 | |
| 1422 | properties: UnionMember4.Properties; |
| 1423 | |
| 1424 | type: 'model'; |
| 1425 | } |
| 1426 | |
| 1427 | export namespace UnionMember4 { |
| 1428 | export interface Outputs { |
| 1429 | fallback: Outputs.Fallback; |
| 1430 | |
| 1431 | success: Outputs.Success; |
| 1432 | } |
| 1433 | |
| 1434 | export namespace Outputs { |
| 1435 | export interface Fallback { |
| 1436 | elementId: string; |
| 1437 | } |
| 1438 | |
| 1439 | export interface Success { |
| 1440 | elementId: string; |
| 1441 | } |
| 1442 | } |
| 1443 | |
| 1444 | export interface Properties { |
| 1445 | model: string; |
| 1446 | |
| 1447 | provider: string; |
| 1448 | |
| 1449 | retries: number; |
| 1450 | |
| 1451 | timeout: number; |
| 1452 | } |
| 1453 | } |
| 1454 | |
| 1455 | export interface UnionMember5 { |
| 1456 | id: string; |
| 1457 | |
| 1458 | outputs: { [key: string]: UnionMember5.Outputs }; |
| 1459 | |
| 1460 | type: 'end'; |
| 1461 | } |
| 1462 | |
| 1463 | export namespace UnionMember5 { |
| 1464 | export interface Outputs { |
| 1465 | elementId: string; |
| 1466 | } |
| 1467 | } |
| 1468 | } |
| 1469 | |
| 1470 | export interface DynamicRoutingGetResponse { |
| 1471 | id: string; |
| 1472 | |
| 1473 | created_at: string; |
| 1474 | |
| 1475 | deployment: DynamicRoutingGetResponse.Deployment; |
| 1476 | |
| 1477 | elements: Array< |
| 1478 | | DynamicRoutingGetResponse.UnionMember0 |
| 1479 | | DynamicRoutingGetResponse.UnionMember1 |
| 1480 | | DynamicRoutingGetResponse.UnionMember2 |
| 1481 | | DynamicRoutingGetResponse.UnionMember3 |
| 1482 | | DynamicRoutingGetResponse.UnionMember4 |
| 1483 | | DynamicRoutingGetResponse.UnionMember5 |
| 1484 | >; |
| 1485 | |
| 1486 | gateway_id: string; |
| 1487 | |
| 1488 | modified_at: string; |
| 1489 | |
| 1490 | name: string; |
| 1491 | |
| 1492 | version: DynamicRoutingGetResponse.Version; |
| 1493 | } |
| 1494 | |
| 1495 | export namespace DynamicRoutingGetResponse { |
| 1496 | export interface Deployment { |
| 1497 | created_at: string; |
| 1498 | |
| 1499 | deployment_id: string; |
| 1500 | |
| 1501 | version_id: string; |
| 1502 | } |
| 1503 | |
| 1504 | export interface UnionMember0 { |
| 1505 | id: string; |
| 1506 | |
| 1507 | outputs: UnionMember0.Outputs; |
| 1508 | |
| 1509 | type: 'start'; |
| 1510 | } |
| 1511 | |
| 1512 | export namespace UnionMember0 { |
| 1513 | export interface Outputs { |
| 1514 | next: Outputs.Next; |
| 1515 | } |
| 1516 | |
| 1517 | export namespace Outputs { |
| 1518 | export interface Next { |
| 1519 | elementId: string; |
| 1520 | } |
| 1521 | } |
| 1522 | } |
| 1523 | |
| 1524 | export interface UnionMember1 { |
| 1525 | id: string; |
| 1526 | |
| 1527 | outputs: UnionMember1.Outputs; |
| 1528 | |
| 1529 | properties: UnionMember1.Properties; |
| 1530 | |
| 1531 | type: 'conditional'; |
| 1532 | } |
| 1533 | |
| 1534 | export namespace UnionMember1 { |
| 1535 | export interface Outputs { |
| 1536 | false: Outputs.False; |
| 1537 | |
| 1538 | true: Outputs.True; |
| 1539 | } |
| 1540 | |
| 1541 | export namespace Outputs { |
| 1542 | export interface False { |
| 1543 | elementId: string; |
| 1544 | } |
| 1545 | |
| 1546 | export interface True { |
| 1547 | elementId: string; |
| 1548 | } |
| 1549 | } |
| 1550 | |
| 1551 | export interface Properties { |
| 1552 | conditions?: unknown; |
| 1553 | } |
| 1554 | } |
| 1555 | |
| 1556 | export interface UnionMember2 { |
| 1557 | id: string; |
| 1558 | |
| 1559 | outputs: { [key: string]: UnionMember2.Outputs }; |
| 1560 | |
| 1561 | type: 'percentage'; |
| 1562 | } |
| 1563 | |
| 1564 | export namespace UnionMember2 { |
| 1565 | export interface Outputs { |
| 1566 | elementId: string; |
| 1567 | } |
| 1568 | } |
| 1569 | |
| 1570 | export interface UnionMember3 { |
| 1571 | id: string; |
| 1572 | |
| 1573 | outputs: UnionMember3.Outputs; |
| 1574 | |
| 1575 | properties: UnionMember3.Properties; |
| 1576 | |
| 1577 | type: 'rate'; |
| 1578 | } |
| 1579 | |
| 1580 | export namespace UnionMember3 { |
| 1581 | export interface Outputs { |
| 1582 | fallback: Outputs.Fallback; |
| 1583 | |
| 1584 | success: Outputs.Success; |
| 1585 | } |
| 1586 | |
| 1587 | export namespace Outputs { |
| 1588 | export interface Fallback { |
| 1589 | elementId: string; |
| 1590 | } |
| 1591 | |
| 1592 | export interface Success { |
| 1593 | elementId: string; |
| 1594 | } |
| 1595 | } |
| 1596 | |
| 1597 | export interface Properties { |
| 1598 | key: string; |
| 1599 | |
| 1600 | limit: number; |
| 1601 | |
| 1602 | limitType: 'count' | 'cost'; |
| 1603 | |
| 1604 | window: number; |
| 1605 | } |
| 1606 | } |
| 1607 | |
| 1608 | export interface UnionMember4 { |
| 1609 | id: string; |
| 1610 | |
| 1611 | outputs: UnionMember4.Outputs; |
| 1612 | |
| 1613 | properties: UnionMember4.Properties; |
| 1614 | |
| 1615 | type: 'model'; |
| 1616 | } |
| 1617 | |
| 1618 | export namespace UnionMember4 { |
| 1619 | export interface Outputs { |
| 1620 | fallback: Outputs.Fallback; |
| 1621 | |
| 1622 | success: Outputs.Success; |
| 1623 | } |
| 1624 | |
| 1625 | export namespace Outputs { |
| 1626 | export interface Fallback { |
| 1627 | elementId: string; |
| 1628 | } |
| 1629 | |
| 1630 | export interface Success { |
| 1631 | elementId: string; |
| 1632 | } |
| 1633 | } |
| 1634 | |
| 1635 | export interface Properties { |
| 1636 | model: string; |
| 1637 | |
| 1638 | provider: string; |
| 1639 | |
| 1640 | retries: number; |
| 1641 | |
| 1642 | timeout: number; |
| 1643 | } |
| 1644 | } |
| 1645 | |
| 1646 | export interface UnionMember5 { |
| 1647 | id: string; |
| 1648 | |
| 1649 | outputs: { [key: string]: UnionMember5.Outputs }; |
| 1650 | |
| 1651 | type: 'end'; |
| 1652 | } |
| 1653 | |
| 1654 | export namespace UnionMember5 { |
| 1655 | export interface Outputs { |
| 1656 | elementId: string; |
| 1657 | } |
| 1658 | } |
| 1659 | |
| 1660 | export interface Version { |
| 1661 | active: 'true' | 'false'; |
| 1662 | |
| 1663 | created_at: string; |
| 1664 | |
| 1665 | data: string; |
| 1666 | |
| 1667 | version_id: string; |
| 1668 | } |
| 1669 | } |
| 1670 | |
| 1671 | export interface DynamicRoutingGetVersionResponse { |
| 1672 | id: string; |
| 1673 | |
| 1674 | active: 'true' | 'false'; |
| 1675 | |
| 1676 | created_at: string; |
| 1677 | |
| 1678 | data: string; |
| 1679 | |
| 1680 | elements: Array< |
| 1681 | | DynamicRoutingGetVersionResponse.UnionMember0 |
| 1682 | | DynamicRoutingGetVersionResponse.UnionMember1 |
| 1683 | | DynamicRoutingGetVersionResponse.UnionMember2 |
| 1684 | | DynamicRoutingGetVersionResponse.UnionMember3 |
| 1685 | | DynamicRoutingGetVersionResponse.UnionMember4 |
| 1686 | | DynamicRoutingGetVersionResponse.UnionMember5 |
| 1687 | >; |
| 1688 | |
| 1689 | gateway_id: string; |
| 1690 | |
| 1691 | modified_at: string; |
| 1692 | |
| 1693 | name: string; |
| 1694 | |
| 1695 | version_id: string; |
| 1696 | } |
| 1697 | |
| 1698 | export namespace DynamicRoutingGetVersionResponse { |
| 1699 | export interface UnionMember0 { |
| 1700 | id: string; |
| 1701 | |
| 1702 | outputs: UnionMember0.Outputs; |
| 1703 | |
| 1704 | type: 'start'; |
| 1705 | } |
| 1706 | |
| 1707 | export namespace UnionMember0 { |
| 1708 | export interface Outputs { |
| 1709 | next: Outputs.Next; |
| 1710 | } |
| 1711 | |
| 1712 | export namespace Outputs { |
| 1713 | export interface Next { |
| 1714 | elementId: string; |
| 1715 | } |
| 1716 | } |
| 1717 | } |
| 1718 | |
| 1719 | export interface UnionMember1 { |
| 1720 | id: string; |
| 1721 | |
| 1722 | outputs: UnionMember1.Outputs; |
| 1723 | |
| 1724 | properties: UnionMember1.Properties; |
| 1725 | |
| 1726 | type: 'conditional'; |
| 1727 | } |
| 1728 | |
| 1729 | export namespace UnionMember1 { |
| 1730 | export interface Outputs { |
| 1731 | false: Outputs.False; |
| 1732 | |
| 1733 | true: Outputs.True; |
| 1734 | } |
| 1735 | |
| 1736 | export namespace Outputs { |
| 1737 | export interface False { |
| 1738 | elementId: string; |
| 1739 | } |
| 1740 | |
| 1741 | export interface True { |
| 1742 | elementId: string; |
| 1743 | } |
| 1744 | } |
| 1745 | |
| 1746 | export interface Properties { |
| 1747 | conditions?: unknown; |
| 1748 | } |
| 1749 | } |
| 1750 | |
| 1751 | export interface UnionMember2 { |
| 1752 | id: string; |
| 1753 | |
| 1754 | outputs: { [key: string]: UnionMember2.Outputs }; |
| 1755 | |
| 1756 | type: 'percentage'; |
| 1757 | } |
| 1758 | |
| 1759 | export namespace UnionMember2 { |
| 1760 | export interface Outputs { |
| 1761 | elementId: string; |
| 1762 | } |
| 1763 | } |
| 1764 | |
| 1765 | export interface UnionMember3 { |
| 1766 | id: string; |
| 1767 | |
| 1768 | outputs: UnionMember3.Outputs; |
| 1769 | |
| 1770 | properties: UnionMember3.Properties; |
| 1771 | |
| 1772 | type: 'rate'; |
| 1773 | } |
| 1774 | |
| 1775 | export namespace UnionMember3 { |
| 1776 | export interface Outputs { |
| 1777 | fallback: Outputs.Fallback; |
| 1778 | |
| 1779 | success: Outputs.Success; |
| 1780 | } |
| 1781 | |
| 1782 | export namespace Outputs { |
| 1783 | export interface Fallback { |
| 1784 | elementId: string; |
| 1785 | } |
| 1786 | |
| 1787 | export interface Success { |
| 1788 | elementId: string; |
| 1789 | } |
| 1790 | } |
| 1791 | |
| 1792 | export interface Properties { |
| 1793 | key: string; |
| 1794 | |
| 1795 | limit: number; |
| 1796 | |
| 1797 | limitType: 'count' | 'cost'; |
| 1798 | |
| 1799 | window: number; |
| 1800 | } |
| 1801 | } |
| 1802 | |
| 1803 | export interface UnionMember4 { |
| 1804 | id: string; |
| 1805 | |
| 1806 | outputs: UnionMember4.Outputs; |
| 1807 | |
| 1808 | properties: UnionMember4.Properties; |
| 1809 | |
| 1810 | type: 'model'; |
| 1811 | } |
| 1812 | |
| 1813 | export namespace UnionMember4 { |
| 1814 | export interface Outputs { |
| 1815 | fallback: Outputs.Fallback; |
| 1816 | |
| 1817 | success: Outputs.Success; |
| 1818 | } |
| 1819 | |
| 1820 | export namespace Outputs { |
| 1821 | export interface Fallback { |
| 1822 | elementId: string; |
| 1823 | } |
| 1824 | |
| 1825 | export interface Success { |
| 1826 | elementId: string; |
| 1827 | } |
| 1828 | } |
| 1829 | |
| 1830 | export interface Properties { |
| 1831 | model: string; |
| 1832 | |
| 1833 | provider: string; |
| 1834 | |
| 1835 | retries: number; |
| 1836 | |
| 1837 | timeout: number; |
| 1838 | } |
| 1839 | } |
| 1840 | |
| 1841 | export interface UnionMember5 { |
| 1842 | id: string; |
| 1843 | |
| 1844 | outputs: { [key: string]: UnionMember5.Outputs }; |
| 1845 | |
| 1846 | type: 'end'; |
| 1847 | } |
| 1848 | |
| 1849 | export namespace UnionMember5 { |
| 1850 | export interface Outputs { |
| 1851 | elementId: string; |
| 1852 | } |
| 1853 | } |
| 1854 | } |
| 1855 | |
| 1856 | export interface DynamicRoutingListDeploymentsResponse { |
| 1857 | data: DynamicRoutingListDeploymentsResponse.Data; |
| 1858 | |
| 1859 | success: boolean; |
| 1860 | } |
| 1861 | |
| 1862 | export namespace DynamicRoutingListDeploymentsResponse { |
| 1863 | export interface Data { |
| 1864 | deployments: Array<Data.Deployment>; |
| 1865 | |
| 1866 | order_by: string; |
| 1867 | |
| 1868 | order_by_direction: string; |
| 1869 | |
| 1870 | page: number; |
| 1871 | |
| 1872 | per_page: number; |
| 1873 | } |
| 1874 | |
| 1875 | export namespace Data { |
| 1876 | export interface Deployment { |
| 1877 | created_at: string; |
| 1878 | |
| 1879 | deployment_id: string; |
| 1880 | |
| 1881 | version_id: string; |
| 1882 | } |
| 1883 | } |
| 1884 | } |
| 1885 | |
| 1886 | export interface DynamicRoutingListVersionsResponse { |
| 1887 | data: DynamicRoutingListVersionsResponse.Data; |
| 1888 | |
| 1889 | success: boolean; |
| 1890 | } |
| 1891 | |
| 1892 | export namespace DynamicRoutingListVersionsResponse { |
| 1893 | export interface Data { |
| 1894 | order_by: string; |
| 1895 | |
| 1896 | order_by_direction: string; |
| 1897 | |
| 1898 | page: number; |
| 1899 | |
| 1900 | per_page: number; |
| 1901 | |
| 1902 | versions: Array<Data.Version>; |
| 1903 | } |
| 1904 | |
| 1905 | export namespace Data { |
| 1906 | export interface Version { |
| 1907 | active: 'true' | 'false'; |
| 1908 | |
| 1909 | created_at: string; |
| 1910 | |
| 1911 | data: string; |
| 1912 | |
| 1913 | version_id: string; |
| 1914 | } |
| 1915 | } |
| 1916 | } |
| 1917 | |
| 1918 | export interface DynamicRoutingCreateParams { |
| 1919 | /** |
| 1920 | * Path param |
| 1921 | */ |
| 1922 | account_id: string; |
| 1923 | |
| 1924 | /** |
| 1925 | * Body param |
| 1926 | */ |
| 1927 | elements: Array< |
| 1928 | | DynamicRoutingCreateParams.UnionMember0 |
| 1929 | | DynamicRoutingCreateParams.UnionMember1 |
| 1930 | | DynamicRoutingCreateParams.UnionMember2 |
| 1931 | | DynamicRoutingCreateParams.UnionMember3 |
| 1932 | | DynamicRoutingCreateParams.UnionMember4 |
| 1933 | | DynamicRoutingCreateParams.UnionMember5 |
| 1934 | >; |
| 1935 | |
| 1936 | /** |
| 1937 | * Body param |
| 1938 | */ |
| 1939 | name: string; |
| 1940 | } |
| 1941 | |
| 1942 | export namespace DynamicRoutingCreateParams { |
| 1943 | export interface UnionMember0 { |
| 1944 | id: string; |
| 1945 | |
| 1946 | outputs: UnionMember0.Outputs; |
| 1947 | |
| 1948 | type: 'start'; |
| 1949 | } |
| 1950 | |
| 1951 | export namespace UnionMember0 { |
| 1952 | export interface Outputs { |
| 1953 | next: Outputs.Next; |
| 1954 | } |
| 1955 | |
| 1956 | export namespace Outputs { |
| 1957 | export interface Next { |
| 1958 | elementId: string; |
| 1959 | } |
| 1960 | } |
| 1961 | } |
| 1962 | |
| 1963 | export interface UnionMember1 { |
| 1964 | id: string; |
| 1965 | |
| 1966 | outputs: UnionMember1.Outputs; |
| 1967 | |
| 1968 | properties: UnionMember1.Properties; |
| 1969 | |
| 1970 | type: 'conditional'; |
| 1971 | } |
| 1972 | |
| 1973 | export namespace UnionMember1 { |
| 1974 | export interface Outputs { |
| 1975 | false: Outputs.False; |
| 1976 | |
| 1977 | true: Outputs.True; |
| 1978 | } |
| 1979 | |
| 1980 | export namespace Outputs { |
| 1981 | export interface False { |
| 1982 | elementId: string; |
| 1983 | } |
| 1984 | |
| 1985 | export interface True { |
| 1986 | elementId: string; |
| 1987 | } |
| 1988 | } |
| 1989 | |
| 1990 | export interface Properties { |
| 1991 | conditions?: unknown; |
| 1992 | } |
| 1993 | } |
| 1994 | |
| 1995 | export interface UnionMember2 { |
| 1996 | id: string; |
| 1997 | |
| 1998 | outputs: { [key: string]: UnionMember2.Outputs }; |
| 1999 | |
| 2000 | type: 'percentage'; |
| 2001 | } |
| 2002 | |
| 2003 | export namespace UnionMember2 { |
| 2004 | export interface Outputs { |
| 2005 | elementId: string; |
| 2006 | } |
| 2007 | } |
| 2008 | |
| 2009 | export interface UnionMember3 { |
| 2010 | id: string; |
| 2011 | |
| 2012 | outputs: UnionMember3.Outputs; |
| 2013 | |
| 2014 | properties: UnionMember3.Properties; |
| 2015 | |
| 2016 | type: 'rate'; |
| 2017 | } |
| 2018 | |
| 2019 | export namespace UnionMember3 { |
| 2020 | export interface Outputs { |
| 2021 | fallback: Outputs.Fallback; |
| 2022 | |
| 2023 | success: Outputs.Success; |
| 2024 | } |
| 2025 | |
| 2026 | export namespace Outputs { |
| 2027 | export interface Fallback { |
| 2028 | elementId: string; |
| 2029 | } |
| 2030 | |
| 2031 | export interface Success { |
| 2032 | elementId: string; |
| 2033 | } |
| 2034 | } |
| 2035 | |
| 2036 | export interface Properties { |
| 2037 | key: string; |
| 2038 | |
| 2039 | limit: number; |
| 2040 | |
| 2041 | limitType: 'count' | 'cost'; |
| 2042 | |
| 2043 | window: number; |
| 2044 | } |
| 2045 | } |
| 2046 | |
| 2047 | export interface UnionMember4 { |
| 2048 | id: string; |
| 2049 | |
| 2050 | outputs: UnionMember4.Outputs; |
| 2051 | |
| 2052 | properties: UnionMember4.Properties; |
| 2053 | |
| 2054 | type: 'model'; |
| 2055 | } |
| 2056 | |
| 2057 | export namespace UnionMember4 { |
| 2058 | export interface Outputs { |
| 2059 | fallback: Outputs.Fallback; |
| 2060 | |
| 2061 | success: Outputs.Success; |
| 2062 | } |
| 2063 | |
| 2064 | export namespace Outputs { |
| 2065 | export interface Fallback { |
| 2066 | elementId: string; |
| 2067 | } |
| 2068 | |
| 2069 | export interface Success { |
| 2070 | elementId: string; |
| 2071 | } |
| 2072 | } |
| 2073 | |
| 2074 | export interface Properties { |
| 2075 | model: string; |
| 2076 | |
| 2077 | provider: string; |
| 2078 | |
| 2079 | retries: number; |
| 2080 | |
| 2081 | timeout: number; |
| 2082 | } |
| 2083 | } |
| 2084 | |
| 2085 | export interface UnionMember5 { |
| 2086 | id: string; |
| 2087 | |
| 2088 | outputs: { [key: string]: UnionMember5.Outputs }; |
| 2089 | |
| 2090 | type: 'end'; |
| 2091 | } |
| 2092 | |
| 2093 | export namespace UnionMember5 { |
| 2094 | export interface Outputs { |
| 2095 | elementId: string; |
| 2096 | } |
| 2097 | } |
| 2098 | } |
| 2099 | |
| 2100 | export interface DynamicRoutingUpdateParams { |
| 2101 | /** |
| 2102 | * Path param |
| 2103 | */ |
| 2104 | account_id: string; |
| 2105 | |
| 2106 | /** |
| 2107 | * Body param |
| 2108 | */ |
| 2109 | name: string; |
| 2110 | } |
| 2111 | |
| 2112 | export interface DynamicRoutingListParams { |
| 2113 | account_id: string; |
| 2114 | } |
| 2115 | |
| 2116 | export interface DynamicRoutingDeleteParams { |
| 2117 | account_id: string; |
| 2118 | } |
| 2119 | |
| 2120 | export interface DynamicRoutingCreateDeploymentParams { |
| 2121 | /** |
| 2122 | * Path param |
| 2123 | */ |
| 2124 | account_id: string; |
| 2125 | |
| 2126 | /** |
| 2127 | * Body param |
| 2128 | */ |
| 2129 | version_id: string; |
| 2130 | } |
| 2131 | |
| 2132 | export interface DynamicRoutingCreateVersionParams { |
| 2133 | /** |
| 2134 | * Path param |
| 2135 | */ |
| 2136 | account_id: string; |
| 2137 | |
| 2138 | /** |
| 2139 | * Body param |
| 2140 | */ |
| 2141 | elements: Array< |
| 2142 | | DynamicRoutingCreateVersionParams.UnionMember0 |
| 2143 | | DynamicRoutingCreateVersionParams.UnionMember1 |
| 2144 | | DynamicRoutingCreateVersionParams.UnionMember2 |
| 2145 | | DynamicRoutingCreateVersionParams.UnionMember3 |
| 2146 | | DynamicRoutingCreateVersionParams.UnionMember4 |
| 2147 | | DynamicRoutingCreateVersionParams.UnionMember5 |
| 2148 | >; |
| 2149 | } |
| 2150 | |
| 2151 | export namespace DynamicRoutingCreateVersionParams { |
| 2152 | export interface UnionMember0 { |
| 2153 | id: string; |
| 2154 | |
| 2155 | outputs: UnionMember0.Outputs; |
| 2156 | |
| 2157 | type: 'start'; |
| 2158 | } |
| 2159 | |
| 2160 | export namespace UnionMember0 { |
| 2161 | export interface Outputs { |
| 2162 | next: Outputs.Next; |
| 2163 | } |
| 2164 | |
| 2165 | export namespace Outputs { |
| 2166 | export interface Next { |
| 2167 | elementId: string; |
| 2168 | } |
| 2169 | } |
| 2170 | } |
| 2171 | |
| 2172 | export interface UnionMember1 { |
| 2173 | id: string; |
| 2174 | |
| 2175 | outputs: UnionMember1.Outputs; |
| 2176 | |
| 2177 | properties: UnionMember1.Properties; |
| 2178 | |
| 2179 | type: 'conditional'; |
| 2180 | } |
| 2181 | |
| 2182 | export namespace UnionMember1 { |
| 2183 | export interface Outputs { |
| 2184 | false: Outputs.False; |
| 2185 | |
| 2186 | true: Outputs.True; |
| 2187 | } |
| 2188 | |
| 2189 | export namespace Outputs { |
| 2190 | export interface False { |
| 2191 | elementId: string; |
| 2192 | } |
| 2193 | |
| 2194 | export interface True { |
| 2195 | elementId: string; |
| 2196 | } |
| 2197 | } |
| 2198 | |
| 2199 | export interface Properties { |
| 2200 | conditions?: unknown; |
| 2201 | } |
| 2202 | } |
| 2203 | |
| 2204 | export interface UnionMember2 { |
| 2205 | id: string; |
| 2206 | |
| 2207 | outputs: { [key: string]: UnionMember2.Outputs }; |
| 2208 | |
| 2209 | type: 'percentage'; |
| 2210 | } |
| 2211 | |
| 2212 | export namespace UnionMember2 { |
| 2213 | export interface Outputs { |
| 2214 | elementId: string; |
| 2215 | } |
| 2216 | } |
| 2217 | |
| 2218 | export interface UnionMember3 { |
| 2219 | id: string; |
| 2220 | |
| 2221 | outputs: UnionMember3.Outputs; |
| 2222 | |
| 2223 | properties: UnionMember3.Properties; |
| 2224 | |
| 2225 | type: 'rate'; |
| 2226 | } |
| 2227 | |
| 2228 | export namespace UnionMember3 { |
| 2229 | export interface Outputs { |
| 2230 | fallback: Outputs.Fallback; |
| 2231 | |
| 2232 | success: Outputs.Success; |
| 2233 | } |
| 2234 | |
| 2235 | export namespace Outputs { |
| 2236 | export interface Fallback { |
| 2237 | elementId: string; |
| 2238 | } |
| 2239 | |
| 2240 | export interface Success { |
| 2241 | elementId: string; |
| 2242 | } |
| 2243 | } |
| 2244 | |
| 2245 | export interface Properties { |
| 2246 | key: string; |
| 2247 | |
| 2248 | limit: number; |
| 2249 | |
| 2250 | limitType: 'count' | 'cost'; |
| 2251 | |
| 2252 | window: number; |
| 2253 | } |
| 2254 | } |
| 2255 | |
| 2256 | export interface UnionMember4 { |
| 2257 | id: string; |
| 2258 | |
| 2259 | outputs: UnionMember4.Outputs; |
| 2260 | |
| 2261 | properties: UnionMember4.Properties; |
| 2262 | |
| 2263 | type: 'model'; |
| 2264 | } |
| 2265 | |
| 2266 | export namespace UnionMember4 { |
| 2267 | export interface Outputs { |
| 2268 | fallback: Outputs.Fallback; |
| 2269 | |
| 2270 | success: Outputs.Success; |
| 2271 | } |
| 2272 | |
| 2273 | export namespace Outputs { |
| 2274 | export interface Fallback { |
| 2275 | elementId: string; |
| 2276 | } |
| 2277 | |
| 2278 | export interface Success { |
| 2279 | elementId: string; |
| 2280 | } |
| 2281 | } |
| 2282 | |
| 2283 | export interface Properties { |
| 2284 | model: string; |
| 2285 | |
| 2286 | provider: string; |
| 2287 | |
| 2288 | retries: number; |
| 2289 | |
| 2290 | timeout: number; |
| 2291 | } |
| 2292 | } |
| 2293 | |
| 2294 | export interface UnionMember5 { |
| 2295 | id: string; |
| 2296 | |
| 2297 | outputs: { [key: string]: UnionMember5.Outputs }; |
| 2298 | |
| 2299 | type: 'end'; |
| 2300 | } |
| 2301 | |
| 2302 | export namespace UnionMember5 { |
| 2303 | export interface Outputs { |
| 2304 | elementId: string; |
| 2305 | } |
| 2306 | } |
| 2307 | } |
| 2308 | |
| 2309 | export interface DynamicRoutingGetParams { |
| 2310 | account_id: string; |
| 2311 | } |
| 2312 | |
| 2313 | export interface DynamicRoutingGetVersionParams { |
| 2314 | account_id: string; |
| 2315 | } |
| 2316 | |
| 2317 | export interface DynamicRoutingListDeploymentsParams { |
| 2318 | account_id: string; |
| 2319 | } |
| 2320 | |
| 2321 | export interface DynamicRoutingListVersionsParams { |
| 2322 | account_id: string; |
| 2323 | } |
| 2324 | |
| 2325 | export declare namespace DynamicRouting { |
| 2326 | export { |
| 2327 | type DynamicRoutingCreateResponse as DynamicRoutingCreateResponse, |
| 2328 | type DynamicRoutingUpdateResponse as DynamicRoutingUpdateResponse, |
| 2329 | type DynamicRoutingListResponse as DynamicRoutingListResponse, |
| 2330 | type DynamicRoutingDeleteResponse as DynamicRoutingDeleteResponse, |
| 2331 | type DynamicRoutingCreateDeploymentResponse as DynamicRoutingCreateDeploymentResponse, |
| 2332 | type DynamicRoutingCreateVersionResponse as DynamicRoutingCreateVersionResponse, |
| 2333 | type DynamicRoutingGetResponse as DynamicRoutingGetResponse, |
| 2334 | type DynamicRoutingGetVersionResponse as DynamicRoutingGetVersionResponse, |
| 2335 | type DynamicRoutingListDeploymentsResponse as DynamicRoutingListDeploymentsResponse, |
| 2336 | type DynamicRoutingListVersionsResponse as DynamicRoutingListVersionsResponse, |
| 2337 | type DynamicRoutingCreateParams as DynamicRoutingCreateParams, |
| 2338 | type DynamicRoutingUpdateParams as DynamicRoutingUpdateParams, |
| 2339 | type DynamicRoutingListParams as DynamicRoutingListParams, |
| 2340 | type DynamicRoutingDeleteParams as DynamicRoutingDeleteParams, |
| 2341 | type DynamicRoutingCreateDeploymentParams as DynamicRoutingCreateDeploymentParams, |
| 2342 | type DynamicRoutingCreateVersionParams as DynamicRoutingCreateVersionParams, |
| 2343 | type DynamicRoutingGetParams as DynamicRoutingGetParams, |
| 2344 | type DynamicRoutingGetVersionParams as DynamicRoutingGetVersionParams, |
| 2345 | type DynamicRoutingListDeploymentsParams as DynamicRoutingListDeploymentsParams, |
| 2346 | type DynamicRoutingListVersionsParams as DynamicRoutingListVersionsParams, |
| 2347 | }; |
| 2348 | } |
| 2349 | |