@leaflow/sdk 0.98.0 → 0.100.0

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.
@@ -1448,6 +1448,7 @@ export interface components {
1448
1448
  PeeringListResponseBody: {
1449
1449
  items: components["schemas"]["PeeringResource"][];
1450
1450
  total: number;
1451
+ pagination: components["schemas"]["OffsetPagination"];
1451
1452
  };
1452
1453
  CreatePeeringRequestBody: {
1453
1454
  name: string;
@@ -1516,6 +1517,7 @@ export interface components {
1516
1517
  };
1517
1518
  BackupListResponseBody: {
1518
1519
  items: components["schemas"]["BackupResource"][] | null;
1520
+ pagination: components["schemas"]["OffsetPagination"];
1519
1521
  };
1520
1522
  CreateBackupRequestBody: {
1521
1523
  /** Format: uuid */
@@ -1664,6 +1666,7 @@ export interface components {
1664
1666
  };
1665
1667
  DiskTypeListResponseBody: {
1666
1668
  items: components["schemas"]["DiskTypeResource"][] | null;
1669
+ pagination: components["schemas"]["OffsetPagination"];
1667
1670
  };
1668
1671
  /**
1669
1672
  * @description Who can see and use an image. `public` — offered to every project by the platform. `private` — usable only by the project that owns it.
@@ -1734,12 +1737,7 @@ export interface components {
1734
1737
  };
1735
1738
  ImageListResponseBody: {
1736
1739
  items: components["schemas"]["ImageResource"][];
1737
- /** Format: int64 */
1738
- page: number;
1739
- /** Format: int64 */
1740
- page_size: number;
1741
- /** Format: int64 */
1742
- total_count?: number;
1740
+ pagination: components["schemas"]["OffsetPagination"];
1743
1741
  };
1744
1742
  InstanceTypeResource: {
1745
1743
  /** Format: uuid */
@@ -1787,12 +1785,7 @@ export interface components {
1787
1785
  };
1788
1786
  InstanceTypeListResponseBody: {
1789
1787
  items: components["schemas"]["InstanceTypeResource"][];
1790
- /** Format: int64 */
1791
- page: number;
1792
- /** Format: int64 */
1793
- page_size: number;
1794
- /** Format: int64 */
1795
- total_count?: number;
1788
+ pagination: components["schemas"]["OffsetPagination"];
1796
1789
  };
1797
1790
  RegionResource: {
1798
1791
  /** @description ISO 3166-1 alpha-2 country this region sits in. Two letters, uppercase. */
@@ -1806,6 +1799,7 @@ export interface components {
1806
1799
  };
1807
1800
  RegionListResponseBody: {
1808
1801
  items: components["schemas"]["RegionResource"][] | null;
1802
+ pagination: components["schemas"]["OffsetPagination"];
1809
1803
  };
1810
1804
  ZoneResource: {
1811
1805
  /** @description Display name for this zone, shown to tenants (Hong Kong A). The stable handle is code. */
@@ -1817,9 +1811,11 @@ export interface components {
1817
1811
  };
1818
1812
  ZoneListResponseBody: {
1819
1813
  items: components["schemas"]["ZoneResource"][] | null;
1814
+ pagination: components["schemas"]["OffsetPagination"];
1820
1815
  };
1821
1816
  DiskListResponseBody: {
1822
1817
  items: components["schemas"]["DiskResource"][] | null;
1818
+ pagination: components["schemas"]["OffsetPagination"];
1823
1819
  };
1824
1820
  CreateDiskRequestBody: {
1825
1821
  /**
@@ -1900,6 +1896,7 @@ export interface components {
1900
1896
  };
1901
1897
  FloatingIPListResponseBody: {
1902
1898
  items: components["schemas"]["FloatingIPResource"][] | null;
1899
+ pagination: components["schemas"]["OffsetPagination"];
1903
1900
  };
1904
1901
  AllocateFloatingIPRequestBody: {
1905
1902
  /** @description The address to allocate. Allocated by the platform when omitted */
@@ -2016,12 +2013,7 @@ export interface components {
2016
2013
  };
2017
2014
  InstanceListResponseBody: {
2018
2015
  items: components["schemas"]["InstanceResource"][];
2019
- /** Format: int64 */
2020
- page: number;
2021
- /** Format: int64 */
2022
- page_size: number;
2023
- /** Format: int64 */
2024
- total_count?: number;
2016
+ pagination: components["schemas"]["OffsetPagination"];
2025
2017
  };
2026
2018
  LaunchInstanceRequestBody: {
2027
2019
  /**
@@ -2194,6 +2186,7 @@ export interface components {
2194
2186
  };
2195
2187
  PortListResponseBody: {
2196
2188
  items: components["schemas"]["PortResource"][] | null;
2189
+ pagination: components["schemas"]["OffsetPagination"];
2197
2190
  };
2198
2191
  AttachPortRequestBody: {
2199
2192
  /** Format: uuid */
@@ -2231,12 +2224,7 @@ export interface components {
2231
2224
  };
2232
2225
  OperationLogListResponseBody: {
2233
2226
  items: components["schemas"]["OperationLogResource"][];
2234
- /** Format: int64 */
2235
- page: number;
2236
- /** Format: int64 */
2237
- page_size: number;
2238
- /** Format: int64 */
2239
- total_count?: number;
2227
+ pagination: components["schemas"]["OffsetPagination"];
2240
2228
  };
2241
2229
  CreatePortRequestBody: {
2242
2230
  name?: string;
@@ -2294,6 +2282,7 @@ export interface components {
2294
2282
  };
2295
2283
  PrivateNetworkListResponseBody: {
2296
2284
  items: components["schemas"]["PrivateNetworkResource"][] | null;
2285
+ pagination: components["schemas"]["OffsetPagination"];
2297
2286
  };
2298
2287
  CreatePrivateNetworkRequestBody: {
2299
2288
  /** @description Must be an RFC 1918 private CIDR with a prefix length between /8 and /24, for example `10.0.0.0/16` */
@@ -2332,6 +2321,7 @@ export interface components {
2332
2321
  };
2333
2322
  RouteListResponseBody: {
2334
2323
  items: components["schemas"]["RouteResource"][] | null;
2324
+ pagination: components["schemas"]["OffsetPagination"];
2335
2325
  };
2336
2326
  CreateRouteRequestBody: {
2337
2327
  description?: string;
@@ -2356,6 +2346,7 @@ export interface components {
2356
2346
  };
2357
2347
  SubnetListResponseBody: {
2358
2348
  items: components["schemas"]["SubnetResource"][] | null;
2349
+ pagination: components["schemas"]["OffsetPagination"];
2359
2350
  };
2360
2351
  CreateSubnetRequestBody: {
2361
2352
  /** @description Must fall inside the CIDR of the private network and must not overlap an existing subnet */
@@ -2380,6 +2371,7 @@ export interface components {
2380
2371
  };
2381
2372
  SecurityGroupListResponseBody: {
2382
2373
  items: components["schemas"]["SecurityGroupResource"][] | null;
2374
+ pagination: components["schemas"]["OffsetPagination"];
2383
2375
  };
2384
2376
  CreateSecurityGroupRequestBody: {
2385
2377
  description?: string;
@@ -2412,6 +2404,7 @@ export interface components {
2412
2404
  };
2413
2405
  SecurityRuleListResponseBody: {
2414
2406
  items: components["schemas"]["SecurityRuleResource"][] | null;
2407
+ pagination: components["schemas"]["OffsetPagination"];
2415
2408
  };
2416
2409
  CreateSecurityRuleRequestBody: {
2417
2410
  description?: string;
@@ -2476,6 +2469,7 @@ export interface components {
2476
2469
  };
2477
2470
  SnapshotListResponseBody: {
2478
2471
  items: components["schemas"]["SnapshotResource"][] | null;
2472
+ pagination: components["schemas"]["OffsetPagination"];
2479
2473
  };
2480
2474
  CreateSnapshotRequestBody: {
2481
2475
  /** Format: uuid */
@@ -2624,12 +2618,7 @@ export interface components {
2624
2618
  };
2625
2619
  DiskAttachmentList: {
2626
2620
  items: components["schemas"]["DiskAttachment"][];
2627
- /** Format: int64 */
2628
- page: number;
2629
- /** Format: int64 */
2630
- page_size: number;
2631
- /** Format: int64 */
2632
- total_count: number;
2621
+ pagination: components["schemas"]["OffsetPagination"];
2633
2622
  };
2634
2623
  PortAttachment: {
2635
2624
  /** Format: uuid */
@@ -2652,12 +2641,7 @@ export interface components {
2652
2641
  };
2653
2642
  PortAttachmentList: {
2654
2643
  items: components["schemas"]["PortAttachment"][];
2655
- /** Format: int64 */
2656
- page: number;
2657
- /** Format: int64 */
2658
- page_size: number;
2659
- /** Format: int64 */
2660
- total_count: number;
2644
+ pagination: components["schemas"]["OffsetPagination"];
2661
2645
  };
2662
2646
  LaunchInstanceResponseBody: {
2663
2647
  /** @description Instances created by this operation. Empty before resource creation starts. */
@@ -2684,12 +2668,7 @@ export interface components {
2684
2668
  };
2685
2669
  IPv4PoolListResponseBody: {
2686
2670
  items: components["schemas"]["IPv4PoolResource"][];
2687
- /** Format: int64 */
2688
- page: number;
2689
- /** Format: int64 */
2690
- page_size: number;
2691
- /** Format: int64 */
2692
- total_count?: number;
2671
+ pagination: components["schemas"]["OffsetPagination"];
2693
2672
  };
2694
2673
  IPv4Binding: {
2695
2674
  /** Format: uuid */
@@ -2724,6 +2703,15 @@ export interface components {
2724
2703
  /** @description The resource's name. A floating IP is named by its address. */
2725
2704
  name: string;
2726
2705
  };
2706
+ /** @description Pagination metadata for stable numbered pages. total_count is returned only when the operation can determine it without an unbounded scan. */
2707
+ OffsetPagination: {
2708
+ /** Format: int64 */
2709
+ page: number;
2710
+ /** Format: int64 */
2711
+ page_size: number;
2712
+ /** Format: int64 */
2713
+ total_count?: number;
2714
+ };
2727
2715
  /**
2728
2716
  * @description A decimal string, in the currency stated alongside it.
2729
2717
  *
@@ -2761,7 +2749,10 @@ export interface components {
2761
2749
  };
2762
2750
  };
2763
2751
  responses: never;
2764
- parameters: never;
2752
+ parameters: {
2753
+ Page: number;
2754
+ PageSize: number;
2755
+ };
2765
2756
  requestBodies: never;
2766
2757
  headers: never;
2767
2758
  pathItems: never;
@@ -2773,6 +2764,8 @@ export interface operations {
2773
2764
  query?: {
2774
2765
  /** @description Return only the backups of this disk */
2775
2766
  disk_id?: string;
2767
+ page?: components["parameters"]["Page"];
2768
+ page_size?: components["parameters"]["PageSize"];
2776
2769
  };
2777
2770
  header?: never;
2778
2771
  path?: never;
@@ -3009,10 +3002,12 @@ export interface operations {
3009
3002
  };
3010
3003
  "list-disk-types": {
3011
3004
  parameters: {
3012
- query: {
3013
- region_id: string;
3005
+ query?: {
3006
+ region_id?: string;
3014
3007
  /** @description `true` lists only system disk types and `false` only data disk types. Both are listed when omitted. */
3015
3008
  for_system?: boolean;
3009
+ page?: components["parameters"]["Page"];
3010
+ page_size?: components["parameters"]["PageSize"];
3016
3011
  };
3017
3012
  header?: never;
3018
3013
  path?: never;
@@ -3078,8 +3073,8 @@ export interface operations {
3078
3073
  region_id?: string;
3079
3074
  /** @description Return only public or only private images. Both are returned when omitted */
3080
3075
  visibility?: components["schemas"]["ImageVisibility"];
3081
- page?: number;
3082
- page_size?: number;
3076
+ page?: components["parameters"]["Page"];
3077
+ page_size?: components["parameters"]["PageSize"];
3083
3078
  };
3084
3079
  header?: never;
3085
3080
  path?: never;
@@ -3281,10 +3276,10 @@ export interface operations {
3281
3276
  };
3282
3277
  "list-instance-types": {
3283
3278
  parameters: {
3284
- query: {
3285
- region_id: string;
3286
- page?: number;
3287
- page_size?: number;
3279
+ query?: {
3280
+ region_id?: string;
3281
+ page?: components["parameters"]["Page"];
3282
+ page_size?: components["parameters"]["PageSize"];
3288
3283
  };
3289
3284
  header?: never;
3290
3285
  path?: never;
@@ -3314,7 +3309,10 @@ export interface operations {
3314
3309
  };
3315
3310
  "list-regions": {
3316
3311
  parameters: {
3317
- query?: never;
3312
+ query?: {
3313
+ page?: components["parameters"]["Page"];
3314
+ page_size?: components["parameters"]["PageSize"];
3315
+ };
3318
3316
  header?: never;
3319
3317
  path?: never;
3320
3318
  cookie?: never;
@@ -3343,7 +3341,10 @@ export interface operations {
3343
3341
  };
3344
3342
  "list-availability-zones": {
3345
3343
  parameters: {
3346
- query?: never;
3344
+ query?: {
3345
+ page?: components["parameters"]["Page"];
3346
+ page_size?: components["parameters"]["PageSize"];
3347
+ };
3347
3348
  header?: never;
3348
3349
  path: {
3349
3350
  regionId: string;
@@ -3378,6 +3379,8 @@ export interface operations {
3378
3379
  region_id?: string;
3379
3380
  /** @description Supplied together with `region_code` to filter attachable disks */
3380
3381
  availability_zone_id?: string;
3382
+ page?: components["parameters"]["Page"];
3383
+ page_size?: components["parameters"]["PageSize"];
3381
3384
  };
3382
3385
  header?: never;
3383
3386
  path?: never;
@@ -3616,7 +3619,10 @@ export interface operations {
3616
3619
  };
3617
3620
  "list-floating-ips": {
3618
3621
  parameters: {
3619
- query?: never;
3622
+ query?: {
3623
+ page?: components["parameters"]["Page"];
3624
+ page_size?: components["parameters"]["PageSize"];
3625
+ };
3620
3626
  header?: never;
3621
3627
  path?: never;
3622
3628
  cookie?: never;
@@ -3853,8 +3859,8 @@ export interface operations {
3853
3859
  query?: {
3854
3860
  /** @description Only instances carrying this label, written as `key:value` — for example `env:prod`. Both halves are matched exactly */
3855
3861
  label?: string;
3856
- page?: number;
3857
- page_size?: number;
3862
+ page?: components["parameters"]["Page"];
3863
+ page_size?: components["parameters"]["PageSize"];
3858
3864
  };
3859
3865
  header?: never;
3860
3866
  path?: never;
@@ -4404,8 +4410,8 @@ export interface operations {
4404
4410
  "list-instance-disks": {
4405
4411
  parameters: {
4406
4412
  query?: {
4407
- page?: number;
4408
- page_size?: number;
4413
+ page?: components["parameters"]["Page"];
4414
+ page_size?: components["parameters"]["PageSize"];
4409
4415
  };
4410
4416
  header?: never;
4411
4417
  path: {
@@ -4572,8 +4578,8 @@ export interface operations {
4572
4578
  "list-instance-ports": {
4573
4579
  parameters: {
4574
4580
  query?: {
4575
- page?: number;
4576
- page_size?: number;
4581
+ page?: components["parameters"]["Page"];
4582
+ page_size?: components["parameters"]["PageSize"];
4577
4583
  };
4578
4584
  header?: never;
4579
4585
  path: {
@@ -4675,8 +4681,8 @@ export interface operations {
4675
4681
  query?: {
4676
4682
  /** @description Return a single kind of operation; the value matches the operation id of the endpoint */
4677
4683
  action?: string;
4678
- page?: number;
4679
- page_size?: number;
4684
+ page?: components["parameters"]["Page"];
4685
+ page_size?: components["parameters"]["PageSize"];
4680
4686
  };
4681
4687
  header?: never;
4682
4688
  path?: never;
@@ -4706,7 +4712,10 @@ export interface operations {
4706
4712
  };
4707
4713
  "list-ports": {
4708
4714
  parameters: {
4709
- query?: never;
4715
+ query?: {
4716
+ page?: components["parameters"]["Page"];
4717
+ page_size?: components["parameters"]["PageSize"];
4718
+ };
4710
4719
  header?: never;
4711
4720
  path?: never;
4712
4721
  cookie?: never;
@@ -4800,6 +4809,8 @@ export interface operations {
4800
4809
  query?: {
4801
4810
  /** @description Returns every region when omitted */
4802
4811
  region_id?: string;
4812
+ page?: components["parameters"]["Page"];
4813
+ page_size?: components["parameters"]["PageSize"];
4803
4814
  };
4804
4815
  header?: never;
4805
4816
  path?: never;
@@ -5048,7 +5059,10 @@ export interface operations {
5048
5059
  };
5049
5060
  "list-routes": {
5050
5061
  parameters: {
5051
- query?: never;
5062
+ query?: {
5063
+ page?: components["parameters"]["Page"];
5064
+ page_size?: components["parameters"]["PageSize"];
5065
+ };
5052
5066
  header?: never;
5053
5067
  path: {
5054
5068
  privateNetworkId: string;
@@ -5144,7 +5158,10 @@ export interface operations {
5144
5158
  };
5145
5159
  "list-subnets": {
5146
5160
  parameters: {
5147
- query?: never;
5161
+ query?: {
5162
+ page?: components["parameters"]["Page"];
5163
+ page_size?: components["parameters"]["PageSize"];
5164
+ };
5148
5165
  header?: never;
5149
5166
  path: {
5150
5167
  privateNetworkId: string;
@@ -5277,6 +5294,8 @@ export interface operations {
5277
5294
  region_id?: string;
5278
5295
  /** @description Return only the security groups of this private network */
5279
5296
  private_network_id?: string;
5297
+ page?: components["parameters"]["Page"];
5298
+ page_size?: components["parameters"]["PageSize"];
5280
5299
  };
5281
5300
  header?: never;
5282
5301
  path?: never;
@@ -5434,7 +5453,10 @@ export interface operations {
5434
5453
  };
5435
5454
  "list-security-group-rules": {
5436
5455
  parameters: {
5437
- query?: never;
5456
+ query?: {
5457
+ page?: components["parameters"]["Page"];
5458
+ page_size?: components["parameters"]["PageSize"];
5459
+ };
5438
5460
  header?: never;
5439
5461
  path: {
5440
5462
  securityGroupId: string;
@@ -5533,6 +5555,8 @@ export interface operations {
5533
5555
  query?: {
5534
5556
  /** @description Return only the snapshots of this disk */
5535
5557
  disk_id?: string;
5558
+ page?: components["parameters"]["Page"];
5559
+ page_size?: components["parameters"]["PageSize"];
5536
5560
  };
5537
5561
  header?: never;
5538
5562
  path?: never;
@@ -5732,10 +5756,10 @@ export interface operations {
5732
5756
  };
5733
5757
  "list-ipv4-pools": {
5734
5758
  parameters: {
5735
- query: {
5736
- region_id: string;
5737
- page?: number;
5738
- page_size?: number;
5759
+ query?: {
5760
+ region_id?: string;
5761
+ page?: components["parameters"]["Page"];
5762
+ page_size?: components["parameters"]["PageSize"];
5739
5763
  };
5740
5764
  header?: never;
5741
5765
  path?: never;
@@ -5766,8 +5790,8 @@ export interface operations {
5766
5790
  "list-peerings": {
5767
5791
  parameters: {
5768
5792
  query?: {
5769
- limit?: number;
5770
- offset?: number;
5793
+ page?: components["parameters"]["Page"];
5794
+ page_size?: components["parameters"]["PageSize"];
5771
5795
  };
5772
5796
  header?: never;
5773
5797
  path?: never;
@@ -49,8 +49,12 @@ export type ListTypePreferencesResult = operations["list-type-preferences"]["res
49
49
  export type ListTypePreferencesQuery = operations["list-type-preferences"]["parameters"]["query"];
50
50
  /** The success response body of `PUT /api/v1/preferences/types/{type}`. */
51
51
  export type UpdateTypePreferenceResult = operations["update-type-preference"]["responses"][200]["content"]["application/json"];
52
+ /** The query parameters of `PUT /api/v1/preferences/types/{type}`. */
53
+ export type UpdateTypePreferenceQuery = operations["update-type-preference"]["parameters"]["query"];
52
54
  /** The request body of `PUT /api/v1/preferences/types/{type}`. */
53
55
  export type UpdateTypePreferenceBody = NonNullable<operations["update-type-preference"]["requestBody"]>["content"]["application/json"];
56
+ /** The query parameters of `DELETE /api/v1/preferences/types/{type}`. */
57
+ export type DeleteTypePreferenceQuery = operations["delete-type-preference"]["parameters"]["query"];
54
58
  /** The success response body of `GET /api/v1/channels`. */
55
59
  export type ListUserChannelsResult = operations["list-user-channels"]["responses"][200]["content"]["application/json"];
56
60
  /** The query parameters of `GET /api/v1/channels`. */