@lokalise/harmony 1.27.3-exp-fixTeamsTypes.8 → 1.27.3

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.
Files changed (69) hide show
  1. package/README.md +8 -7
  2. package/dist/harmony.cjs +1 -4
  3. package/dist/harmony.cjs.map +1 -1
  4. package/dist/harmony.css +3 -2
  5. package/dist/harmony.mjs +2 -5
  6. package/dist/harmony104.cjs +1 -1
  7. package/dist/harmony104.mjs +1 -1
  8. package/dist/harmony105.cjs +1 -1
  9. package/dist/harmony105.mjs +1 -1
  10. package/dist/harmony113.cjs +4 -4
  11. package/dist/harmony113.mjs +4 -4
  12. package/dist/harmony118.cjs +1 -1
  13. package/dist/harmony118.mjs +1 -1
  14. package/dist/harmony122.cjs +6 -7
  15. package/dist/harmony122.cjs.map +1 -1
  16. package/dist/harmony122.mjs +6 -7
  17. package/dist/harmony122.mjs.map +1 -1
  18. package/dist/harmony123.cjs +6 -56
  19. package/dist/harmony123.cjs.map +1 -1
  20. package/dist/harmony123.mjs +6 -56
  21. package/dist/harmony123.mjs.map +1 -1
  22. package/dist/harmony124.cjs +54 -57
  23. package/dist/harmony124.cjs.map +1 -1
  24. package/dist/harmony124.mjs +55 -58
  25. package/dist/harmony124.mjs.map +1 -1
  26. package/dist/harmony125.cjs +60 -18
  27. package/dist/harmony125.cjs.map +1 -1
  28. package/dist/harmony125.mjs +59 -17
  29. package/dist/harmony125.mjs.map +1 -1
  30. package/dist/harmony126.cjs +19 -7
  31. package/dist/harmony126.cjs.map +1 -1
  32. package/dist/harmony126.mjs +18 -6
  33. package/dist/harmony126.mjs.map +1 -1
  34. package/dist/harmony15.cjs +1 -1
  35. package/dist/harmony15.mjs +1 -1
  36. package/dist/harmony22.cjs +1 -1
  37. package/dist/harmony22.mjs +1 -1
  38. package/dist/harmony23.cjs +1 -1
  39. package/dist/harmony23.mjs +1 -1
  40. package/dist/harmony30.cjs +1 -1
  41. package/dist/harmony30.mjs +1 -1
  42. package/dist/harmony4.cjs.map +1 -1
  43. package/dist/harmony4.mjs.map +1 -1
  44. package/dist/harmony59.cjs +29 -63
  45. package/dist/harmony59.cjs.map +1 -1
  46. package/dist/harmony59.mjs +29 -63
  47. package/dist/harmony59.mjs.map +1 -1
  48. package/dist/harmony71.cjs.map +1 -1
  49. package/dist/harmony71.mjs.map +1 -1
  50. package/dist/harmony83.cjs +2 -2
  51. package/dist/harmony83.mjs +2 -2
  52. package/dist/harmony93.cjs +18 -16
  53. package/dist/harmony93.cjs.map +1 -1
  54. package/dist/harmony93.mjs +18 -16
  55. package/dist/harmony93.mjs.map +1 -1
  56. package/dist/harmony94.cjs +14 -18
  57. package/dist/harmony94.cjs.map +1 -1
  58. package/dist/harmony94.mjs +14 -18
  59. package/dist/harmony94.mjs.map +1 -1
  60. package/dist/harmony95.cjs +16 -14
  61. package/dist/harmony95.cjs.map +1 -1
  62. package/dist/harmony95.mjs +16 -14
  63. package/dist/harmony95.mjs.map +1 -1
  64. package/dist/types/src/components/Sidebar/Sidebar.d.ts +1 -1
  65. package/dist/types/src/features/publicApi/hooks/useListTeamsQuery.d.ts +9 -7
  66. package/dist/types/src/features/publicApi/hooks/useRetrieveTeamQuery.d.ts +11 -24
  67. package/dist/types/src/features/publicApi/team.d.ts +108 -187
  68. package/dist/types/src/features/publicApi/types/teamTypes.d.ts +115 -272
  69. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"harmony95.cjs","sources":["../src/features/auth/frontend/events/NewJwtIssuedEvent.ts"],"sourcesContent":["import type { JwtTokenPayload } from '@features/auth/core/types/jwtTokenPayload'\nimport { parseJwtTokenPayload } from '@features/auth/core/utils/jwtTokenPayload'\nimport type { JwtToken } from '@features/publicApi/types/userTokenTypes'\n\ntype NewJwtIssuedEventDetail = {\n\ttoken: JwtToken\n\tpayload: JwtTokenPayload | undefined\n}\n\n/**\n * This event is emitted when a new JWT token is issued or refreshed.\n */\nexport class NewJwtIssuedEvent extends CustomEvent<NewJwtIssuedEventDetail> {\n\tstatic readonly eventName = 'new-jwt-issued' as const\n\n\tconstructor(token: JwtToken) {\n\t\tsuper(NewJwtIssuedEvent.eventName, {\n\t\t\tdetail: { token, payload: parseJwtTokenPayload(token.accessToken) },\n\t\t})\n\t}\n}\n\nexport const isNewJwtIssuedEvent = (event: Event): event is NewJwtIssuedEvent =>\n\tevent.type === NewJwtIssuedEvent.eventName\n\ndeclare global {\n\tinterface WindowEventMap {\n\t\t[NewJwtIssuedEvent.eventName]: NewJwtIssuedEvent\n\t}\n}\n"],"names":["parseJwtTokenPayload"],"mappings":";;;;;;AAYO,MAAM,qBAAN,MAAM,2BAA0B,YAAqC;AAAA,EAG3E,YAAY,OAAiB;AAC5B,UAAM,mBAAkB,WAAW;AAAA,MAClC,QAAQ,EAAE,OAAO,SAASA,gBAAAA,qBAAqB,MAAM,WAAW,EAAE;AAAA,IAAA,CAClE;AAAA,EAAA;AAEH;AAPC,cADY,oBACI,aAAY;AADtB,IAAM,oBAAN;;"}
1
+ {"version":3,"file":"harmony95.cjs","sources":["../node_modules/@lokalise/universal-ts-utils/dist/public/api-contracts/apiContracts.js"],"sourcesContent":["const EMPTY_PARAMS = {};\nexport function buildPayloadRoute(params) {\n return {\n isEmptyResponseExpected: params.isEmptyResponseExpected ?? false,\n isNonJSONResponseExpected: params.isNonJSONResponseExpected ?? false,\n method: params.method,\n pathResolver: params.pathResolver,\n requestBodySchema: params.requestBodySchema,\n requestHeaderSchema: params.requestHeaderSchema,\n requestPathParamsSchema: params.requestPathParamsSchema,\n requestQuerySchema: params.requestQuerySchema,\n successResponseBodySchema: params.successResponseBodySchema,\n description: params.description,\n responseSchemasByStatusCode: params.responseSchemasByStatusCode,\n metadata: params.metadata,\n };\n}\nexport function buildGetRoute(params) {\n return {\n isEmptyResponseExpected: params.isEmptyResponseExpected ?? false,\n isNonJSONResponseExpected: params.isNonJSONResponseExpected ?? false,\n method: 'get',\n pathResolver: params.pathResolver,\n requestHeaderSchema: params.requestHeaderSchema,\n requestPathParamsSchema: params.requestPathParamsSchema,\n requestQuerySchema: params.requestQuerySchema,\n successResponseBodySchema: params.successResponseBodySchema,\n description: params.description,\n responseSchemasByStatusCode: params.responseSchemasByStatusCode,\n metadata: params.metadata,\n };\n}\nexport function buildDeleteRoute(params) {\n return {\n isEmptyResponseExpected: params.isEmptyResponseExpected ?? true,\n isNonJSONResponseExpected: params.isNonJSONResponseExpected ?? false,\n method: 'delete',\n pathResolver: params.pathResolver,\n requestHeaderSchema: params.requestHeaderSchema,\n requestPathParamsSchema: params.requestPathParamsSchema,\n requestQuerySchema: params.requestQuerySchema,\n successResponseBodySchema: params.successResponseBodySchema,\n description: params.description,\n responseSchemasByStatusCode: params.responseSchemasByStatusCode,\n metadata: params.metadata,\n };\n}\n/**\n * This method maps given route definition to a string of the format '/static-path-part/:path-param-value'\n */\nexport function mapRouteToPath(\n// biome-ignore lint/suspicious/noExplicitAny: We don't care about types here, we just need Zod schema\nrouteDefinition) {\n if (!routeDefinition.requestPathParamsSchema) {\n return routeDefinition.pathResolver(EMPTY_PARAMS);\n }\n const shape = routeDefinition.requestPathParamsSchema.shape;\n const resolverParams = {};\n for (const key of Object.keys(shape)) {\n resolverParams[key] = `:${key}`;\n }\n return routeDefinition.pathResolver(resolverParams);\n}\n//# sourceMappingURL=apiContracts.js.map"],"names":[],"mappings":";;AAiBO,SAAS,cAAc,QAAQ;AAClC,SAAO;AAAA,IACH,yBAAyB,OAAO,2BAA2B;AAAA,IAC3D,2BAA2B,OAAO,6BAA6B;AAAA,IAC/D,QAAQ;AAAA,IACR,cAAc,OAAO;AAAA,IACrB,qBAAqB,OAAO;AAAA,IAC5B,yBAAyB,OAAO;AAAA,IAChC,oBAAoB,OAAO;AAAA,IAC3B,2BAA2B,OAAO;AAAA,IAClC,aAAa,OAAO;AAAA,IACpB,6BAA6B,OAAO;AAAA,IACpC,UAAU,OAAO;AAAA,EACpB;AACL;;","x_google_ignoreList":[0]}
@@ -1,17 +1,19 @@
1
- var __defProp = Object.defineProperty;
2
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3
- var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
4
- import { parseJwtTokenPayload } from "./harmony15.mjs";
5
- const _NewJwtIssuedEvent = class _NewJwtIssuedEvent extends CustomEvent {
6
- constructor(token) {
7
- super(_NewJwtIssuedEvent.eventName, {
8
- detail: { token, payload: parseJwtTokenPayload(token.accessToken) }
9
- });
10
- }
11
- };
12
- __publicField(_NewJwtIssuedEvent, "eventName", "new-jwt-issued");
13
- let NewJwtIssuedEvent = _NewJwtIssuedEvent;
1
+ function buildGetRoute(params) {
2
+ return {
3
+ isEmptyResponseExpected: params.isEmptyResponseExpected ?? false,
4
+ isNonJSONResponseExpected: params.isNonJSONResponseExpected ?? false,
5
+ method: "get",
6
+ pathResolver: params.pathResolver,
7
+ requestHeaderSchema: params.requestHeaderSchema,
8
+ requestPathParamsSchema: params.requestPathParamsSchema,
9
+ requestQuerySchema: params.requestQuerySchema,
10
+ successResponseBodySchema: params.successResponseBodySchema,
11
+ description: params.description,
12
+ responseSchemasByStatusCode: params.responseSchemasByStatusCode,
13
+ metadata: params.metadata
14
+ };
15
+ }
14
16
  export {
15
- NewJwtIssuedEvent
17
+ buildGetRoute
16
18
  };
17
19
  //# sourceMappingURL=harmony95.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"harmony95.mjs","sources":["../src/features/auth/frontend/events/NewJwtIssuedEvent.ts"],"sourcesContent":["import type { JwtTokenPayload } from '@features/auth/core/types/jwtTokenPayload'\nimport { parseJwtTokenPayload } from '@features/auth/core/utils/jwtTokenPayload'\nimport type { JwtToken } from '@features/publicApi/types/userTokenTypes'\n\ntype NewJwtIssuedEventDetail = {\n\ttoken: JwtToken\n\tpayload: JwtTokenPayload | undefined\n}\n\n/**\n * This event is emitted when a new JWT token is issued or refreshed.\n */\nexport class NewJwtIssuedEvent extends CustomEvent<NewJwtIssuedEventDetail> {\n\tstatic readonly eventName = 'new-jwt-issued' as const\n\n\tconstructor(token: JwtToken) {\n\t\tsuper(NewJwtIssuedEvent.eventName, {\n\t\t\tdetail: { token, payload: parseJwtTokenPayload(token.accessToken) },\n\t\t})\n\t}\n}\n\nexport const isNewJwtIssuedEvent = (event: Event): event is NewJwtIssuedEvent =>\n\tevent.type === NewJwtIssuedEvent.eventName\n\ndeclare global {\n\tinterface WindowEventMap {\n\t\t[NewJwtIssuedEvent.eventName]: NewJwtIssuedEvent\n\t}\n}\n"],"names":[],"mappings":";;;;AAYO,MAAM,qBAAN,MAAM,2BAA0B,YAAqC;AAAA,EAG3E,YAAY,OAAiB;AAC5B,UAAM,mBAAkB,WAAW;AAAA,MAClC,QAAQ,EAAE,OAAO,SAAS,qBAAqB,MAAM,WAAW,EAAE;AAAA,IAAA,CAClE;AAAA,EAAA;AAEH;AAPC,cADY,oBACI,aAAY;AADtB,IAAM,oBAAN;"}
1
+ {"version":3,"file":"harmony95.mjs","sources":["../node_modules/@lokalise/universal-ts-utils/dist/public/api-contracts/apiContracts.js"],"sourcesContent":["const EMPTY_PARAMS = {};\nexport function buildPayloadRoute(params) {\n return {\n isEmptyResponseExpected: params.isEmptyResponseExpected ?? false,\n isNonJSONResponseExpected: params.isNonJSONResponseExpected ?? false,\n method: params.method,\n pathResolver: params.pathResolver,\n requestBodySchema: params.requestBodySchema,\n requestHeaderSchema: params.requestHeaderSchema,\n requestPathParamsSchema: params.requestPathParamsSchema,\n requestQuerySchema: params.requestQuerySchema,\n successResponseBodySchema: params.successResponseBodySchema,\n description: params.description,\n responseSchemasByStatusCode: params.responseSchemasByStatusCode,\n metadata: params.metadata,\n };\n}\nexport function buildGetRoute(params) {\n return {\n isEmptyResponseExpected: params.isEmptyResponseExpected ?? false,\n isNonJSONResponseExpected: params.isNonJSONResponseExpected ?? false,\n method: 'get',\n pathResolver: params.pathResolver,\n requestHeaderSchema: params.requestHeaderSchema,\n requestPathParamsSchema: params.requestPathParamsSchema,\n requestQuerySchema: params.requestQuerySchema,\n successResponseBodySchema: params.successResponseBodySchema,\n description: params.description,\n responseSchemasByStatusCode: params.responseSchemasByStatusCode,\n metadata: params.metadata,\n };\n}\nexport function buildDeleteRoute(params) {\n return {\n isEmptyResponseExpected: params.isEmptyResponseExpected ?? true,\n isNonJSONResponseExpected: params.isNonJSONResponseExpected ?? false,\n method: 'delete',\n pathResolver: params.pathResolver,\n requestHeaderSchema: params.requestHeaderSchema,\n requestPathParamsSchema: params.requestPathParamsSchema,\n requestQuerySchema: params.requestQuerySchema,\n successResponseBodySchema: params.successResponseBodySchema,\n description: params.description,\n responseSchemasByStatusCode: params.responseSchemasByStatusCode,\n metadata: params.metadata,\n };\n}\n/**\n * This method maps given route definition to a string of the format '/static-path-part/:path-param-value'\n */\nexport function mapRouteToPath(\n// biome-ignore lint/suspicious/noExplicitAny: We don't care about types here, we just need Zod schema\nrouteDefinition) {\n if (!routeDefinition.requestPathParamsSchema) {\n return routeDefinition.pathResolver(EMPTY_PARAMS);\n }\n const shape = routeDefinition.requestPathParamsSchema.shape;\n const resolverParams = {};\n for (const key of Object.keys(shape)) {\n resolverParams[key] = `:${key}`;\n }\n return routeDefinition.pathResolver(resolverParams);\n}\n//# sourceMappingURL=apiContracts.js.map"],"names":[],"mappings":"AAiBO,SAAS,cAAc,QAAQ;AAClC,SAAO;AAAA,IACH,yBAAyB,OAAO,2BAA2B;AAAA,IAC3D,2BAA2B,OAAO,6BAA6B;AAAA,IAC/D,QAAQ;AAAA,IACR,cAAc,OAAO;AAAA,IACrB,qBAAqB,OAAO;AAAA,IAC5B,yBAAyB,OAAO;AAAA,IAChC,oBAAoB,OAAO;AAAA,IAC3B,2BAA2B,OAAO;AAAA,IAClC,aAAa,OAAO;AAAA,IACpB,6BAA6B,OAAO;AAAA,IACpC,UAAU,OAAO;AAAA,EACpB;AACL;","x_google_ignoreList":[0]}
@@ -3,7 +3,7 @@ type SidebarProps = HTMLProps<HTMLElement> & {
3
3
  children: ReactNode;
4
4
  };
5
5
  /**
6
- * Sidebar is a self-contained component using widgets.
6
+ * Sidebar is a self-contained component using widgets
7
7
  */
8
8
  declare const Sidebar: {
9
9
  ({ children, ...navProps }: SidebarProps): import("react/jsx-runtime").JSX.Element;
@@ -20,16 +20,18 @@ export declare const listTeamsKey: {
20
20
  * @param overrides - Additional options to pass to the query.
21
21
  */
22
22
  export declare function useListTeamsQuery<T>(wretchClient: Wretch<T>, headers: HeaderBuilder<ProjectApiBaseHeaders>, overrides: ApiQueryOverrides<ListTeamsResponse, typeof listTeamsKey>): import('@tanstack/react-query').UseQueryResult<{
23
- teams: {
24
- role: string;
23
+ teams: ((({
24
+ id: number;
25
+ } | {
26
+ id: number;
27
+ }) & {
25
28
  name: string;
26
29
  created_at: string;
27
30
  created_at_timestamp: number;
28
- team_id: number;
29
31
  plan: string;
30
- logo_url: string;
31
- quota_usage: Partial<Record<"keys" | "projects" | "users" | "mau" | "trafficBytes" | "ai_words", number>>;
32
- quota_allowed: Partial<Record<"keys" | "projects" | "users" | "mau" | "trafficBytes" | "ai_words", number>>;
33
32
  uuid?: string | undefined;
34
- }[];
33
+ }) & {
34
+ quota_usage: Partial<Record<"keys" | "projects" | "mau" | "trafficBytes" | "ai_words", number>>;
35
+ quota_allowed: Partial<Record<"keys" | "projects" | "mau" | "trafficBytes" | "ai_words", number>>;
36
+ })[];
35
37
  }, undefined>;
@@ -16,35 +16,22 @@ export declare const retrieveTeamQueryKey: {
16
16
  * @param overrides - Additional options to pass to the query.
17
17
  */
18
18
  export declare function useRetrieveTeamQuery<T>(wretchClient: Wretch<T>, headers: HeaderBuilder<TeamApiBaseHeaders>, overrides: ApiQueryOverrides<RetrieveTeamResponse, typeof retrieveTeamQueryKey>): import('@tanstack/react-query').UseQueryResult<{
19
- team: {
20
- role: string;
19
+ team: ((({
20
+ id: number;
21
+ } | {
22
+ id: number;
23
+ }) & {
21
24
  name: string;
22
25
  created_at: string;
23
26
  created_at_timestamp: number;
24
- team_id: number;
25
- logo_url: string;
26
- quota_usage: {
27
- keys: number;
28
- projects: number;
29
- users: number;
30
- mau: number;
31
- trafficBytes: number;
32
- aiWords: number;
33
- id?: number | null | undefined;
34
- };
35
- quota_allowed: {
36
- keys: number;
37
- projects: number;
38
- users: number;
39
- mau: number;
40
- trafficBytes: number;
41
- aiWords: number;
42
- id?: number | null | undefined;
43
- };
44
- plan_name: string;
27
+ plan: string;
28
+ uuid?: string | undefined;
29
+ }) & {
30
+ quota_usage: Partial<Record<"keys" | "projects" | "mau" | "trafficBytes" | "ai_words", number>>;
31
+ quota_allowed: Partial<Record<"keys" | "projects" | "mau" | "trafficBytes" | "ai_words", number>>;
32
+ }) & {
45
33
  is_team_suspended: boolean;
46
34
  is_end_of_trial_active: boolean;
47
35
  trial_days_left: number;
48
- uuid?: string | undefined;
49
36
  };
50
37
  }, undefined>;
@@ -1,64 +1,78 @@
1
1
  export declare const listTeams: import('@lokalise/api-contracts').GetRouteDefinition<never, import('zod').ZodObject<{
2
- teams: import('zod').ZodArray<import('zod').ZodObject<{
2
+ teams: import('zod').ZodArray<import('zod').ZodIntersection<import('zod').ZodIntersection<import('zod').ZodUnion<[import('zod').ZodObject<{
3
+ id: import('zod').ZodNumber;
4
+ }, "strip", import('zod').ZodTypeAny, {
5
+ id: number;
6
+ }, {
7
+ id: number;
8
+ }>, import('zod').ZodEffects<import('zod').ZodObject<{
3
9
  team_id: import('zod').ZodNumber;
10
+ }, "strip", import('zod').ZodTypeAny, {
11
+ team_id: number;
12
+ }, {
13
+ team_id: number;
14
+ }>, {
15
+ id: number;
16
+ }, {
17
+ team_id: number;
18
+ }>]>, import('zod').ZodObject<{
4
19
  uuid: import('zod').ZodOptional<import('zod').ZodString>;
5
20
  name: import('zod').ZodString;
6
- plan: import('zod').ZodString;
7
- logo_url: import('zod').ZodString;
8
- role: import('zod').ZodString;
9
- created_at: import('zod').ZodUnion<[import('zod').ZodEffects<import('zod').ZodString, string, string>, import('zod').ZodString, import('zod').ZodString]>;
21
+ created_at: import('zod').ZodString;
10
22
  created_at_timestamp: import('zod').ZodNumber;
11
- quota_usage: import('zod').ZodRecord<import('zod').ZodEnum<["users", "keys", "projects", "mau", "trafficBytes", "ai_words"]>, import('zod').ZodNumber>;
12
- quota_allowed: import('zod').ZodRecord<import('zod').ZodEnum<["users", "keys", "projects", "mau", "trafficBytes", "ai_words"]>, import('zod').ZodNumber>;
23
+ plan: import('zod').ZodString;
13
24
  }, "strip", import('zod').ZodTypeAny, {
14
- role: string;
15
25
  name: string;
16
26
  created_at: string;
17
27
  created_at_timestamp: number;
18
- team_id: number;
19
28
  plan: string;
20
- logo_url: string;
21
- quota_usage: Partial<Record<"keys" | "projects" | "users" | "mau" | "trafficBytes" | "ai_words", number>>;
22
- quota_allowed: Partial<Record<"keys" | "projects" | "users" | "mau" | "trafficBytes" | "ai_words", number>>;
23
29
  uuid?: string | undefined;
24
30
  }, {
25
- role: string;
26
31
  name: string;
27
32
  created_at: string;
28
33
  created_at_timestamp: number;
29
- team_id: number;
30
34
  plan: string;
31
- logo_url: string;
32
- quota_usage: Partial<Record<"keys" | "projects" | "users" | "mau" | "trafficBytes" | "ai_words", number>>;
33
- quota_allowed: Partial<Record<"keys" | "projects" | "users" | "mau" | "trafficBytes" | "ai_words", number>>;
34
35
  uuid?: string | undefined;
35
- }>, "many">;
36
+ }>>, import('zod').ZodObject<{
37
+ quota_usage: import('zod').ZodRecord<import('zod').ZodEnum<["keys", "projects", "mau", "trafficBytes", "ai_words"]>, import('zod').ZodNumber>;
38
+ quota_allowed: import('zod').ZodRecord<import('zod').ZodEnum<["keys", "projects", "mau", "trafficBytes", "ai_words"]>, import('zod').ZodNumber>;
39
+ }, "strip", import('zod').ZodTypeAny, {
40
+ quota_usage: Partial<Record<"keys" | "projects" | "mau" | "trafficBytes" | "ai_words", number>>;
41
+ quota_allowed: Partial<Record<"keys" | "projects" | "mau" | "trafficBytes" | "ai_words", number>>;
42
+ }, {
43
+ quota_usage: Partial<Record<"keys" | "projects" | "mau" | "trafficBytes" | "ai_words", number>>;
44
+ quota_allowed: Partial<Record<"keys" | "projects" | "mau" | "trafficBytes" | "ai_words", number>>;
45
+ }>>, "many">;
36
46
  }, "strip", import('zod').ZodTypeAny, {
37
- teams: {
38
- role: string;
47
+ teams: ((({
48
+ id: number;
49
+ } | {
50
+ id: number;
51
+ }) & {
39
52
  name: string;
40
53
  created_at: string;
41
54
  created_at_timestamp: number;
42
- team_id: number;
43
55
  plan: string;
44
- logo_url: string;
45
- quota_usage: Partial<Record<"keys" | "projects" | "users" | "mau" | "trafficBytes" | "ai_words", number>>;
46
- quota_allowed: Partial<Record<"keys" | "projects" | "users" | "mau" | "trafficBytes" | "ai_words", number>>;
47
56
  uuid?: string | undefined;
48
- }[];
57
+ }) & {
58
+ quota_usage: Partial<Record<"keys" | "projects" | "mau" | "trafficBytes" | "ai_words", number>>;
59
+ quota_allowed: Partial<Record<"keys" | "projects" | "mau" | "trafficBytes" | "ai_words", number>>;
60
+ })[];
49
61
  }, {
50
- teams: {
51
- role: string;
62
+ teams: ((({
63
+ id: number;
64
+ } | {
65
+ team_id: number;
66
+ }) & {
52
67
  name: string;
53
68
  created_at: string;
54
69
  created_at_timestamp: number;
55
- team_id: number;
56
70
  plan: string;
57
- logo_url: string;
58
- quota_usage: Partial<Record<"keys" | "projects" | "users" | "mau" | "trafficBytes" | "ai_words", number>>;
59
- quota_allowed: Partial<Record<"keys" | "projects" | "users" | "mau" | "trafficBytes" | "ai_words", number>>;
60
71
  uuid?: string | undefined;
61
- }[];
72
+ }) & {
73
+ quota_usage: Partial<Record<"keys" | "projects" | "mau" | "trafficBytes" | "ai_words", number>>;
74
+ quota_allowed: Partial<Record<"keys" | "projects" | "mau" | "trafficBytes" | "ai_words", number>>;
75
+ })[];
62
76
  }>, undefined, import('zod').ZodObject<{
63
77
  limit: import('zod').ZodOptional<import('zod').ZodNumber>;
64
78
  page: import('zod').ZodOptional<import('zod').ZodNumber>;
@@ -126,192 +140,99 @@ export declare const listTeams: import('@lokalise/api-contracts').GetRouteDefini
126
140
  export declare const retrieveTeam: import('@lokalise/api-contracts').GetRouteDefinition<{
127
141
  teamId: string | number;
128
142
  }, import('zod').ZodObject<{
129
- team: import('zod').ZodObject<{
143
+ team: import('zod').ZodIntersection<import('zod').ZodIntersection<import('zod').ZodIntersection<import('zod').ZodUnion<[import('zod').ZodObject<{
144
+ id: import('zod').ZodNumber;
145
+ }, "strip", import('zod').ZodTypeAny, {
146
+ id: number;
147
+ }, {
148
+ id: number;
149
+ }>, import('zod').ZodEffects<import('zod').ZodObject<{
130
150
  team_id: import('zod').ZodNumber;
151
+ }, "strip", import('zod').ZodTypeAny, {
152
+ team_id: number;
153
+ }, {
154
+ team_id: number;
155
+ }>, {
156
+ id: number;
157
+ }, {
158
+ team_id: number;
159
+ }>]>, import('zod').ZodObject<{
131
160
  uuid: import('zod').ZodOptional<import('zod').ZodString>;
132
161
  name: import('zod').ZodString;
133
- plan_name: import('zod').ZodString;
134
- created_at: import('zod').ZodUnion<[import('zod').ZodEffects<import('zod').ZodString, string, string>, import('zod').ZodString, import('zod').ZodString]>;
162
+ created_at: import('zod').ZodString;
135
163
  created_at_timestamp: import('zod').ZodNumber;
136
- logo_url: import('zod').ZodString;
137
- role: import('zod').ZodString;
138
- quota_usage: import('zod').ZodObject<{
139
- id: import('zod').ZodOptional<import('zod').ZodNullable<import('zod').ZodNumber>>;
140
- users: import('zod').ZodNumber;
141
- keys: import('zod').ZodNumber;
142
- projects: import('zod').ZodNumber;
143
- mau: import('zod').ZodNumber;
144
- trafficBytes: import('zod').ZodNumber;
145
- aiWords: import('zod').ZodNumber;
146
- }, "strip", import('zod').ZodTypeAny, {
147
- keys: number;
148
- projects: number;
149
- users: number;
150
- mau: number;
151
- trafficBytes: number;
152
- aiWords: number;
153
- id?: number | null | undefined;
154
- }, {
155
- keys: number;
156
- projects: number;
157
- users: number;
158
- mau: number;
159
- trafficBytes: number;
160
- aiWords: number;
161
- id?: number | null | undefined;
162
- }>;
163
- quota_allowed: import('zod').ZodObject<{
164
- id: import('zod').ZodOptional<import('zod').ZodNullable<import('zod').ZodNumber>>;
165
- users: import('zod').ZodNumber;
166
- keys: import('zod').ZodNumber;
167
- projects: import('zod').ZodNumber;
168
- mau: import('zod').ZodNumber;
169
- trafficBytes: import('zod').ZodNumber;
170
- aiWords: import('zod').ZodNumber;
171
- }, "strip", import('zod').ZodTypeAny, {
172
- keys: number;
173
- projects: number;
174
- users: number;
175
- mau: number;
176
- trafficBytes: number;
177
- aiWords: number;
178
- id?: number | null | undefined;
179
- }, {
180
- keys: number;
181
- projects: number;
182
- users: number;
183
- mau: number;
184
- trafficBytes: number;
185
- aiWords: number;
186
- id?: number | null | undefined;
187
- }>;
188
- is_team_suspended: import('zod').ZodBoolean;
189
- is_end_of_trial_active: import('zod').ZodBoolean;
190
- trial_days_left: import('zod').ZodNumber;
164
+ plan: import('zod').ZodString;
191
165
  }, "strip", import('zod').ZodTypeAny, {
192
- role: string;
193
166
  name: string;
194
167
  created_at: string;
195
168
  created_at_timestamp: number;
196
- team_id: number;
197
- logo_url: string;
198
- quota_usage: {
199
- keys: number;
200
- projects: number;
201
- users: number;
202
- mau: number;
203
- trafficBytes: number;
204
- aiWords: number;
205
- id?: number | null | undefined;
206
- };
207
- quota_allowed: {
208
- keys: number;
209
- projects: number;
210
- users: number;
211
- mau: number;
212
- trafficBytes: number;
213
- aiWords: number;
214
- id?: number | null | undefined;
215
- };
216
- plan_name: string;
217
- is_team_suspended: boolean;
218
- is_end_of_trial_active: boolean;
219
- trial_days_left: number;
169
+ plan: string;
220
170
  uuid?: string | undefined;
221
171
  }, {
222
- role: string;
223
172
  name: string;
224
173
  created_at: string;
225
174
  created_at_timestamp: number;
226
- team_id: number;
227
- logo_url: string;
228
- quota_usage: {
229
- keys: number;
230
- projects: number;
231
- users: number;
232
- mau: number;
233
- trafficBytes: number;
234
- aiWords: number;
235
- id?: number | null | undefined;
236
- };
237
- quota_allowed: {
238
- keys: number;
239
- projects: number;
240
- users: number;
241
- mau: number;
242
- trafficBytes: number;
243
- aiWords: number;
244
- id?: number | null | undefined;
245
- };
246
- plan_name: string;
175
+ plan: string;
176
+ uuid?: string | undefined;
177
+ }>>, import('zod').ZodObject<{
178
+ quota_usage: import('zod').ZodRecord<import('zod').ZodEnum<["keys", "projects", "mau", "trafficBytes", "ai_words"]>, import('zod').ZodNumber>;
179
+ quota_allowed: import('zod').ZodRecord<import('zod').ZodEnum<["keys", "projects", "mau", "trafficBytes", "ai_words"]>, import('zod').ZodNumber>;
180
+ }, "strip", import('zod').ZodTypeAny, {
181
+ quota_usage: Partial<Record<"keys" | "projects" | "mau" | "trafficBytes" | "ai_words", number>>;
182
+ quota_allowed: Partial<Record<"keys" | "projects" | "mau" | "trafficBytes" | "ai_words", number>>;
183
+ }, {
184
+ quota_usage: Partial<Record<"keys" | "projects" | "mau" | "trafficBytes" | "ai_words", number>>;
185
+ quota_allowed: Partial<Record<"keys" | "projects" | "mau" | "trafficBytes" | "ai_words", number>>;
186
+ }>>, import('zod').ZodObject<{
187
+ is_team_suspended: import('zod').ZodBoolean;
188
+ is_end_of_trial_active: import('zod').ZodBoolean;
189
+ trial_days_left: import('zod').ZodNumber;
190
+ }, "strip", import('zod').ZodTypeAny, {
247
191
  is_team_suspended: boolean;
248
192
  is_end_of_trial_active: boolean;
249
193
  trial_days_left: number;
250
- uuid?: string | undefined;
251
- }>;
194
+ }, {
195
+ is_team_suspended: boolean;
196
+ is_end_of_trial_active: boolean;
197
+ trial_days_left: number;
198
+ }>>;
252
199
  }, "strip", import('zod').ZodTypeAny, {
253
- team: {
254
- role: string;
200
+ team: ((({
201
+ id: number;
202
+ } | {
203
+ id: number;
204
+ }) & {
255
205
  name: string;
256
206
  created_at: string;
257
207
  created_at_timestamp: number;
258
- team_id: number;
259
- logo_url: string;
260
- quota_usage: {
261
- keys: number;
262
- projects: number;
263
- users: number;
264
- mau: number;
265
- trafficBytes: number;
266
- aiWords: number;
267
- id?: number | null | undefined;
268
- };
269
- quota_allowed: {
270
- keys: number;
271
- projects: number;
272
- users: number;
273
- mau: number;
274
- trafficBytes: number;
275
- aiWords: number;
276
- id?: number | null | undefined;
277
- };
278
- plan_name: string;
208
+ plan: string;
209
+ uuid?: string | undefined;
210
+ }) & {
211
+ quota_usage: Partial<Record<"keys" | "projects" | "mau" | "trafficBytes" | "ai_words", number>>;
212
+ quota_allowed: Partial<Record<"keys" | "projects" | "mau" | "trafficBytes" | "ai_words", number>>;
213
+ }) & {
279
214
  is_team_suspended: boolean;
280
215
  is_end_of_trial_active: boolean;
281
216
  trial_days_left: number;
282
- uuid?: string | undefined;
283
217
  };
284
218
  }, {
285
- team: {
286
- role: string;
219
+ team: ((({
220
+ id: number;
221
+ } | {
222
+ team_id: number;
223
+ }) & {
287
224
  name: string;
288
225
  created_at: string;
289
226
  created_at_timestamp: number;
290
- team_id: number;
291
- logo_url: string;
292
- quota_usage: {
293
- keys: number;
294
- projects: number;
295
- users: number;
296
- mau: number;
297
- trafficBytes: number;
298
- aiWords: number;
299
- id?: number | null | undefined;
300
- };
301
- quota_allowed: {
302
- keys: number;
303
- projects: number;
304
- users: number;
305
- mau: number;
306
- trafficBytes: number;
307
- aiWords: number;
308
- id?: number | null | undefined;
309
- };
310
- plan_name: string;
227
+ plan: string;
228
+ uuid?: string | undefined;
229
+ }) & {
230
+ quota_usage: Partial<Record<"keys" | "projects" | "mau" | "trafficBytes" | "ai_words", number>>;
231
+ quota_allowed: Partial<Record<"keys" | "projects" | "mau" | "trafficBytes" | "ai_words", number>>;
232
+ }) & {
311
233
  is_team_suspended: boolean;
312
234
  is_end_of_trial_active: boolean;
313
235
  trial_days_left: number;
314
- uuid?: string | undefined;
315
236
  };
316
237
  }>, import('zod').ZodObject<{
317
238
  teamId: import('zod').ZodUnion<[import('zod').ZodString, import('zod').ZodNumber]>;