@lokalise/translation-storage-api-schemas 18.16.2 → 19.0.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.
Files changed (61) hide show
  1. package/dist/api/contracts/content/delete-item.d.ts +41 -15
  2. package/dist/api/contracts/content/delete-item.d.ts.map +1 -1
  3. package/dist/api/contracts/content/delete-item.js +9 -8
  4. package/dist/api/contracts/content/delete-item.js.map +1 -1
  5. package/dist/api/contracts/content/get-content-unit-segments.d.ts +75 -93
  6. package/dist/api/contracts/content/get-content-unit-segments.d.ts.map +1 -1
  7. package/dist/api/contracts/content/get-content-unit-segments.js +4 -5
  8. package/dist/api/contracts/content/get-content-unit-segments.js.map +1 -1
  9. package/dist/api/contracts/content/get-content-units-character-usage-subscribe.d.ts +53 -32
  10. package/dist/api/contracts/content/get-content-units-character-usage-subscribe.d.ts.map +1 -1
  11. package/dist/api/contracts/content/get-content-units-character-usage-subscribe.js +7 -8
  12. package/dist/api/contracts/content/get-content-units-character-usage-subscribe.js.map +1 -1
  13. package/dist/api/contracts/content/get-content-units.d.ts +72 -87
  14. package/dist/api/contracts/content/get-content-units.d.ts.map +1 -1
  15. package/dist/api/contracts/content/get-content-units.js +4 -5
  16. package/dist/api/contracts/content/get-content-units.js.map +1 -1
  17. package/dist/api/contracts/content/get-items-lock-status.d.ts +39 -27
  18. package/dist/api/contracts/content/get-items-lock-status.d.ts.map +1 -1
  19. package/dist/api/contracts/content/get-items-lock-status.js +4 -5
  20. package/dist/api/contracts/content/get-items-lock-status.js.map +1 -1
  21. package/dist/api/contracts/content/get-items.d.ts +88 -123
  22. package/dist/api/contracts/content/get-items.d.ts.map +1 -1
  23. package/dist/api/contracts/content/get-items.js +4 -5
  24. package/dist/api/contracts/content/get-items.js.map +1 -1
  25. package/dist/api/contracts/content/get-project-content-languages.d.ts +53 -53
  26. package/dist/api/contracts/content/get-project-content-languages.d.ts.map +1 -1
  27. package/dist/api/contracts/content/get-project-content-languages.js +5 -6
  28. package/dist/api/contracts/content/get-project-content-languages.js.map +1 -1
  29. package/dist/api/contracts/content/patch-update-segment.d.ts +86 -100
  30. package/dist/api/contracts/content/patch-update-segment.d.ts.map +1 -1
  31. package/dist/api/contracts/content/patch-update-segment.js +4 -5
  32. package/dist/api/contracts/content/patch-update-segment.js.map +1 -1
  33. package/dist/api/contracts/content/post-bulk-update-segments.d.ts +90 -105
  34. package/dist/api/contracts/content/post-bulk-update-segments.d.ts.map +1 -1
  35. package/dist/api/contracts/content/post-bulk-update-segments.js +4 -5
  36. package/dist/api/contracts/content/post-bulk-update-segments.js.map +1 -1
  37. package/dist/api/contracts/content/post-content-units-actions-get-character-usage.d.ts +51 -49
  38. package/dist/api/contracts/content/post-content-units-actions-get-character-usage.d.ts.map +1 -1
  39. package/dist/api/contracts/content/post-content-units-actions-get-character-usage.js +4 -5
  40. package/dist/api/contracts/content/post-content-units-actions-get-character-usage.js.map +1 -1
  41. package/dist/api/contracts/content/post-items-actions-get-filtered.d.ts +87 -122
  42. package/dist/api/contracts/content/post-items-actions-get-filtered.d.ts.map +1 -1
  43. package/dist/api/contracts/content/post-items-actions-get-filtered.js +5 -5
  44. package/dist/api/contracts/content/post-items-actions-get-filtered.js.map +1 -1
  45. package/dist/api/contracts/content/post-items-bulk-delete.d.ts +41 -15
  46. package/dist/api/contracts/content/post-items-bulk-delete.d.ts.map +1 -1
  47. package/dist/api/contracts/content/post-items-bulk-delete.js +9 -8
  48. package/dist/api/contracts/content/post-items-bulk-delete.js.map +1 -1
  49. package/dist/api/contracts/index.d.ts +2 -0
  50. package/dist/api/contracts/index.d.ts.map +1 -1
  51. package/dist/api/contracts/index.js +2 -0
  52. package/dist/api/contracts/index.js.map +1 -1
  53. package/dist/api/contracts/leverage/get-task-leverage-report-export.d.ts +78 -0
  54. package/dist/api/contracts/leverage/get-task-leverage-report-export.d.ts.map +1 -0
  55. package/dist/api/contracts/leverage/get-task-leverage-report-export.js +40 -0
  56. package/dist/api/contracts/leverage/get-task-leverage-report-export.js.map +1 -0
  57. package/dist/api/contracts/leverage/get-task-leverage-report.d.ts +69 -0
  58. package/dist/api/contracts/leverage/get-task-leverage-report.d.ts.map +1 -0
  59. package/dist/api/contracts/leverage/get-task-leverage-report.js +42 -0
  60. package/dist/api/contracts/leverage/get-task-leverage-report.js.map +1 -0
  61. package/package.json +3 -3
@@ -6,21 +6,47 @@ declare const DELETE_ITEM_PARAMS_SCHEMA: z.ZodObject<{
6
6
  export type DeleteItemParams = z.infer<typeof DELETE_ITEM_PARAMS_SCHEMA>;
7
7
  declare const DELETE_ITEM_RESPONSE_SCHEMA: z.ZodVoid;
8
8
  export type DeleteItemResponse = z.infer<typeof DELETE_ITEM_RESPONSE_SCHEMA>;
9
- export declare const deleteItemContract: import("@lokalise/api-contracts").DeleteRouteDefinition<z.ZodVoid, z.ZodObject<{
10
- projectId: z.ZodGUID;
11
- itemId: z.ZodGUID;
12
- }, z.core.$strip>, undefined, undefined, undefined, false, true, {
13
- 204: z.ZodVoid;
14
- 400: z.ZodObject<{
15
- message: z.ZodString;
16
- errorCode: z.ZodString;
17
- details: z.ZodOptional<z.ZodAny>;
18
- }, z.core.$strip>;
19
- 404: z.ZodObject<{
20
- message: z.ZodString;
21
- errorCode: z.ZodString;
22
- details: z.ZodOptional<z.ZodAny>;
9
+ export declare const deleteItemContract: Omit<{
10
+ readonly visibility: "internal";
11
+ readonly method: "delete";
12
+ readonly requestPathParamsSchema: z.ZodObject<{
13
+ projectId: z.ZodGUID;
14
+ itemId: z.ZodGUID;
23
15
  }, z.core.$strip>;
24
- }>;
16
+ readonly pathResolver: (params: {
17
+ projectId: string;
18
+ itemId: string;
19
+ }) => string;
20
+ readonly summary: "Delete item";
21
+ readonly description: "Delete an item and all of its content";
22
+ readonly metadata: {
23
+ allowedWorkspaceRoles: ("admin" | "biller" | "member" | "owner")[];
24
+ };
25
+ readonly responsesByStatusCode: {
26
+ readonly 400: z.ZodObject<{
27
+ message: z.ZodString;
28
+ errorCode: z.ZodString;
29
+ details: z.ZodOptional<z.ZodAny>;
30
+ }, z.core.$strip>;
31
+ readonly 401: z.ZodObject<{
32
+ message: z.ZodString;
33
+ errorCode: z.ZodString;
34
+ details: z.ZodOptional<z.ZodAny>;
35
+ }, z.core.$strip>;
36
+ readonly 403: z.ZodObject<{
37
+ message: z.ZodString;
38
+ errorCode: z.ZodString;
39
+ details: z.ZodOptional<z.ZodAny>;
40
+ }, z.core.$strip>;
41
+ readonly 404: z.ZodObject<{
42
+ message: z.ZodString;
43
+ errorCode: z.ZodString;
44
+ details: z.ZodOptional<z.ZodAny>;
45
+ }, z.core.$strip>;
46
+ readonly 204: import("@lokalise/api-contracts").NoBodyContentResponseEntry;
47
+ };
48
+ }, "visibility"> & {
49
+ visibility: import("@lokalise/api-contracts").RouteVisibility;
50
+ };
25
51
  export {};
26
52
  //# sourceMappingURL=delete-item.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"delete-item.d.ts","sourceRoot":"","sources":["../../../../src/api/contracts/content/delete-item.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;AAK1B,QAAA,MAAM,yBAAyB;;;iBAG7B,CAAA;AAEF,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAA;AAExE,QAAA,MAAM,2BAA2B,WAAW,CAAA;AAE5C,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAA;AAE5E,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;EAc7B,CAAA"}
1
+ {"version":3,"file":"delete-item.d.ts","sourceRoot":"","sources":["../../../../src/api/contracts/content/delete-item.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;AAK1B,QAAA,MAAM,yBAAyB;;;iBAG7B,CAAA;AAEF,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAA;AAGxE,QAAA,MAAM,2BAA2B,WAAW,CAAA;AAE5C,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAA;AAE5E,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;QAOjB,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMjC,CAAA"}
@@ -1,6 +1,7 @@
1
1
  import { COMMON_ERROR_RESPONSE_SCHEMA } from '@lokalise/api-common';
2
- import { buildRestContract } from '@lokalise/api-contracts';
2
+ import { defineApiContract, noBodyResponse } from '@lokalise/api-contracts';
3
3
  import { DEFAULT_ALLOWED_ROLES } from '@lokalise/autopilot-common-api-schemas';
4
+ import { commonErrorResponses } from '@lokalise/common-api-schemas';
4
5
  import { z } from 'zod/v4';
5
6
  // ------------------------------------------
6
7
  // DELETE /v1/projects/:projectId/items/:itemId
@@ -9,20 +10,20 @@ const DELETE_ITEM_PARAMS_SCHEMA = z.object({
9
10
  projectId: z.guid(),
10
11
  itemId: z.guid(),
11
12
  });
13
+ // The 204 has no body; kept so consumers can type the call's result.
12
14
  const DELETE_ITEM_RESPONSE_SCHEMA = z.void();
13
- export const deleteItemContract = buildRestContract({
15
+ export const deleteItemContract = defineApiContract({
14
16
  visibility: 'internal',
15
17
  method: 'delete',
16
18
  requestPathParamsSchema: DELETE_ITEM_PARAMS_SCHEMA,
17
19
  pathResolver: (params) => `/v1/projects/${params.projectId}/items/${params.itemId}`,
18
- description: 'Delete item',
19
- successResponseBodySchema: DELETE_ITEM_RESPONSE_SCHEMA,
20
- isEmptyResponseExpected: true,
20
+ summary: 'Delete item',
21
+ description: 'Delete an item and all of its content',
21
22
  metadata: { allowedWorkspaceRoles: DEFAULT_ALLOWED_ROLES },
22
- responseSchemasByStatusCode: {
23
- 204: DELETE_ITEM_RESPONSE_SCHEMA,
24
- 400: COMMON_ERROR_RESPONSE_SCHEMA,
23
+ responsesByStatusCode: {
24
+ ...commonErrorResponses,
25
25
  404: COMMON_ERROR_RESPONSE_SCHEMA,
26
+ 204: noBodyResponse({ description: 'Item deleted' }),
26
27
  },
27
28
  });
28
29
  //# sourceMappingURL=delete-item.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"delete-item.js","sourceRoot":"","sources":["../../../../src/api/contracts/content/delete-item.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,4BAA4B,EAAE,MAAM,sBAAsB,CAAA;AACnE,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAA;AAC3D,OAAO,EAAE,qBAAqB,EAAE,MAAM,wCAAwC,CAAA;AAC9E,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;AAE1B,6CAA6C;AAC7C,+CAA+C;AAC/C,6CAA6C;AAC7C,MAAM,yBAAyB,GAAG,CAAC,CAAC,MAAM,CAAC;IACzC,SAAS,EAAE,CAAC,CAAC,IAAI,EAAE;IACnB,MAAM,EAAE,CAAC,CAAC,IAAI,EAAE;CACjB,CAAC,CAAA;AAIF,MAAM,2BAA2B,GAAG,CAAC,CAAC,IAAI,EAAE,CAAA;AAI5C,MAAM,CAAC,MAAM,kBAAkB,GAAG,iBAAiB,CAAC;IAClD,UAAU,EAAE,UAAU;IACtB,MAAM,EAAE,QAAQ;IAChB,uBAAuB,EAAE,yBAAyB;IAClD,YAAY,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,gBAAgB,MAAM,CAAC,SAAS,UAAU,MAAM,CAAC,MAAM,EAAE;IACnF,WAAW,EAAE,aAAa;IAC1B,yBAAyB,EAAE,2BAA2B;IACtD,uBAAuB,EAAE,IAAI;IAC7B,QAAQ,EAAE,EAAE,qBAAqB,EAAE,qBAAqB,EAAE;IAC1D,2BAA2B,EAAE;QAC3B,GAAG,EAAE,2BAA2B;QAChC,GAAG,EAAE,4BAA4B;QACjC,GAAG,EAAE,4BAA4B;KAClC;CACF,CAAC,CAAA"}
1
+ {"version":3,"file":"delete-item.js","sourceRoot":"","sources":["../../../../src/api/contracts/content/delete-item.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,4BAA4B,EAAE,MAAM,sBAAsB,CAAA;AACnE,OAAO,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAA;AAC3E,OAAO,EAAE,qBAAqB,EAAE,MAAM,wCAAwC,CAAA;AAC9E,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAA;AACnE,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;AAE1B,6CAA6C;AAC7C,+CAA+C;AAC/C,6CAA6C;AAC7C,MAAM,yBAAyB,GAAG,CAAC,CAAC,MAAM,CAAC;IACzC,SAAS,EAAE,CAAC,CAAC,IAAI,EAAE;IACnB,MAAM,EAAE,CAAC,CAAC,IAAI,EAAE;CACjB,CAAC,CAAA;AAIF,qEAAqE;AACrE,MAAM,2BAA2B,GAAG,CAAC,CAAC,IAAI,EAAE,CAAA;AAI5C,MAAM,CAAC,MAAM,kBAAkB,GAAG,iBAAiB,CAAC;IAClD,UAAU,EAAE,UAAU;IACtB,MAAM,EAAE,QAAQ;IAChB,uBAAuB,EAAE,yBAAyB;IAClD,YAAY,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,gBAAgB,MAAM,CAAC,SAAS,UAAU,MAAM,CAAC,MAAM,EAAE;IACnF,OAAO,EAAE,aAAa;IACtB,WAAW,EAAE,uCAAuC;IACpD,QAAQ,EAAE,EAAE,qBAAqB,EAAE,qBAAqB,EAAE;IAC1D,qBAAqB,EAAE;QACrB,GAAG,oBAAoB;QACvB,GAAG,EAAE,4BAA4B;QACjC,GAAG,EAAE,cAAc,CAAC,EAAE,WAAW,EAAE,cAAc,EAAE,CAAC;KACrD;CACF,CAAC,CAAA"}
@@ -49,102 +49,84 @@ export declare const GET_CONTENT_UNIT_SEGMENTS_RESPONSE_SCHEMA: z.ZodObject<{
49
49
  }, z.core.$strip>;
50
50
  }, z.core.$strip>;
51
51
  export type GetContentUnitSegmentsResponse = z.infer<typeof GET_CONTENT_UNIT_SEGMENTS_RESPONSE_SCHEMA>;
52
- export declare const getContentUnitSegmentsContract: import("@lokalise/api-contracts").GetRouteDefinition<z.ZodObject<{
53
- data: z.ZodArray<z.ZodObject<{
54
- id: z.ZodGUID;
55
- number: z.ZodNumber;
56
- value: z.ZodString;
57
- status: z.ZodEnum<{
58
- readonly TRANSLATING: 'TRANSLATING';
59
- readonly TRANSLATION_FAILED: 'TRANSLATION_FAILED';
60
- readonly LQA_IN_PROGRESS: 'LQA_IN_PROGRESS';
61
- readonly PENDING_REVIEW: 'PENDING_REVIEW';
62
- readonly APPROVED: 'APPROVED';
63
- }>;
64
- lastChangeSource: z.ZodEnum<{
65
- readonly TRANSLATION_MEMORY: 'TRANSLATION_MEMORY';
66
- readonly AI: 'AI';
67
- readonly HUMAN: 'HUMAN';
68
- readonly IMPORT: 'IMPORT';
69
- }>;
70
- contentLanguageId: z.ZodGUID;
71
- contentUnitId: z.ZodGUID;
72
- textUnitId: z.ZodGUID;
52
+ export declare const getContentUnitSegmentsContract: Omit<{
53
+ readonly visibility: "public";
54
+ readonly method: "get";
55
+ readonly requestPathParamsSchema: z.ZodObject<{
73
56
  projectId: z.ZodGUID;
74
- translatableWordsCount: z.ZodInt;
75
- sourceTranslatableWordsCount: z.ZodInt;
76
- metadata: z.ZodOptional<z.ZodNullable<z.ZodObject<{
77
- prefix: z.ZodOptional<z.ZodString>;
78
- suffix: z.ZodOptional<z.ZodString>;
79
- }, z.core.$strip>>>;
80
- createdAt: z.ZodISODateTime;
81
- updatedAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
82
- }, z.core.$strip>>;
83
- meta: z.ZodObject<{
84
- count: z.ZodNumber;
85
- cursor: z.ZodOptional<z.ZodString>;
86
- hasMore: z.ZodBoolean;
87
- }, z.core.$strip>;
88
- }, z.core.$strip>, z.ZodObject<{
89
- projectId: z.ZodGUID;
90
- contentUnitId: z.ZodGUID;
91
- }, z.core.$strip>, z.ZodObject<{
92
- 'filter-languages': z.ZodOptional<z.ZodPreprocess<z.ZodArray<z.ZodGUID>, unknown>>;
93
- limit: z.ZodDefault<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
94
- after: z.ZodOptional<z.ZodString>;
95
- }, z.core.$strip>, undefined, undefined, false, false, {
96
- 400: z.ZodObject<{
97
- message: z.ZodString;
98
- errorCode: z.ZodString;
99
- details: z.ZodOptional<z.ZodAny>;
100
- }, z.core.$strip>;
101
- 401: z.ZodObject<{
102
- message: z.ZodString;
103
- errorCode: z.ZodString;
104
- details: z.ZodOptional<z.ZodAny>;
57
+ contentUnitId: z.ZodGUID;
105
58
  }, z.core.$strip>;
106
- 403: z.ZodObject<{
107
- message: z.ZodString;
108
- errorCode: z.ZodString;
109
- details: z.ZodOptional<z.ZodAny>;
59
+ readonly requestQuerySchema: z.ZodObject<{
60
+ 'filter-languages': z.ZodOptional<z.ZodPreprocess<z.ZodArray<z.ZodGUID>, unknown>>;
61
+ limit: z.ZodDefault<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
62
+ after: z.ZodOptional<z.ZodString>;
110
63
  }, z.core.$strip>;
111
- 200: z.ZodObject<{
112
- data: z.ZodArray<z.ZodObject<{
113
- id: z.ZodGUID;
114
- number: z.ZodNumber;
115
- value: z.ZodString;
116
- status: z.ZodEnum<{
117
- readonly TRANSLATING: 'TRANSLATING';
118
- readonly TRANSLATION_FAILED: 'TRANSLATION_FAILED';
119
- readonly LQA_IN_PROGRESS: 'LQA_IN_PROGRESS';
120
- readonly PENDING_REVIEW: 'PENDING_REVIEW';
121
- readonly APPROVED: 'APPROVED';
122
- }>;
123
- lastChangeSource: z.ZodEnum<{
124
- readonly TRANSLATION_MEMORY: 'TRANSLATION_MEMORY';
125
- readonly AI: 'AI';
126
- readonly HUMAN: 'HUMAN';
127
- readonly IMPORT: 'IMPORT';
128
- }>;
129
- contentLanguageId: z.ZodGUID;
130
- contentUnitId: z.ZodGUID;
131
- textUnitId: z.ZodGUID;
132
- projectId: z.ZodGUID;
133
- translatableWordsCount: z.ZodInt;
134
- sourceTranslatableWordsCount: z.ZodInt;
135
- metadata: z.ZodOptional<z.ZodNullable<z.ZodObject<{
136
- prefix: z.ZodOptional<z.ZodString>;
137
- suffix: z.ZodOptional<z.ZodString>;
138
- }, z.core.$strip>>>;
139
- createdAt: z.ZodISODateTime;
140
- updatedAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
141
- }, z.core.$strip>>;
142
- meta: z.ZodObject<{
143
- count: z.ZodNumber;
144
- cursor: z.ZodOptional<z.ZodString>;
145
- hasMore: z.ZodBoolean;
64
+ readonly pathResolver: (params: {
65
+ projectId: string;
66
+ contentUnitId: string;
67
+ }) => string;
68
+ readonly summary: "List segments of a content unit";
69
+ readonly description: "Get segments for a content unit, optionally filtered by language";
70
+ readonly tags: readonly ["Segments"];
71
+ readonly metadata: {
72
+ allowedWorkspaceRoles: ("admin" | "biller" | "member" | "owner")[];
73
+ };
74
+ readonly responsesByStatusCode: {
75
+ readonly 400: z.ZodObject<{
76
+ message: z.ZodString;
77
+ errorCode: z.ZodString;
78
+ details: z.ZodOptional<z.ZodAny>;
146
79
  }, z.core.$strip>;
147
- }, z.core.$strip>;
148
- }>;
80
+ readonly 401: z.ZodObject<{
81
+ message: z.ZodString;
82
+ errorCode: z.ZodString;
83
+ details: z.ZodOptional<z.ZodAny>;
84
+ }, z.core.$strip>;
85
+ readonly 403: z.ZodObject<{
86
+ message: z.ZodString;
87
+ errorCode: z.ZodString;
88
+ details: z.ZodOptional<z.ZodAny>;
89
+ }, z.core.$strip>;
90
+ readonly 200: z.ZodObject<{
91
+ data: z.ZodArray<z.ZodObject<{
92
+ id: z.ZodGUID;
93
+ number: z.ZodNumber;
94
+ value: z.ZodString;
95
+ status: z.ZodEnum<{
96
+ readonly TRANSLATING: 'TRANSLATING';
97
+ readonly TRANSLATION_FAILED: 'TRANSLATION_FAILED';
98
+ readonly LQA_IN_PROGRESS: 'LQA_IN_PROGRESS';
99
+ readonly PENDING_REVIEW: 'PENDING_REVIEW';
100
+ readonly APPROVED: 'APPROVED';
101
+ }>;
102
+ lastChangeSource: z.ZodEnum<{
103
+ readonly TRANSLATION_MEMORY: 'TRANSLATION_MEMORY';
104
+ readonly AI: 'AI';
105
+ readonly HUMAN: 'HUMAN';
106
+ readonly IMPORT: 'IMPORT';
107
+ }>;
108
+ contentLanguageId: z.ZodGUID;
109
+ contentUnitId: z.ZodGUID;
110
+ textUnitId: z.ZodGUID;
111
+ projectId: z.ZodGUID;
112
+ translatableWordsCount: z.ZodInt;
113
+ sourceTranslatableWordsCount: z.ZodInt;
114
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodObject<{
115
+ prefix: z.ZodOptional<z.ZodString>;
116
+ suffix: z.ZodOptional<z.ZodString>;
117
+ }, z.core.$strip>>>;
118
+ createdAt: z.ZodISODateTime;
119
+ updatedAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
120
+ }, z.core.$strip>>;
121
+ meta: z.ZodObject<{
122
+ count: z.ZodNumber;
123
+ cursor: z.ZodOptional<z.ZodString>;
124
+ hasMore: z.ZodBoolean;
125
+ }, z.core.$strip>;
126
+ }, z.core.$strip>;
127
+ };
128
+ }, "visibility"> & {
129
+ visibility: import("@lokalise/api-contracts").RouteVisibility;
130
+ };
149
131
  export {};
150
132
  //# sourceMappingURL=get-content-unit-segments.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-content-unit-segments.d.ts","sourceRoot":"","sources":["../../../../src/api/contracts/content/get-content-unit-segments.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;AAW1B,QAAA,MAAM,+CAA+C;;;iBAGnD,CAAA;AACF,MAAM,MAAM,mCAAmC,GAAG,CAAC,CAAC,KAAK,CACvD,OAAO,+CAA+C,CACvD,CAAA;AAGD,QAAA,MAAM,wCAAwC;;;;iBAa5C,CAAA;AACF,MAAM,MAAM,kCAAkC,GAAG,CAAC,CAAC,KAAK,CACtD,OAAO,wCAAwC,CAChD,CAAA;AACD,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wCAAwC,CAAC,CAAA;AAEpG,eAAO,MAAM,yCAAyC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAGpD,CAAA;AACF,MAAM,MAAM,8BAA8B,GAAG,CAAC,CAAC,KAAK,CAClD,OAAO,yCAAyC,CACjD,CAAA;AAED,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgBzC,CAAA"}
1
+ {"version":3,"file":"get-content-unit-segments.d.ts","sourceRoot":"","sources":["../../../../src/api/contracts/content/get-content-unit-segments.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;AAW1B,QAAA,MAAM,+CAA+C;;;iBAGnD,CAAA;AACF,MAAM,MAAM,mCAAmC,GAAG,CAAC,CAAC,KAAK,CACvD,OAAO,+CAA+C,CACvD,CAAA;AAGD,QAAA,MAAM,wCAAwC;;;;iBAa5C,CAAA;AACF,MAAM,MAAM,kCAAkC,GAAG,CAAC,CAAC,KAAK,CACtD,OAAO,wCAAwC,CAChD,CAAA;AACD,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wCAAwC,CAAC,CAAA;AAEpG,eAAO,MAAM,yCAAyC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAGpD,CAAA;AACF,MAAM,MAAM,8BAA8B,GAAG,CAAC,CAAC,KAAK,CAClD,OAAO,yCAAyC,CACjD,CAAA;AAED,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;QAU7B,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKjC,CAAA"}
@@ -1,5 +1,5 @@
1
1
  import { zMeta } from '@lokalise/api-common';
2
- import { buildRestContract } from '@lokalise/api-contracts';
2
+ import { defineApiContract } from '@lokalise/api-contracts';
3
3
  import { DEFAULT_ALLOWED_ROLES, OpenApiTags } from '@lokalise/autopilot-common-api-schemas';
4
4
  import { commonErrorResponses } from '@lokalise/common-api-schemas';
5
5
  import { toArrayPreprocessor } from '@lokalise/zod-extras';
@@ -32,18 +32,17 @@ export const GET_CONTENT_UNIT_SEGMENTS_RESPONSE_SCHEMA = z.object({
32
32
  data: z.array(SEGMENT_SCHEMA),
33
33
  meta: zMeta,
34
34
  });
35
- export const getContentUnitSegmentsContract = buildRestContract({
35
+ export const getContentUnitSegmentsContract = defineApiContract({
36
36
  visibility: 'public',
37
37
  method: 'get',
38
38
  requestPathParamsSchema: GET_CONTENT_UNIT_SEGMENTS_REQUEST_PARAMS_SCHEMA,
39
39
  requestQuerySchema: GET_CONTENT_UNIT_SEGMENTS_REQUEST_SCHEMA,
40
40
  pathResolver: (params) => `/v1/projects/${params.projectId}/content-units/${params.contentUnitId}/segments`,
41
- description: 'Get segments for a content unit, optionally filtered by language',
42
41
  summary: 'List segments of a content unit',
42
+ description: 'Get segments for a content unit, optionally filtered by language',
43
43
  tags: [OpenApiTags.Segments.name],
44
- successResponseBodySchema: GET_CONTENT_UNIT_SEGMENTS_RESPONSE_SCHEMA,
45
44
  metadata: { allowedWorkspaceRoles: DEFAULT_ALLOWED_ROLES },
46
- responseSchemasByStatusCode: {
45
+ responsesByStatusCode: {
47
46
  ...commonErrorResponses,
48
47
  200: GET_CONTENT_UNIT_SEGMENTS_RESPONSE_SCHEMA,
49
48
  },
@@ -1 +1 @@
1
- {"version":3,"file":"get-content-unit-segments.js","sourceRoot":"","sources":["../../../../src/api/contracts/content/get-content-unit-segments.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAA;AAC5C,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAA;AAC3D,OAAO,EAAE,qBAAqB,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AAC3F,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAA;AACnE,OAAO,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAA;AAC1D,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;AAC1B,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAA;AACvD,OAAO,EACL,4BAA4B,EAC5B,4BAA4B,EAC5B,sBAAsB,GACvB,MAAM,oBAAoB,CAAA;AAE3B,wEAAwE;AACxE,oEAAoE;AACpE,wEAAwE;AACxE,MAAM,+CAA+C,GAAG,CAAC,CAAC,MAAM,CAAC;IAC/D,SAAS,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,QAAQ,CAAC,sBAAsB,CAAC;IACpD,aAAa,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,QAAQ,CAAC,kDAAkD,CAAC;CACrF,CAAC,CAAA;AAKF,MAAM,kCAAkC,GAAG,GAAG,CAAA;AAC9C,MAAM,wCAAwC,GAAG,CAAC,CAAC,MAAM,CAAC;IACxD,kBAAkB,EAAE,CAAC;SAClB,UAAU,CAAC,mBAAmB,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;SAC3D,QAAQ,EAAE;SACV,QAAQ,CAAC,4CAA4C,CAAC;IACzD,KAAK,EAAE,CAAC,CAAC,MAAM;SACZ,MAAM,EAAE;SACR,GAAG,CAAC,CAAC,CAAC;SACN,GAAG,CAAC,kCAAkC,CAAC;SACvC,QAAQ,EAAE;SACV,OAAO,CAAC,kCAAkC,CAAC;SAC3C,QAAQ,CAAC,4BAA4B,CAAC;IACzC,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,4BAA4B,CAAC;CACpE,CAAC,CAAA;AAMF,MAAM,CAAC,MAAM,yCAAyC,GAAG,CAAC,CAAC,MAAM,CAAC;IAChE,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,cAAc,CAAC;IAC7B,IAAI,EAAE,KAAK;CACZ,CAAC,CAAA;AAKF,MAAM,CAAC,MAAM,8BAA8B,GAAG,iBAAiB,CAAC;IAC9D,UAAU,EAAE,QAAQ;IACpB,MAAM,EAAE,KAAK;IACb,uBAAuB,EAAE,+CAA+C;IACxE,kBAAkB,EAAE,wCAAwC;IAC5D,YAAY,EAAE,CAAC,MAAM,EAAE,EAAE,CACvB,gBAAgB,MAAM,CAAC,SAAS,kBAAkB,MAAM,CAAC,aAAa,WAAW;IACnF,WAAW,EAAE,kEAAkE;IAC/E,OAAO,EAAE,iCAAiC;IAC1C,IAAI,EAAE,CAAC,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC;IACjC,yBAAyB,EAAE,yCAAyC;IACpE,QAAQ,EAAE,EAAE,qBAAqB,EAAE,qBAAqB,EAAE;IAC1D,2BAA2B,EAAE;QAC3B,GAAG,oBAAoB;QACvB,GAAG,EAAE,yCAAyC;KAC/C;CACF,CAAC,CAAA"}
1
+ {"version":3,"file":"get-content-unit-segments.js","sourceRoot":"","sources":["../../../../src/api/contracts/content/get-content-unit-segments.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAA;AAC5C,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAA;AAC3D,OAAO,EAAE,qBAAqB,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAA;AAC3F,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAA;AACnE,OAAO,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAA;AAC1D,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;AAC1B,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAA;AACvD,OAAO,EACL,4BAA4B,EAC5B,4BAA4B,EAC5B,sBAAsB,GACvB,MAAM,oBAAoB,CAAA;AAE3B,wEAAwE;AACxE,oEAAoE;AACpE,wEAAwE;AACxE,MAAM,+CAA+C,GAAG,CAAC,CAAC,MAAM,CAAC;IAC/D,SAAS,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,QAAQ,CAAC,sBAAsB,CAAC;IACpD,aAAa,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,QAAQ,CAAC,kDAAkD,CAAC;CACrF,CAAC,CAAA;AAKF,MAAM,kCAAkC,GAAG,GAAG,CAAA;AAC9C,MAAM,wCAAwC,GAAG,CAAC,CAAC,MAAM,CAAC;IACxD,kBAAkB,EAAE,CAAC;SAClB,UAAU,CAAC,mBAAmB,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;SAC3D,QAAQ,EAAE;SACV,QAAQ,CAAC,4CAA4C,CAAC;IACzD,KAAK,EAAE,CAAC,CAAC,MAAM;SACZ,MAAM,EAAE;SACR,GAAG,CAAC,CAAC,CAAC;SACN,GAAG,CAAC,kCAAkC,CAAC;SACvC,QAAQ,EAAE;SACV,OAAO,CAAC,kCAAkC,CAAC;SAC3C,QAAQ,CAAC,4BAA4B,CAAC;IACzC,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,4BAA4B,CAAC;CACpE,CAAC,CAAA;AAMF,MAAM,CAAC,MAAM,yCAAyC,GAAG,CAAC,CAAC,MAAM,CAAC;IAChE,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,cAAc,CAAC;IAC7B,IAAI,EAAE,KAAK;CACZ,CAAC,CAAA;AAKF,MAAM,CAAC,MAAM,8BAA8B,GAAG,iBAAiB,CAAC;IAC9D,UAAU,EAAE,QAAQ;IACpB,MAAM,EAAE,KAAK;IACb,uBAAuB,EAAE,+CAA+C;IACxE,kBAAkB,EAAE,wCAAwC;IAC5D,YAAY,EAAE,CAAC,MAAM,EAAE,EAAE,CACvB,gBAAgB,MAAM,CAAC,SAAS,kBAAkB,MAAM,CAAC,aAAa,WAAW;IACnF,OAAO,EAAE,iCAAiC;IAC1C,WAAW,EAAE,kEAAkE;IAC/E,IAAI,EAAE,CAAC,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC;IACjC,QAAQ,EAAE,EAAE,qBAAqB,EAAE,qBAAqB,EAAE;IAC1D,qBAAqB,EAAE;QACrB,GAAG,oBAAoB;QACvB,GAAG,EAAE,yCAAyC;KAC/C;CACF,CAAC,CAAA"}
@@ -3,38 +3,59 @@ declare const SUBSCRIBE_CHARACTER_USAGE_REQUEST_PARAMS_SCHEMA: z.ZodObject<{
3
3
  projectId: z.ZodGUID;
4
4
  }, z.core.$strip>;
5
5
  export type SubscribeCharacterUsageRequestParams = z.infer<typeof SUBSCRIBE_CHARACTER_USAGE_REQUEST_PARAMS_SCHEMA>;
6
- export declare const getCharacterUsageSubscribeContract: import("@lokalise/api-contracts").SSEContractDefinition<"get", z.ZodObject<{
7
- projectId: z.ZodGUID;
8
- }, z.core.$strip>, undefined, z.ZodAny, undefined, {
9
- 'content_unit_character_usage.updated': z.ZodObject<{
10
- contentUnitId: z.ZodGUID;
11
- contentLanguageId: z.ZodGUID;
12
- characterCount: z.ZodNumber;
13
- characterLimit: z.ZodNumber;
14
- countOptions: z.ZodObject<{
15
- algorithm: z.ZodOptional<z.ZodEnum<{
16
- readonly UTF_16: 'utf16';
17
- readonly CODE_POINTS: 'codePoints';
18
- }>>;
19
- excludeNtc: z.ZodOptional<z.ZodBoolean>;
20
- }, z.core.$strip>;
21
- }, z.core.$strip>;
22
- }, {
23
- 400: z.ZodObject<{
24
- message: z.ZodString;
25
- errorCode: z.ZodString;
26
- details: z.ZodOptional<z.ZodAny>;
27
- }, z.core.$strip>;
28
- 401: z.ZodObject<{
29
- message: z.ZodString;
30
- errorCode: z.ZodString;
31
- details: z.ZodOptional<z.ZodAny>;
6
+ export declare const getCharacterUsageSubscribeContract: Omit<{
7
+ readonly visibility: "internal";
8
+ readonly method: "get";
9
+ readonly requestPathParamsSchema: z.ZodObject<{
10
+ projectId: z.ZodGUID;
32
11
  }, z.core.$strip>;
33
- 403: z.ZodObject<{
34
- message: z.ZodString;
35
- errorCode: z.ZodString;
36
- details: z.ZodOptional<z.ZodAny>;
37
- }, z.core.$strip>;
38
- }>;
12
+ readonly pathResolver: (params: {
13
+ projectId: string;
14
+ }) => string;
15
+ readonly summary: "Subscribe to character usage updates";
16
+ readonly description: "Subscribe to live content unit character usage updates";
17
+ readonly metadata: {
18
+ allowedWorkspaceRoles: ("admin" | "biller" | "member" | "owner")[];
19
+ };
20
+ readonly responsesByStatusCode: {
21
+ readonly 400: z.ZodObject<{
22
+ message: z.ZodString;
23
+ errorCode: z.ZodString;
24
+ details: z.ZodOptional<z.ZodAny>;
25
+ }, z.core.$strip>;
26
+ readonly 401: z.ZodObject<{
27
+ message: z.ZodString;
28
+ errorCode: z.ZodString;
29
+ details: z.ZodOptional<z.ZodAny>;
30
+ }, z.core.$strip>;
31
+ readonly 403: z.ZodObject<{
32
+ message: z.ZodString;
33
+ errorCode: z.ZodString;
34
+ details: z.ZodOptional<z.ZodAny>;
35
+ }, z.core.$strip>;
36
+ readonly 200: {
37
+ readonly content: {
38
+ readonly 'text/event-stream': import("@lokalise/api-contracts").SseBody<{
39
+ 'content_unit_character_usage.updated': z.ZodObject<{
40
+ contentUnitId: z.ZodGUID;
41
+ contentLanguageId: z.ZodGUID;
42
+ characterCount: z.ZodNumber;
43
+ characterLimit: z.ZodNumber;
44
+ countOptions: z.ZodObject<{
45
+ algorithm: z.ZodOptional<z.ZodEnum<{
46
+ readonly UTF_16: 'utf16';
47
+ readonly CODE_POINTS: 'codePoints';
48
+ }>>;
49
+ excludeNtc: z.ZodOptional<z.ZodBoolean>;
50
+ }, z.core.$strip>;
51
+ }, z.core.$strip>;
52
+ }>;
53
+ };
54
+ readonly description?: string | undefined;
55
+ };
56
+ };
57
+ }, "visibility"> & {
58
+ visibility: import("@lokalise/api-contracts").RouteVisibility;
59
+ };
39
60
  export {};
40
61
  //# sourceMappingURL=get-content-units-character-usage-subscribe.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-content-units-character-usage-subscribe.d.ts","sourceRoot":"","sources":["../../../../src/api/contracts/content/get-content-units-character-usage-subscribe.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;AAM1B,QAAA,MAAM,+CAA+C;;iBAEnD,CAAA;AACF,MAAM,MAAM,oCAAoC,GAAG,CAAC,CAAC,KAAK,CACxD,OAAO,+CAA+C,CACvD,CAAA;AAGD,eAAO,MAAM,kCAAkC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAe7C,CAAA"}
1
+ {"version":3,"file":"get-content-units-character-usage-subscribe.d.ts","sourceRoot":"","sources":["../../../../src/api/contracts/content/get-content-units-character-usage-subscribe.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;AAM1B,QAAA,MAAM,+CAA+C;;iBAEnD,CAAA;AACF,MAAM,MAAM,oCAAoC,GAAG,CAAC,CAAC,KAAK,CACxD,OAAO,+CAA+C,CACvD,CAAA;AAED,eAAO,MAAM,kCAAkC;;;;;;;;;;;;QAQjC,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOjC,CAAA"}
@@ -1,4 +1,4 @@
1
- import { buildSseContract } from '@lokalise/api-contracts';
1
+ import { defineApiContract, sseResponse } from '@lokalise/api-contracts';
2
2
  import { DEFAULT_ALLOWED_ROLES } from '@lokalise/autopilot-common-api-schemas';
3
3
  import { commonErrorResponses } from '@lokalise/common-api-schemas';
4
4
  import { z } from 'zod/v4';
@@ -9,20 +9,19 @@ import { CONTENT_UNIT_CHARACTER_USAGE_SCHEMA } from '../../objects/index.js';
9
9
  const SUBSCRIBE_CHARACTER_USAGE_REQUEST_PARAMS_SCHEMA = z.object({
10
10
  projectId: z.guid(),
11
11
  });
12
- // Pure SSE contract (no successResponseBodySchema)
13
- export const getCharacterUsageSubscribeContract = buildSseContract({
12
+ export const getCharacterUsageSubscribeContract = defineApiContract({
14
13
  visibility: 'internal',
15
14
  method: 'get',
16
15
  requestPathParamsSchema: SUBSCRIBE_CHARACTER_USAGE_REQUEST_PARAMS_SCHEMA,
17
- requestHeaderSchema: z.any(),
18
16
  pathResolver: (params) => `/v1/projects/${params.projectId}/content-units/character-usage/actions/subscribe`,
17
+ summary: 'Subscribe to character usage updates',
19
18
  description: 'Subscribe to live content unit character usage updates',
20
19
  metadata: { allowedWorkspaceRoles: DEFAULT_ALLOWED_ROLES },
21
- responseBodySchemasByStatusCode: {
20
+ responsesByStatusCode: {
22
21
  ...commonErrorResponses,
23
- },
24
- serverSentEventSchemas: {
25
- 'content_unit_character_usage.updated': CONTENT_UNIT_CHARACTER_USAGE_SCHEMA,
22
+ 200: sseResponse({
23
+ 'content_unit_character_usage.updated': CONTENT_UNIT_CHARACTER_USAGE_SCHEMA,
24
+ }),
26
25
  },
27
26
  });
28
27
  //# sourceMappingURL=get-content-units-character-usage-subscribe.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-content-units-character-usage-subscribe.js","sourceRoot":"","sources":["../../../../src/api/contracts/content/get-content-units-character-usage-subscribe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAA;AAC1D,OAAO,EAAE,qBAAqB,EAAE,MAAM,wCAAwC,CAAA;AAC9E,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAA;AACnE,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;AAC1B,OAAO,EAAE,mCAAmC,EAAE,MAAM,wBAAwB,CAAA;AAE5E,+DAA+D;AAC/D,8EAA8E;AAC9E,+DAA+D;AAC/D,MAAM,+CAA+C,GAAG,CAAC,CAAC,MAAM,CAAC;IAC/D,SAAS,EAAE,CAAC,CAAC,IAAI,EAAE;CACpB,CAAC,CAAA;AAKF,mDAAmD;AACnD,MAAM,CAAC,MAAM,kCAAkC,GAAG,gBAAgB,CAAC;IACjE,UAAU,EAAE,UAAU;IACtB,MAAM,EAAE,KAAK;IACb,uBAAuB,EAAE,+CAA+C;IACxE,mBAAmB,EAAE,CAAC,CAAC,GAAG,EAAE;IAC5B,YAAY,EAAE,CAAC,MAAM,EAAE,EAAE,CACvB,gBAAgB,MAAM,CAAC,SAAS,kDAAkD;IACpF,WAAW,EAAE,wDAAwD;IACrE,QAAQ,EAAE,EAAE,qBAAqB,EAAE,qBAAqB,EAAE;IAC1D,+BAA+B,EAAE;QAC/B,GAAG,oBAAoB;KACxB;IACD,sBAAsB,EAAE;QACtB,sCAAsC,EAAE,mCAAmC;KAC5E;CACF,CAAC,CAAA"}
1
+ {"version":3,"file":"get-content-units-character-usage-subscribe.js","sourceRoot":"","sources":["../../../../src/api/contracts/content/get-content-units-character-usage-subscribe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAA;AACxE,OAAO,EAAE,qBAAqB,EAAE,MAAM,wCAAwC,CAAA;AAC9E,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAA;AACnE,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;AAC1B,OAAO,EAAE,mCAAmC,EAAE,MAAM,wBAAwB,CAAA;AAE5E,+DAA+D;AAC/D,8EAA8E;AAC9E,+DAA+D;AAC/D,MAAM,+CAA+C,GAAG,CAAC,CAAC,MAAM,CAAC;IAC/D,SAAS,EAAE,CAAC,CAAC,IAAI,EAAE;CACpB,CAAC,CAAA;AAKF,MAAM,CAAC,MAAM,kCAAkC,GAAG,iBAAiB,CAAC;IAClE,UAAU,EAAE,UAAU;IACtB,MAAM,EAAE,KAAK;IACb,uBAAuB,EAAE,+CAA+C;IACxE,YAAY,EAAE,CAAC,MAAM,EAAE,EAAE,CACvB,gBAAgB,MAAM,CAAC,SAAS,kDAAkD;IACpF,OAAO,EAAE,sCAAsC;IAC/C,WAAW,EAAE,wDAAwD;IACrE,QAAQ,EAAE,EAAE,qBAAqB,EAAE,qBAAqB,EAAE;IAC1D,qBAAqB,EAAE;QACrB,GAAG,oBAAoB;QACvB,GAAG,EAAE,WAAW,CAAC;YACf,sCAAsC,EAAE,mCAAmC;SAC5E,CAAC;KACH;CACF,CAAC,CAAA"}