@smartspace/api-client 0.1.0-pr.1221.6ffb083 → 0.1.0-pr.1221.f543d3c
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/generated/config/api.js +2 -2
- package/dist/generated/config/api.msw.js +2 -2
- package/dist/generated/config/models/reportingGetRequestsParams.d.ts +2 -0
- package/dist/generated/config/models/reportingGetTokensParams.d.ts +2 -0
- package/dist/generated/config/models/reportingReportSeries.d.ts +4 -0
- package/dist/generated/config/models/reportingSplit.d.ts +3 -1
- package/dist/generated/config/models/reportingSplit.js +3 -1
- package/dist/generated/config/zod.d.ts +10 -2
- package/dist/generated/config/zod.js +12 -4
- package/package.json +1 -1
|
@@ -1070,7 +1070,7 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
1070
1070
|
});
|
|
1071
1071
|
};
|
|
1072
1072
|
/**
|
|
1073
|
-
* @summary Gets the number of
|
|
1073
|
+
* @summary Gets the number of flow invocations by a specified duration
|
|
1074
1074
|
*/
|
|
1075
1075
|
const reportingGetRequests = (duration, params) => {
|
|
1076
1076
|
return (0, instance_1.customInstance)({ url: `/v1/Reporting/Requests/by/${duration}`, method: 'GET',
|
|
@@ -1078,7 +1078,7 @@ const getSmartSpaceAdminAPI = () => {
|
|
|
1078
1078
|
});
|
|
1079
1079
|
};
|
|
1080
1080
|
/**
|
|
1081
|
-
* @summary Gets the
|
|
1081
|
+
* @summary Gets the tokens used by a specified duration, with cost where the model call was priced and the count of calls that were not
|
|
1082
1082
|
*/
|
|
1083
1083
|
const reportingGetTokens = (duration, params) => {
|
|
1084
1084
|
return (0, instance_1.customInstance)({ url: `/v1/Reporting/Tokens/by/${duration}`, method: 'GET',
|
|
@@ -421,9 +421,9 @@ const getPlanCalculateSmartSpaceUpgradeCostResponseMock = (overrideResponse = {}
|
|
|
421
421
|
exports.getPlanCalculateSmartSpaceUpgradeCostResponseMock = getPlanCalculateSmartSpaceUpgradeCostResponseMock;
|
|
422
422
|
const getPlanGetSmartSpacePlanUsageResponseMock = (overrideResponse = {}) => ({ currentWorkSpaces: faker_1.faker.number.int({ min: undefined, max: undefined }), maxWorkSpaces: faker_1.faker.helpers.arrayElement([faker_1.faker.helpers.arrayElement([faker_1.faker.number.int({ min: undefined, max: undefined }), null]), undefined]), ...overrideResponse });
|
|
423
423
|
exports.getPlanGetSmartSpacePlanUsageResponseMock = getPlanGetSmartSpacePlanUsageResponseMock;
|
|
424
|
-
const getReportingGetRequestsResponseMock = (overrideResponse = {}) => ({ categories: Array.from({ length: faker_1.faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => (`${faker_1.faker.date.past().toISOString().split('.')[0]}Z`)), series: Array.from({ length: faker_1.faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ data: Array.from({ length: faker_1.faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => (faker_1.faker.number.int({ min: undefined, max: undefined }))), name: faker_1.faker.string.alpha({ length: { min: 10, max: 20 } }) })), ...overrideResponse });
|
|
424
|
+
const getReportingGetRequestsResponseMock = (overrideResponse = {}) => ({ categories: Array.from({ length: faker_1.faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => (`${faker_1.faker.date.past().toISOString().split('.')[0]}Z`)), series: Array.from({ length: faker_1.faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ cost: faker_1.faker.helpers.arrayElement([Array.from({ length: faker_1.faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => (faker_1.faker.helpers.arrayElement([faker_1.faker.number.float({ min: undefined, max: undefined, fractionDigits: 2 }), null]))), undefined]), data: Array.from({ length: faker_1.faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => (faker_1.faker.number.int({ min: undefined, max: undefined }))), name: faker_1.faker.string.alpha({ length: { min: 10, max: 20 } }), unpriced: faker_1.faker.helpers.arrayElement([Array.from({ length: faker_1.faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => (faker_1.faker.number.int({ min: undefined, max: undefined }))), undefined]) })), ...overrideResponse });
|
|
425
425
|
exports.getReportingGetRequestsResponseMock = getReportingGetRequestsResponseMock;
|
|
426
|
-
const getReportingGetTokensResponseMock = (overrideResponse = {}) => ({ categories: Array.from({ length: faker_1.faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => (`${faker_1.faker.date.past().toISOString().split('.')[0]}Z`)), series: Array.from({ length: faker_1.faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ data: Array.from({ length: faker_1.faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => (faker_1.faker.number.int({ min: undefined, max: undefined }))), name: faker_1.faker.string.alpha({ length: { min: 10, max: 20 } }) })), ...overrideResponse });
|
|
426
|
+
const getReportingGetTokensResponseMock = (overrideResponse = {}) => ({ categories: Array.from({ length: faker_1.faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => (`${faker_1.faker.date.past().toISOString().split('.')[0]}Z`)), series: Array.from({ length: faker_1.faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ cost: faker_1.faker.helpers.arrayElement([Array.from({ length: faker_1.faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => (faker_1.faker.helpers.arrayElement([faker_1.faker.number.float({ min: undefined, max: undefined, fractionDigits: 2 }), null]))), undefined]), data: Array.from({ length: faker_1.faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => (faker_1.faker.number.int({ min: undefined, max: undefined }))), name: faker_1.faker.string.alpha({ length: { min: 10, max: 20 } }), unpriced: faker_1.faker.helpers.arrayElement([Array.from({ length: faker_1.faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => (faker_1.faker.number.int({ min: undefined, max: undefined }))), undefined]) })), ...overrideResponse });
|
|
427
427
|
exports.getReportingGetTokensResponseMock = getReportingGetTokensResponseMock;
|
|
428
428
|
const getServicePrincipalsGetServicePrincipalsResponseMock = (overrideResponse = {}) => ({ data: Array.from({ length: faker_1.faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => ({ id: faker_1.faker.string.alpha({ length: { min: 10, max: 20 } }), lastActiveAt: faker_1.faker.helpers.arrayElement([faker_1.faker.helpers.arrayElement([`${faker_1.faker.date.past().toISOString().split('.')[0]}Z`, null]), undefined]), name: faker_1.faker.string.alpha({ length: { min: 10, max: 20 } }), permissions: Array.from({ length: faker_1.faker.number.int({ min: 1, max: 10 }) }, (_, i) => i + 1).map(() => (faker_1.faker.string.alpha({ length: { min: 10, max: 20 } }))) })), scoped: faker_1.faker.helpers.arrayElement([faker_1.faker.datatype.boolean(), undefined]), total: faker_1.faker.number.int({ min: undefined, max: undefined }), ...overrideResponse });
|
|
429
429
|
exports.getServicePrincipalsGetServicePrincipalsResponseMock = getServicePrincipalsGetServicePrincipalsResponseMock;
|
|
@@ -9,9 +9,11 @@
|
|
|
9
9
|
* error. `ReportingSplit` accepts any string and autocompletes these.
|
|
10
10
|
*/
|
|
11
11
|
export declare const ReportingSplit: {
|
|
12
|
+
readonly Flow: "Flow";
|
|
12
13
|
readonly WorkSpace: "WorkSpace";
|
|
13
|
-
readonly
|
|
14
|
+
readonly DataSet: "DataSet";
|
|
14
15
|
readonly User: "User";
|
|
16
|
+
readonly Model: "Model";
|
|
15
17
|
};
|
|
16
18
|
export type ReportingSplitKnown = (typeof ReportingSplit)[keyof typeof ReportingSplit];
|
|
17
19
|
export type ReportingSplit = ReportingSplitKnown | (string & {});
|
|
@@ -13,9 +13,11 @@ exports.isKnownReportingSplit = isKnownReportingSplit;
|
|
|
13
13
|
* error. `ReportingSplit` accepts any string and autocompletes these.
|
|
14
14
|
*/
|
|
15
15
|
exports.ReportingSplit = {
|
|
16
|
+
Flow: 'Flow',
|
|
16
17
|
WorkSpace: 'WorkSpace',
|
|
17
|
-
|
|
18
|
+
DataSet: 'DataSet',
|
|
18
19
|
User: 'User',
|
|
20
|
+
Model: 'Model',
|
|
19
21
|
};
|
|
20
22
|
function isKnownReportingSplit(value) {
|
|
21
23
|
return Object.values(exports.ReportingSplit).includes(value);
|
|
@@ -3017,7 +3017,7 @@ export declare const planGetSmartSpacePlanUsageResponse: zod.ZodObject<{
|
|
|
3017
3017
|
maxWorkSpaces: zod.ZodOptional<zod.ZodNullable<zod.ZodNumber>>;
|
|
3018
3018
|
}, zod.core.$strip>;
|
|
3019
3019
|
/**
|
|
3020
|
-
* @summary Gets the number of
|
|
3020
|
+
* @summary Gets the number of flow invocations by a specified duration
|
|
3021
3021
|
*/
|
|
3022
3022
|
export declare const reportingGetRequestsParams: zod.ZodObject<{
|
|
3023
3023
|
duration: zod.ZodString;
|
|
@@ -3026,18 +3026,22 @@ export declare const reportingGetRequestsQueryParams: zod.ZodObject<{
|
|
|
3026
3026
|
split: zod.ZodOptional<zod.ZodString>;
|
|
3027
3027
|
workSpaceIds: zod.ZodOptional<zod.ZodString>;
|
|
3028
3028
|
userIds: zod.ZodOptional<zod.ZodString>;
|
|
3029
|
+
flowIds: zod.ZodOptional<zod.ZodString>;
|
|
3030
|
+
flowRunIds: zod.ZodOptional<zod.ZodString>;
|
|
3029
3031
|
reportFromDate: zod.ZodOptional<zod.ZodISODateTime>;
|
|
3030
3032
|
reportToDate: zod.ZodOptional<zod.ZodISODateTime>;
|
|
3031
3033
|
}, zod.core.$strict>;
|
|
3032
3034
|
export declare const reportingGetRequestsResponse: zod.ZodObject<{
|
|
3033
3035
|
categories: zod.ZodArray<zod.ZodISODateTime>;
|
|
3034
3036
|
series: zod.ZodArray<zod.ZodObject<{
|
|
3037
|
+
cost: zod.ZodOptional<zod.ZodNullable<zod.ZodArray<zod.ZodNullable<zod.ZodNumber>>>>;
|
|
3035
3038
|
data: zod.ZodArray<zod.ZodNumber>;
|
|
3036
3039
|
name: zod.ZodString;
|
|
3040
|
+
unpriced: zod.ZodOptional<zod.ZodNullable<zod.ZodArray<zod.ZodNumber>>>;
|
|
3037
3041
|
}, zod.core.$strip>>;
|
|
3038
3042
|
}, zod.core.$strip>;
|
|
3039
3043
|
/**
|
|
3040
|
-
* @summary Gets the
|
|
3044
|
+
* @summary Gets the tokens used by a specified duration, with cost where the model call was priced and the count of calls that were not
|
|
3041
3045
|
*/
|
|
3042
3046
|
export declare const reportingGetTokensParams: zod.ZodObject<{
|
|
3043
3047
|
duration: zod.ZodString;
|
|
@@ -3046,14 +3050,18 @@ export declare const reportingGetTokensQueryParams: zod.ZodObject<{
|
|
|
3046
3050
|
split: zod.ZodOptional<zod.ZodString>;
|
|
3047
3051
|
workSpaceIds: zod.ZodOptional<zod.ZodString>;
|
|
3048
3052
|
userIds: zod.ZodOptional<zod.ZodString>;
|
|
3053
|
+
flowIds: zod.ZodOptional<zod.ZodString>;
|
|
3054
|
+
flowRunIds: zod.ZodOptional<zod.ZodString>;
|
|
3049
3055
|
reportFromDate: zod.ZodOptional<zod.ZodISODateTime>;
|
|
3050
3056
|
reportToDate: zod.ZodOptional<zod.ZodISODateTime>;
|
|
3051
3057
|
}, zod.core.$strict>;
|
|
3052
3058
|
export declare const reportingGetTokensResponse: zod.ZodObject<{
|
|
3053
3059
|
categories: zod.ZodArray<zod.ZodISODateTime>;
|
|
3054
3060
|
series: zod.ZodArray<zod.ZodObject<{
|
|
3061
|
+
cost: zod.ZodOptional<zod.ZodNullable<zod.ZodArray<zod.ZodNullable<zod.ZodNumber>>>>;
|
|
3055
3062
|
data: zod.ZodArray<zod.ZodNumber>;
|
|
3056
3063
|
name: zod.ZodString;
|
|
3064
|
+
unpriced: zod.ZodOptional<zod.ZodNullable<zod.ZodArray<zod.ZodNumber>>>;
|
|
3057
3065
|
}, zod.core.$strip>>;
|
|
3058
3066
|
}, zod.core.$strip>;
|
|
3059
3067
|
/**
|
|
@@ -2716,7 +2716,7 @@ exports.planGetSmartSpacePlanUsageResponse = zod_1.default.object({
|
|
|
2716
2716
|
"maxWorkSpaces": zod_1.default.number().nullish()
|
|
2717
2717
|
});
|
|
2718
2718
|
/**
|
|
2719
|
-
* @summary Gets the number of
|
|
2719
|
+
* @summary Gets the number of flow invocations by a specified duration
|
|
2720
2720
|
*/
|
|
2721
2721
|
exports.reportingGetRequestsParams = zod_1.default.strictObject({
|
|
2722
2722
|
"duration": zod_1.default.string()
|
|
@@ -2725,18 +2725,22 @@ exports.reportingGetRequestsQueryParams = zod_1.default.strictObject({
|
|
|
2725
2725
|
"split": zod_1.default.string().optional(),
|
|
2726
2726
|
"workSpaceIds": zod_1.default.string().optional(),
|
|
2727
2727
|
"userIds": zod_1.default.string().optional(),
|
|
2728
|
+
"flowIds": zod_1.default.string().optional(),
|
|
2729
|
+
"flowRunIds": zod_1.default.string().optional(),
|
|
2728
2730
|
"reportFromDate": zod_1.default.iso.datetime({ "offset": true, "local": true }).optional(),
|
|
2729
2731
|
"reportToDate": zod_1.default.iso.datetime({ "offset": true, "local": true }).optional()
|
|
2730
2732
|
});
|
|
2731
2733
|
exports.reportingGetRequestsResponse = zod_1.default.object({
|
|
2732
2734
|
"categories": zod_1.default.array(zod_1.default.iso.datetime({ "offset": true, "local": true })),
|
|
2733
2735
|
"series": zod_1.default.array(zod_1.default.object({
|
|
2736
|
+
"cost": zod_1.default.array(zod_1.default.number().nullable()).nullish(),
|
|
2734
2737
|
"data": zod_1.default.array(zod_1.default.number()),
|
|
2735
|
-
"name": zod_1.default.string()
|
|
2738
|
+
"name": zod_1.default.string(),
|
|
2739
|
+
"unpriced": zod_1.default.array(zod_1.default.number()).nullish()
|
|
2736
2740
|
}))
|
|
2737
2741
|
});
|
|
2738
2742
|
/**
|
|
2739
|
-
* @summary Gets the
|
|
2743
|
+
* @summary Gets the tokens used by a specified duration, with cost where the model call was priced and the count of calls that were not
|
|
2740
2744
|
*/
|
|
2741
2745
|
exports.reportingGetTokensParams = zod_1.default.strictObject({
|
|
2742
2746
|
"duration": zod_1.default.string()
|
|
@@ -2745,14 +2749,18 @@ exports.reportingGetTokensQueryParams = zod_1.default.strictObject({
|
|
|
2745
2749
|
"split": zod_1.default.string().optional(),
|
|
2746
2750
|
"workSpaceIds": zod_1.default.string().optional(),
|
|
2747
2751
|
"userIds": zod_1.default.string().optional(),
|
|
2752
|
+
"flowIds": zod_1.default.string().optional(),
|
|
2753
|
+
"flowRunIds": zod_1.default.string().optional(),
|
|
2748
2754
|
"reportFromDate": zod_1.default.iso.datetime({ "offset": true, "local": true }).optional(),
|
|
2749
2755
|
"reportToDate": zod_1.default.iso.datetime({ "offset": true, "local": true }).optional()
|
|
2750
2756
|
});
|
|
2751
2757
|
exports.reportingGetTokensResponse = zod_1.default.object({
|
|
2752
2758
|
"categories": zod_1.default.array(zod_1.default.iso.datetime({ "offset": true, "local": true })),
|
|
2753
2759
|
"series": zod_1.default.array(zod_1.default.object({
|
|
2760
|
+
"cost": zod_1.default.array(zod_1.default.number().nullable()).nullish(),
|
|
2754
2761
|
"data": zod_1.default.array(zod_1.default.number()),
|
|
2755
|
-
"name": zod_1.default.string()
|
|
2762
|
+
"name": zod_1.default.string(),
|
|
2763
|
+
"unpriced": zod_1.default.array(zod_1.default.number()).nullish()
|
|
2756
2764
|
}))
|
|
2757
2765
|
});
|
|
2758
2766
|
/**
|