@smplkit/sdk 3.0.47 → 3.0.49
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/dist/index.cjs +226 -54
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +133 -10
- package/dist/index.d.ts +133 -10
- package/dist/index.js +226 -54
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1239,6 +1239,7 @@ interface components {
|
|
|
1239
1239
|
FlagListResponse: {
|
|
1240
1240
|
/** Data */
|
|
1241
1241
|
data: components["schemas"]["FlagResource"][];
|
|
1242
|
+
meta: components["schemas"]["ListMeta"];
|
|
1242
1243
|
};
|
|
1243
1244
|
/**
|
|
1244
1245
|
* FlagRequest
|
|
@@ -1399,6 +1400,7 @@ interface components {
|
|
|
1399
1400
|
FlagSourceListResponse: {
|
|
1400
1401
|
/** Data */
|
|
1401
1402
|
data: components["schemas"]["FlagSourceResource"][];
|
|
1403
|
+
meta: components["schemas"]["ListMeta"];
|
|
1402
1404
|
};
|
|
1403
1405
|
/**
|
|
1404
1406
|
* FlagSourceResource
|
|
@@ -1448,6 +1450,13 @@ interface components {
|
|
|
1448
1450
|
*/
|
|
1449
1451
|
value: unknown;
|
|
1450
1452
|
};
|
|
1453
|
+
/**
|
|
1454
|
+
* ListMeta
|
|
1455
|
+
* @description Top-level ``meta`` block included on every JSON:API list response.
|
|
1456
|
+
*/
|
|
1457
|
+
ListMeta: {
|
|
1458
|
+
pagination: components["schemas"]["PaginationMeta"];
|
|
1459
|
+
};
|
|
1451
1460
|
/**
|
|
1452
1461
|
* ManualReviewItem
|
|
1453
1462
|
* @description A flag rule that could not be safely modified by the bulk
|
|
@@ -1475,6 +1484,37 @@ interface components {
|
|
|
1475
1484
|
*/
|
|
1476
1485
|
reason: string;
|
|
1477
1486
|
};
|
|
1487
|
+
/**
|
|
1488
|
+
* PaginationMeta
|
|
1489
|
+
* @description Pagination block returned inside ``meta`` on every list response.
|
|
1490
|
+
*
|
|
1491
|
+
* ``page`` and ``size`` are always present and echo the parameters that
|
|
1492
|
+
* served the response (their defaults when the client omitted them).
|
|
1493
|
+
* ``total`` and ``total_pages`` are present only when the request included
|
|
1494
|
+
* ``meta[total]=true``.
|
|
1495
|
+
*/
|
|
1496
|
+
PaginationMeta: {
|
|
1497
|
+
/**
|
|
1498
|
+
* Page
|
|
1499
|
+
* @description 1-based page number returned.
|
|
1500
|
+
*/
|
|
1501
|
+
page: number;
|
|
1502
|
+
/**
|
|
1503
|
+
* Size
|
|
1504
|
+
* @description Number of items per page.
|
|
1505
|
+
*/
|
|
1506
|
+
size: number;
|
|
1507
|
+
/**
|
|
1508
|
+
* Total
|
|
1509
|
+
* @description Total number of matching items across all pages. Present only when the request included `meta[total]=true`.
|
|
1510
|
+
*/
|
|
1511
|
+
total?: number | null;
|
|
1512
|
+
/**
|
|
1513
|
+
* Total Pages
|
|
1514
|
+
* @description Total number of pages at the requested page size. Present only when the request included `meta[total]=true`.
|
|
1515
|
+
*/
|
|
1516
|
+
total_pages?: number | null;
|
|
1517
|
+
};
|
|
1478
1518
|
/**
|
|
1479
1519
|
* RemoveReferencesAttributes
|
|
1480
1520
|
* @description Counts and follow-ups returned by the remove-references action.
|
|
@@ -1594,6 +1634,7 @@ interface components {
|
|
|
1594
1634
|
UsageListResponse: {
|
|
1595
1635
|
/** Data */
|
|
1596
1636
|
data: components["schemas"]["UsageResource"][];
|
|
1637
|
+
meta: components["schemas"]["ListMeta"];
|
|
1597
1638
|
};
|
|
1598
1639
|
/**
|
|
1599
1640
|
* UsageResource
|
|
@@ -2093,8 +2134,18 @@ declare class ManagementConfigClient {
|
|
|
2093
2134
|
description?: string;
|
|
2094
2135
|
parent?: string | Config | null;
|
|
2095
2136
|
}): Config;
|
|
2096
|
-
/**
|
|
2097
|
-
|
|
2137
|
+
/**
|
|
2138
|
+
* List configs.
|
|
2139
|
+
*
|
|
2140
|
+
* Server defaults are `pageNumber=1`, `pageSize=1000` (capped at 1000).
|
|
2141
|
+
* Omit both to fetch the first page; pass them through to walk further
|
|
2142
|
+
* pages. The wrapper does not loop on the customer's behalf — the
|
|
2143
|
+
* customer chooses how to paginate.
|
|
2144
|
+
*/
|
|
2145
|
+
list(params?: {
|
|
2146
|
+
pageNumber?: number;
|
|
2147
|
+
pageSize?: number;
|
|
2148
|
+
}): Promise<Config[]>;
|
|
2098
2149
|
/** Fetch a config by id. */
|
|
2099
2150
|
get(id: string): Promise<Config>;
|
|
2100
2151
|
/** Delete a config by id. */
|
|
@@ -2530,8 +2581,18 @@ declare class ManagementFlagsClient {
|
|
|
2530
2581
|
}): JsonFlag;
|
|
2531
2582
|
/** Fetch a flag by id. */
|
|
2532
2583
|
get(id: string): Promise<Flag>;
|
|
2533
|
-
/**
|
|
2534
|
-
|
|
2584
|
+
/**
|
|
2585
|
+
* List flags.
|
|
2586
|
+
*
|
|
2587
|
+
* Server defaults are `pageNumber=1`, `pageSize=1000` (capped at 1000).
|
|
2588
|
+
* Omit both to fetch the first page; pass them through to walk further
|
|
2589
|
+
* pages. The wrapper does not loop on the customer's behalf — the
|
|
2590
|
+
* customer chooses how to paginate.
|
|
2591
|
+
*/
|
|
2592
|
+
list(params?: {
|
|
2593
|
+
pageNumber?: number;
|
|
2594
|
+
pageSize?: number;
|
|
2595
|
+
}): Promise<Flag[]>;
|
|
2535
2596
|
/** Delete a flag by id. */
|
|
2536
2597
|
delete(id: string): Promise<void>;
|
|
2537
2598
|
/** @internal — called by `Flag.delete()`. */
|
|
@@ -2798,7 +2859,18 @@ declare class LoggersClient {
|
|
|
2798
2859
|
new(id: string, options?: {
|
|
2799
2860
|
managed?: boolean;
|
|
2800
2861
|
}): Logger;
|
|
2801
|
-
|
|
2862
|
+
/**
|
|
2863
|
+
* List loggers.
|
|
2864
|
+
*
|
|
2865
|
+
* Server defaults are `pageNumber=1`, `pageSize=1000` (capped at 1000).
|
|
2866
|
+
* Omit both to fetch the first page; pass them through to walk further
|
|
2867
|
+
* pages. The wrapper does not loop on the customer's behalf — the
|
|
2868
|
+
* customer chooses how to paginate.
|
|
2869
|
+
*/
|
|
2870
|
+
list(params?: {
|
|
2871
|
+
pageNumber?: number;
|
|
2872
|
+
pageSize?: number;
|
|
2873
|
+
}): Promise<Logger[]>;
|
|
2802
2874
|
get(id: string): Promise<Logger>;
|
|
2803
2875
|
delete(id: string): Promise<void>;
|
|
2804
2876
|
/** @internal — called by `Logger.delete()`. */
|
|
@@ -2826,7 +2898,18 @@ declare class LogGroupsClient {
|
|
|
2826
2898
|
name?: string;
|
|
2827
2899
|
group?: string;
|
|
2828
2900
|
}): LogGroup;
|
|
2829
|
-
|
|
2901
|
+
/**
|
|
2902
|
+
* List log groups.
|
|
2903
|
+
*
|
|
2904
|
+
* Server defaults are `pageNumber=1`, `pageSize=1000` (capped at 1000).
|
|
2905
|
+
* Omit both to fetch the first page; pass them through to walk further
|
|
2906
|
+
* pages. The wrapper does not loop on the customer's behalf — the
|
|
2907
|
+
* customer chooses how to paginate.
|
|
2908
|
+
*/
|
|
2909
|
+
list(params?: {
|
|
2910
|
+
pageNumber?: number;
|
|
2911
|
+
pageSize?: number;
|
|
2912
|
+
}): Promise<LogGroup[]>;
|
|
2830
2913
|
get(id: string): Promise<LogGroup>;
|
|
2831
2914
|
delete(id: string): Promise<void>;
|
|
2832
2915
|
/** @internal — called by `LogGroup.delete()`. */
|
|
@@ -2897,7 +2980,18 @@ declare class EnvironmentsClient {
|
|
|
2897
2980
|
color?: Color | string | null;
|
|
2898
2981
|
classification?: EnvironmentClassification;
|
|
2899
2982
|
}): Environment;
|
|
2900
|
-
|
|
2983
|
+
/**
|
|
2984
|
+
* List environments.
|
|
2985
|
+
*
|
|
2986
|
+
* Server defaults are `pageNumber=1`, `pageSize=1000` (capped at 1000).
|
|
2987
|
+
* Omit both to fetch the first page; pass them through to walk further
|
|
2988
|
+
* pages. The wrapper does not loop on the customer's behalf — the
|
|
2989
|
+
* customer chooses how to paginate.
|
|
2990
|
+
*/
|
|
2991
|
+
list(params?: {
|
|
2992
|
+
pageNumber?: number;
|
|
2993
|
+
pageSize?: number;
|
|
2994
|
+
}): Promise<Environment[]>;
|
|
2901
2995
|
get(id: string): Promise<Environment>;
|
|
2902
2996
|
delete(id: string): Promise<void>;
|
|
2903
2997
|
/** @internal */
|
|
@@ -2919,7 +3013,18 @@ declare class ContextTypesClient {
|
|
|
2919
3013
|
name?: string;
|
|
2920
3014
|
attributes?: Record<string, Record<string, any>>;
|
|
2921
3015
|
}): ContextType;
|
|
2922
|
-
|
|
3016
|
+
/**
|
|
3017
|
+
* List context types.
|
|
3018
|
+
*
|
|
3019
|
+
* Server defaults are `pageNumber=1`, `pageSize=1000` (capped at 1000).
|
|
3020
|
+
* Omit both to fetch the first page; pass them through to walk further
|
|
3021
|
+
* pages. The wrapper does not loop on the customer's behalf — the
|
|
3022
|
+
* customer chooses how to paginate.
|
|
3023
|
+
*/
|
|
3024
|
+
list(params?: {
|
|
3025
|
+
pageNumber?: number;
|
|
3026
|
+
pageSize?: number;
|
|
3027
|
+
}): Promise<ContextType[]>;
|
|
2923
3028
|
get(id: string): Promise<ContextType>;
|
|
2924
3029
|
delete(id: string): Promise<void>;
|
|
2925
3030
|
/** @internal */
|
|
@@ -2965,8 +3070,18 @@ declare class ContextsClient {
|
|
|
2965
3070
|
flush(): Promise<void>;
|
|
2966
3071
|
/** Number of contexts awaiting flush. */
|
|
2967
3072
|
get pendingCount(): number;
|
|
2968
|
-
/**
|
|
2969
|
-
|
|
3073
|
+
/**
|
|
3074
|
+
* List contexts of a given type.
|
|
3075
|
+
*
|
|
3076
|
+
* Server defaults are `pageNumber=1`, `pageSize=1000` (capped at 1000).
|
|
3077
|
+
* Omit both to fetch the first page; pass them through to walk further
|
|
3078
|
+
* pages. The wrapper does not loop on the customer's behalf — the
|
|
3079
|
+
* customer chooses how to paginate.
|
|
3080
|
+
*/
|
|
3081
|
+
list(type: string, params?: {
|
|
3082
|
+
pageNumber?: number;
|
|
3083
|
+
pageSize?: number;
|
|
3084
|
+
}): Promise<Context[]>;
|
|
2970
3085
|
/** Fetch a context by composite id (`"type:key"`) or by separate type and key. */
|
|
2971
3086
|
get(idOrType: string, key?: string): Promise<Context>;
|
|
2972
3087
|
/** Delete a context by composite id (`"type:key"`) or by separate type and key. */
|
|
@@ -3159,6 +3274,10 @@ declare class ConfigClient {
|
|
|
3159
3274
|
* (set via `_resolveManagement`) so runtime + management share one HTTP
|
|
3160
3275
|
* client; falls back to a direct GET when running without `SmplClient`
|
|
3161
3276
|
* bootstrap (e.g. unit tests that construct `ConfigClient` directly).
|
|
3277
|
+
*
|
|
3278
|
+
* Pages through the server until a short page (less than the requested
|
|
3279
|
+
* size) is returned — accounts with more than 1000 configs would
|
|
3280
|
+
* otherwise silently lose everything past page one.
|
|
3162
3281
|
*/
|
|
3163
3282
|
private _listConfigs;
|
|
3164
3283
|
/**
|
|
@@ -3260,6 +3379,10 @@ declare class LoggingClient {
|
|
|
3260
3379
|
* (set via `_resolveManagement`); falls back to a direct GET when running
|
|
3261
3380
|
* without `SmplClient` bootstrap (e.g. unit tests that construct
|
|
3262
3381
|
* `LoggingClient` directly).
|
|
3382
|
+
*
|
|
3383
|
+
* Pages through the server until a short page (less than the requested
|
|
3384
|
+
* size) is returned — accounts with more than 1000 loggers would
|
|
3385
|
+
* otherwise silently lose everything past page one.
|
|
3263
3386
|
*/
|
|
3264
3387
|
private _listLoggers;
|
|
3265
3388
|
/** @internal — see {@link _listLoggers}. */
|
package/dist/index.d.ts
CHANGED
|
@@ -1239,6 +1239,7 @@ interface components {
|
|
|
1239
1239
|
FlagListResponse: {
|
|
1240
1240
|
/** Data */
|
|
1241
1241
|
data: components["schemas"]["FlagResource"][];
|
|
1242
|
+
meta: components["schemas"]["ListMeta"];
|
|
1242
1243
|
};
|
|
1243
1244
|
/**
|
|
1244
1245
|
* FlagRequest
|
|
@@ -1399,6 +1400,7 @@ interface components {
|
|
|
1399
1400
|
FlagSourceListResponse: {
|
|
1400
1401
|
/** Data */
|
|
1401
1402
|
data: components["schemas"]["FlagSourceResource"][];
|
|
1403
|
+
meta: components["schemas"]["ListMeta"];
|
|
1402
1404
|
};
|
|
1403
1405
|
/**
|
|
1404
1406
|
* FlagSourceResource
|
|
@@ -1448,6 +1450,13 @@ interface components {
|
|
|
1448
1450
|
*/
|
|
1449
1451
|
value: unknown;
|
|
1450
1452
|
};
|
|
1453
|
+
/**
|
|
1454
|
+
* ListMeta
|
|
1455
|
+
* @description Top-level ``meta`` block included on every JSON:API list response.
|
|
1456
|
+
*/
|
|
1457
|
+
ListMeta: {
|
|
1458
|
+
pagination: components["schemas"]["PaginationMeta"];
|
|
1459
|
+
};
|
|
1451
1460
|
/**
|
|
1452
1461
|
* ManualReviewItem
|
|
1453
1462
|
* @description A flag rule that could not be safely modified by the bulk
|
|
@@ -1475,6 +1484,37 @@ interface components {
|
|
|
1475
1484
|
*/
|
|
1476
1485
|
reason: string;
|
|
1477
1486
|
};
|
|
1487
|
+
/**
|
|
1488
|
+
* PaginationMeta
|
|
1489
|
+
* @description Pagination block returned inside ``meta`` on every list response.
|
|
1490
|
+
*
|
|
1491
|
+
* ``page`` and ``size`` are always present and echo the parameters that
|
|
1492
|
+
* served the response (their defaults when the client omitted them).
|
|
1493
|
+
* ``total`` and ``total_pages`` are present only when the request included
|
|
1494
|
+
* ``meta[total]=true``.
|
|
1495
|
+
*/
|
|
1496
|
+
PaginationMeta: {
|
|
1497
|
+
/**
|
|
1498
|
+
* Page
|
|
1499
|
+
* @description 1-based page number returned.
|
|
1500
|
+
*/
|
|
1501
|
+
page: number;
|
|
1502
|
+
/**
|
|
1503
|
+
* Size
|
|
1504
|
+
* @description Number of items per page.
|
|
1505
|
+
*/
|
|
1506
|
+
size: number;
|
|
1507
|
+
/**
|
|
1508
|
+
* Total
|
|
1509
|
+
* @description Total number of matching items across all pages. Present only when the request included `meta[total]=true`.
|
|
1510
|
+
*/
|
|
1511
|
+
total?: number | null;
|
|
1512
|
+
/**
|
|
1513
|
+
* Total Pages
|
|
1514
|
+
* @description Total number of pages at the requested page size. Present only when the request included `meta[total]=true`.
|
|
1515
|
+
*/
|
|
1516
|
+
total_pages?: number | null;
|
|
1517
|
+
};
|
|
1478
1518
|
/**
|
|
1479
1519
|
* RemoveReferencesAttributes
|
|
1480
1520
|
* @description Counts and follow-ups returned by the remove-references action.
|
|
@@ -1594,6 +1634,7 @@ interface components {
|
|
|
1594
1634
|
UsageListResponse: {
|
|
1595
1635
|
/** Data */
|
|
1596
1636
|
data: components["schemas"]["UsageResource"][];
|
|
1637
|
+
meta: components["schemas"]["ListMeta"];
|
|
1597
1638
|
};
|
|
1598
1639
|
/**
|
|
1599
1640
|
* UsageResource
|
|
@@ -2093,8 +2134,18 @@ declare class ManagementConfigClient {
|
|
|
2093
2134
|
description?: string;
|
|
2094
2135
|
parent?: string | Config | null;
|
|
2095
2136
|
}): Config;
|
|
2096
|
-
/**
|
|
2097
|
-
|
|
2137
|
+
/**
|
|
2138
|
+
* List configs.
|
|
2139
|
+
*
|
|
2140
|
+
* Server defaults are `pageNumber=1`, `pageSize=1000` (capped at 1000).
|
|
2141
|
+
* Omit both to fetch the first page; pass them through to walk further
|
|
2142
|
+
* pages. The wrapper does not loop on the customer's behalf — the
|
|
2143
|
+
* customer chooses how to paginate.
|
|
2144
|
+
*/
|
|
2145
|
+
list(params?: {
|
|
2146
|
+
pageNumber?: number;
|
|
2147
|
+
pageSize?: number;
|
|
2148
|
+
}): Promise<Config[]>;
|
|
2098
2149
|
/** Fetch a config by id. */
|
|
2099
2150
|
get(id: string): Promise<Config>;
|
|
2100
2151
|
/** Delete a config by id. */
|
|
@@ -2530,8 +2581,18 @@ declare class ManagementFlagsClient {
|
|
|
2530
2581
|
}): JsonFlag;
|
|
2531
2582
|
/** Fetch a flag by id. */
|
|
2532
2583
|
get(id: string): Promise<Flag>;
|
|
2533
|
-
/**
|
|
2534
|
-
|
|
2584
|
+
/**
|
|
2585
|
+
* List flags.
|
|
2586
|
+
*
|
|
2587
|
+
* Server defaults are `pageNumber=1`, `pageSize=1000` (capped at 1000).
|
|
2588
|
+
* Omit both to fetch the first page; pass them through to walk further
|
|
2589
|
+
* pages. The wrapper does not loop on the customer's behalf — the
|
|
2590
|
+
* customer chooses how to paginate.
|
|
2591
|
+
*/
|
|
2592
|
+
list(params?: {
|
|
2593
|
+
pageNumber?: number;
|
|
2594
|
+
pageSize?: number;
|
|
2595
|
+
}): Promise<Flag[]>;
|
|
2535
2596
|
/** Delete a flag by id. */
|
|
2536
2597
|
delete(id: string): Promise<void>;
|
|
2537
2598
|
/** @internal — called by `Flag.delete()`. */
|
|
@@ -2798,7 +2859,18 @@ declare class LoggersClient {
|
|
|
2798
2859
|
new(id: string, options?: {
|
|
2799
2860
|
managed?: boolean;
|
|
2800
2861
|
}): Logger;
|
|
2801
|
-
|
|
2862
|
+
/**
|
|
2863
|
+
* List loggers.
|
|
2864
|
+
*
|
|
2865
|
+
* Server defaults are `pageNumber=1`, `pageSize=1000` (capped at 1000).
|
|
2866
|
+
* Omit both to fetch the first page; pass them through to walk further
|
|
2867
|
+
* pages. The wrapper does not loop on the customer's behalf — the
|
|
2868
|
+
* customer chooses how to paginate.
|
|
2869
|
+
*/
|
|
2870
|
+
list(params?: {
|
|
2871
|
+
pageNumber?: number;
|
|
2872
|
+
pageSize?: number;
|
|
2873
|
+
}): Promise<Logger[]>;
|
|
2802
2874
|
get(id: string): Promise<Logger>;
|
|
2803
2875
|
delete(id: string): Promise<void>;
|
|
2804
2876
|
/** @internal — called by `Logger.delete()`. */
|
|
@@ -2826,7 +2898,18 @@ declare class LogGroupsClient {
|
|
|
2826
2898
|
name?: string;
|
|
2827
2899
|
group?: string;
|
|
2828
2900
|
}): LogGroup;
|
|
2829
|
-
|
|
2901
|
+
/**
|
|
2902
|
+
* List log groups.
|
|
2903
|
+
*
|
|
2904
|
+
* Server defaults are `pageNumber=1`, `pageSize=1000` (capped at 1000).
|
|
2905
|
+
* Omit both to fetch the first page; pass them through to walk further
|
|
2906
|
+
* pages. The wrapper does not loop on the customer's behalf — the
|
|
2907
|
+
* customer chooses how to paginate.
|
|
2908
|
+
*/
|
|
2909
|
+
list(params?: {
|
|
2910
|
+
pageNumber?: number;
|
|
2911
|
+
pageSize?: number;
|
|
2912
|
+
}): Promise<LogGroup[]>;
|
|
2830
2913
|
get(id: string): Promise<LogGroup>;
|
|
2831
2914
|
delete(id: string): Promise<void>;
|
|
2832
2915
|
/** @internal — called by `LogGroup.delete()`. */
|
|
@@ -2897,7 +2980,18 @@ declare class EnvironmentsClient {
|
|
|
2897
2980
|
color?: Color | string | null;
|
|
2898
2981
|
classification?: EnvironmentClassification;
|
|
2899
2982
|
}): Environment;
|
|
2900
|
-
|
|
2983
|
+
/**
|
|
2984
|
+
* List environments.
|
|
2985
|
+
*
|
|
2986
|
+
* Server defaults are `pageNumber=1`, `pageSize=1000` (capped at 1000).
|
|
2987
|
+
* Omit both to fetch the first page; pass them through to walk further
|
|
2988
|
+
* pages. The wrapper does not loop on the customer's behalf — the
|
|
2989
|
+
* customer chooses how to paginate.
|
|
2990
|
+
*/
|
|
2991
|
+
list(params?: {
|
|
2992
|
+
pageNumber?: number;
|
|
2993
|
+
pageSize?: number;
|
|
2994
|
+
}): Promise<Environment[]>;
|
|
2901
2995
|
get(id: string): Promise<Environment>;
|
|
2902
2996
|
delete(id: string): Promise<void>;
|
|
2903
2997
|
/** @internal */
|
|
@@ -2919,7 +3013,18 @@ declare class ContextTypesClient {
|
|
|
2919
3013
|
name?: string;
|
|
2920
3014
|
attributes?: Record<string, Record<string, any>>;
|
|
2921
3015
|
}): ContextType;
|
|
2922
|
-
|
|
3016
|
+
/**
|
|
3017
|
+
* List context types.
|
|
3018
|
+
*
|
|
3019
|
+
* Server defaults are `pageNumber=1`, `pageSize=1000` (capped at 1000).
|
|
3020
|
+
* Omit both to fetch the first page; pass them through to walk further
|
|
3021
|
+
* pages. The wrapper does not loop on the customer's behalf — the
|
|
3022
|
+
* customer chooses how to paginate.
|
|
3023
|
+
*/
|
|
3024
|
+
list(params?: {
|
|
3025
|
+
pageNumber?: number;
|
|
3026
|
+
pageSize?: number;
|
|
3027
|
+
}): Promise<ContextType[]>;
|
|
2923
3028
|
get(id: string): Promise<ContextType>;
|
|
2924
3029
|
delete(id: string): Promise<void>;
|
|
2925
3030
|
/** @internal */
|
|
@@ -2965,8 +3070,18 @@ declare class ContextsClient {
|
|
|
2965
3070
|
flush(): Promise<void>;
|
|
2966
3071
|
/** Number of contexts awaiting flush. */
|
|
2967
3072
|
get pendingCount(): number;
|
|
2968
|
-
/**
|
|
2969
|
-
|
|
3073
|
+
/**
|
|
3074
|
+
* List contexts of a given type.
|
|
3075
|
+
*
|
|
3076
|
+
* Server defaults are `pageNumber=1`, `pageSize=1000` (capped at 1000).
|
|
3077
|
+
* Omit both to fetch the first page; pass them through to walk further
|
|
3078
|
+
* pages. The wrapper does not loop on the customer's behalf — the
|
|
3079
|
+
* customer chooses how to paginate.
|
|
3080
|
+
*/
|
|
3081
|
+
list(type: string, params?: {
|
|
3082
|
+
pageNumber?: number;
|
|
3083
|
+
pageSize?: number;
|
|
3084
|
+
}): Promise<Context[]>;
|
|
2970
3085
|
/** Fetch a context by composite id (`"type:key"`) or by separate type and key. */
|
|
2971
3086
|
get(idOrType: string, key?: string): Promise<Context>;
|
|
2972
3087
|
/** Delete a context by composite id (`"type:key"`) or by separate type and key. */
|
|
@@ -3159,6 +3274,10 @@ declare class ConfigClient {
|
|
|
3159
3274
|
* (set via `_resolveManagement`) so runtime + management share one HTTP
|
|
3160
3275
|
* client; falls back to a direct GET when running without `SmplClient`
|
|
3161
3276
|
* bootstrap (e.g. unit tests that construct `ConfigClient` directly).
|
|
3277
|
+
*
|
|
3278
|
+
* Pages through the server until a short page (less than the requested
|
|
3279
|
+
* size) is returned — accounts with more than 1000 configs would
|
|
3280
|
+
* otherwise silently lose everything past page one.
|
|
3162
3281
|
*/
|
|
3163
3282
|
private _listConfigs;
|
|
3164
3283
|
/**
|
|
@@ -3260,6 +3379,10 @@ declare class LoggingClient {
|
|
|
3260
3379
|
* (set via `_resolveManagement`); falls back to a direct GET when running
|
|
3261
3380
|
* without `SmplClient` bootstrap (e.g. unit tests that construct
|
|
3262
3381
|
* `LoggingClient` directly).
|
|
3382
|
+
*
|
|
3383
|
+
* Pages through the server until a short page (less than the requested
|
|
3384
|
+
* size) is returned — accounts with more than 1000 loggers would
|
|
3385
|
+
* otherwise silently lose everything past page one.
|
|
3263
3386
|
*/
|
|
3264
3387
|
private _listLoggers;
|
|
3265
3388
|
/** @internal — see {@link _listLoggers}. */
|