@smartspace/api-client 0.1.0-pr.1220.13525fe → 0.1.0-pr.1221.165ad2c

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.
@@ -1060,7 +1060,7 @@ const getSmartSpaceAdminAPI = () => {
1060
1060
  });
1061
1061
  };
1062
1062
  /**
1063
- * @summary Gets the number of flow invocations by a specified duration
1063
+ * @summary Gets the number of requests by a specified duration
1064
1064
  */
1065
1065
  const reportingGetRequests = (duration, params) => {
1066
1066
  return (0, instance_1.customInstance)({ url: `/v1/Reporting/Requests/by/${duration}`, method: 'GET',
@@ -1068,7 +1068,7 @@ const getSmartSpaceAdminAPI = () => {
1068
1068
  });
1069
1069
  };
1070
1070
  /**
1071
- * @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
1071
+ * @summary Gets the number of tokens by a specified duration
1072
1072
  */
1073
1073
  const reportingGetTokens = (duration, params) => {
1074
1074
  return (0, instance_1.customInstance)({ url: `/v1/Reporting/Tokens/by/${duration}`, method: 'GET',
@@ -419,9 +419,9 @@ const getPlanCalculateSmartSpaceUpgradeCostResponseMock = (overrideResponse = {}
419
419
  exports.getPlanCalculateSmartSpaceUpgradeCostResponseMock = getPlanCalculateSmartSpaceUpgradeCostResponseMock;
420
420
  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 });
421
421
  exports.getPlanGetSmartSpacePlanUsageResponseMock = getPlanGetSmartSpacePlanUsageResponseMock;
422
- 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 });
422
+ 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 });
423
423
  exports.getReportingGetRequestsResponseMock = getReportingGetRequestsResponseMock;
424
- 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 });
424
+ 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 });
425
425
  exports.getReportingGetTokensResponseMock = getReportingGetTokensResponseMock;
426
426
  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 });
427
427
  exports.getServicePrincipalsGetServicePrincipalsResponseMock = getServicePrincipalsGetServicePrincipalsResponseMock;
@@ -9,8 +9,6 @@ export type ReportingGetRequestsParams = {
9
9
  split?: ReportingSplit;
10
10
  workSpaceIds?: string;
11
11
  userIds?: string;
12
- flowIds?: string;
13
- flowRunIds?: string;
14
12
  reportFromDate?: string;
15
13
  reportToDate?: string;
16
14
  };
@@ -9,8 +9,6 @@ export type ReportingGetTokensParams = {
9
9
  split?: ReportingSplit;
10
10
  workSpaceIds?: string;
11
11
  userIds?: string;
12
- flowIds?: string;
13
- flowRunIds?: string;
14
12
  reportFromDate?: string;
15
13
  reportToDate?: string;
16
14
  };
@@ -5,10 +5,6 @@
5
5
  * OpenAPI spec version: v1
6
6
  */
7
7
  export interface ReportingReportSeries {
8
- /** @nullable */
9
- cost?: (number | null)[] | null;
10
8
  data: number[];
11
9
  name: string;
12
- /** @nullable */
13
- unpriced?: number[] | null;
14
10
  }
@@ -9,11 +9,9 @@
9
9
  * error. `ReportingSplit` accepts any string and autocompletes these.
10
10
  */
11
11
  export declare const ReportingSplit: {
12
- readonly Flow: "Flow";
13
12
  readonly WorkSpace: "WorkSpace";
14
- readonly DataSet: "DataSet";
13
+ readonly Step: "Step";
15
14
  readonly User: "User";
16
- readonly Model: "Model";
17
15
  };
18
16
  export type ReportingSplitKnown = (typeof ReportingSplit)[keyof typeof ReportingSplit];
19
17
  export type ReportingSplit = ReportingSplitKnown | (string & {});
@@ -13,11 +13,9 @@ exports.isKnownReportingSplit = isKnownReportingSplit;
13
13
  * error. `ReportingSplit` accepts any string and autocompletes these.
14
14
  */
15
15
  exports.ReportingSplit = {
16
- Flow: 'Flow',
17
16
  WorkSpace: 'WorkSpace',
18
- DataSet: 'DataSet',
17
+ Step: 'Step',
19
18
  User: 'User',
20
- Model: 'Model',
21
19
  };
22
20
  function isKnownReportingSplit(value) {
23
21
  return Object.values(exports.ReportingSplit).includes(value);
@@ -2956,7 +2956,7 @@ export declare const planGetSmartSpacePlanUsageResponse: zod.ZodObject<{
2956
2956
  maxWorkSpaces: zod.ZodOptional<zod.ZodNullable<zod.ZodNumber>>;
2957
2957
  }, zod.core.$strip>;
2958
2958
  /**
2959
- * @summary Gets the number of flow invocations by a specified duration
2959
+ * @summary Gets the number of requests by a specified duration
2960
2960
  */
2961
2961
  export declare const reportingGetRequestsParams: zod.ZodObject<{
2962
2962
  duration: zod.ZodString;
@@ -2965,22 +2965,18 @@ export declare const reportingGetRequestsQueryParams: zod.ZodObject<{
2965
2965
  split: zod.ZodOptional<zod.ZodString>;
2966
2966
  workSpaceIds: zod.ZodOptional<zod.ZodString>;
2967
2967
  userIds: zod.ZodOptional<zod.ZodString>;
2968
- flowIds: zod.ZodOptional<zod.ZodString>;
2969
- flowRunIds: zod.ZodOptional<zod.ZodString>;
2970
2968
  reportFromDate: zod.ZodOptional<zod.ZodISODateTime>;
2971
2969
  reportToDate: zod.ZodOptional<zod.ZodISODateTime>;
2972
2970
  }, zod.core.$strict>;
2973
2971
  export declare const reportingGetRequestsResponse: zod.ZodObject<{
2974
2972
  categories: zod.ZodArray<zod.ZodISODateTime>;
2975
2973
  series: zod.ZodArray<zod.ZodObject<{
2976
- cost: zod.ZodOptional<zod.ZodNullable<zod.ZodArray<zod.ZodNullable<zod.ZodNumber>>>>;
2977
2974
  data: zod.ZodArray<zod.ZodNumber>;
2978
2975
  name: zod.ZodString;
2979
- unpriced: zod.ZodOptional<zod.ZodNullable<zod.ZodArray<zod.ZodNumber>>>;
2980
2976
  }, zod.core.$strip>>;
2981
2977
  }, zod.core.$strip>;
2982
2978
  /**
2983
- * @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
2979
+ * @summary Gets the number of tokens by a specified duration
2984
2980
  */
2985
2981
  export declare const reportingGetTokensParams: zod.ZodObject<{
2986
2982
  duration: zod.ZodString;
@@ -2989,18 +2985,14 @@ export declare const reportingGetTokensQueryParams: zod.ZodObject<{
2989
2985
  split: zod.ZodOptional<zod.ZodString>;
2990
2986
  workSpaceIds: zod.ZodOptional<zod.ZodString>;
2991
2987
  userIds: zod.ZodOptional<zod.ZodString>;
2992
- flowIds: zod.ZodOptional<zod.ZodString>;
2993
- flowRunIds: zod.ZodOptional<zod.ZodString>;
2994
2988
  reportFromDate: zod.ZodOptional<zod.ZodISODateTime>;
2995
2989
  reportToDate: zod.ZodOptional<zod.ZodISODateTime>;
2996
2990
  }, zod.core.$strict>;
2997
2991
  export declare const reportingGetTokensResponse: zod.ZodObject<{
2998
2992
  categories: zod.ZodArray<zod.ZodISODateTime>;
2999
2993
  series: zod.ZodArray<zod.ZodObject<{
3000
- cost: zod.ZodOptional<zod.ZodNullable<zod.ZodArray<zod.ZodNullable<zod.ZodNumber>>>>;
3001
2994
  data: zod.ZodArray<zod.ZodNumber>;
3002
2995
  name: zod.ZodString;
3003
- unpriced: zod.ZodOptional<zod.ZodNullable<zod.ZodArray<zod.ZodNumber>>>;
3004
2996
  }, zod.core.$strip>>;
3005
2997
  }, zod.core.$strip>;
3006
2998
  /**
@@ -2676,7 +2676,7 @@ exports.planGetSmartSpacePlanUsageResponse = zod_1.default.object({
2676
2676
  "maxWorkSpaces": zod_1.default.number().nullish()
2677
2677
  });
2678
2678
  /**
2679
- * @summary Gets the number of flow invocations by a specified duration
2679
+ * @summary Gets the number of requests by a specified duration
2680
2680
  */
2681
2681
  exports.reportingGetRequestsParams = zod_1.default.strictObject({
2682
2682
  "duration": zod_1.default.string()
@@ -2685,22 +2685,18 @@ exports.reportingGetRequestsQueryParams = zod_1.default.strictObject({
2685
2685
  "split": zod_1.default.string().optional(),
2686
2686
  "workSpaceIds": zod_1.default.string().optional(),
2687
2687
  "userIds": zod_1.default.string().optional(),
2688
- "flowIds": zod_1.default.string().optional(),
2689
- "flowRunIds": zod_1.default.string().optional(),
2690
2688
  "reportFromDate": zod_1.default.iso.datetime({ "offset": true, "local": true }).optional(),
2691
2689
  "reportToDate": zod_1.default.iso.datetime({ "offset": true, "local": true }).optional()
2692
2690
  });
2693
2691
  exports.reportingGetRequestsResponse = zod_1.default.object({
2694
2692
  "categories": zod_1.default.array(zod_1.default.iso.datetime({ "offset": true, "local": true })),
2695
2693
  "series": zod_1.default.array(zod_1.default.object({
2696
- "cost": zod_1.default.array(zod_1.default.number().nullable()).nullish(),
2697
2694
  "data": zod_1.default.array(zod_1.default.number()),
2698
- "name": zod_1.default.string(),
2699
- "unpriced": zod_1.default.array(zod_1.default.number()).nullish()
2695
+ "name": zod_1.default.string()
2700
2696
  }))
2701
2697
  });
2702
2698
  /**
2703
- * @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
2699
+ * @summary Gets the number of tokens by a specified duration
2704
2700
  */
2705
2701
  exports.reportingGetTokensParams = zod_1.default.strictObject({
2706
2702
  "duration": zod_1.default.string()
@@ -2709,18 +2705,14 @@ exports.reportingGetTokensQueryParams = zod_1.default.strictObject({
2709
2705
  "split": zod_1.default.string().optional(),
2710
2706
  "workSpaceIds": zod_1.default.string().optional(),
2711
2707
  "userIds": zod_1.default.string().optional(),
2712
- "flowIds": zod_1.default.string().optional(),
2713
- "flowRunIds": zod_1.default.string().optional(),
2714
2708
  "reportFromDate": zod_1.default.iso.datetime({ "offset": true, "local": true }).optional(),
2715
2709
  "reportToDate": zod_1.default.iso.datetime({ "offset": true, "local": true }).optional()
2716
2710
  });
2717
2711
  exports.reportingGetTokensResponse = zod_1.default.object({
2718
2712
  "categories": zod_1.default.array(zod_1.default.iso.datetime({ "offset": true, "local": true })),
2719
2713
  "series": zod_1.default.array(zod_1.default.object({
2720
- "cost": zod_1.default.array(zod_1.default.number().nullable()).nullish(),
2721
2714
  "data": zod_1.default.array(zod_1.default.number()),
2722
- "name": zod_1.default.string(),
2723
- "unpriced": zod_1.default.array(zod_1.default.number()).nullish()
2715
+ "name": zod_1.default.string()
2724
2716
  }))
2725
2717
  });
2726
2718
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smartspace/api-client",
3
- "version": "0.1.0-pr.1220.13525fe",
3
+ "version": "0.1.0-pr.1221.165ad2c",
4
4
  "description": "Generated TypeScript client for SmartSpace APIs",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",