@lokalise/translation-storage-api-schemas 20.0.1 → 20.1.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 (93) hide show
  1. package/dist/api/contracts/content/delete-item.d.ts +1 -1
  2. package/dist/api/contracts/content/get-content-unit-segments.d.ts +2 -2
  3. package/dist/api/contracts/content/get-content-unit-segments.d.ts.map +1 -1
  4. package/dist/api/contracts/content/get-content-unit-segments.js +6 -1
  5. package/dist/api/contracts/content/get-content-unit-segments.js.map +1 -1
  6. package/dist/api/contracts/content/get-content-units-character-usage-subscribe.d.ts +1 -1
  7. package/dist/api/contracts/content/get-content-units.d.ts +1 -1
  8. package/dist/api/contracts/content/get-items-lock-status.d.ts +1 -1
  9. package/dist/api/contracts/content/get-items.d.ts +1 -1
  10. package/dist/api/contracts/content/get-project-content-languages.d.ts +1 -1
  11. package/dist/api/contracts/content/get-segment-events-subscribe.d.ts +1 -1
  12. package/dist/api/contracts/content/patch-update-segment.d.ts +17 -3
  13. package/dist/api/contracts/content/patch-update-segment.d.ts.map +1 -1
  14. package/dist/api/contracts/content/patch-update-segment.js +35 -4
  15. package/dist/api/contracts/content/patch-update-segment.js.map +1 -1
  16. package/dist/api/contracts/content/post-bulk-update-segments.d.ts +1 -1
  17. package/dist/api/contracts/content/post-content-units-actions-get-character-usage.d.ts +1 -1
  18. package/dist/api/contracts/content/post-items-actions-get-filtered.d.ts +1 -1
  19. package/dist/api/contracts/content/post-items-bulk-delete.d.ts +1 -1
  20. package/dist/api/contracts/content-manager/get-content-manager-events-subscribe.d.ts +1 -1
  21. package/dist/api/contracts/content-manager/get-content-manager-items-summary.d.ts +1 -1
  22. package/dist/api/contracts/content-manager/get-files.d.ts +1 -1
  23. package/dist/api/contracts/content-manager/get-import-details.d.ts +1 -1
  24. package/dist/api/contracts/content-manager/get-import-settings.d.ts +1 -1
  25. package/dist/api/contracts/content-manager/get-languages-summary.d.ts +1 -1
  26. package/dist/api/contracts/content-manager/get-languages.d.ts +1 -1
  27. package/dist/api/contracts/content-manager/get-translation-request.d.ts +1 -1
  28. package/dist/api/contracts/content-manager/patch-import-settings.d.ts +1 -1
  29. package/dist/api/contracts/content-manager/post-import-files.d.ts +1 -1
  30. package/dist/api/contracts/content-manager/post-import-settings.d.ts +2 -2
  31. package/dist/api/contracts/content-manager/post-request-import.d.ts +1 -1
  32. package/dist/api/contracts/content-manager/request-export-by-item-ids.d.ts +1 -1
  33. package/dist/api/contracts/content-manager/request-export-by-item-names.d.ts +1 -1
  34. package/dist/api/contracts/context/delete-glossary-term.d.ts +1 -1
  35. package/dist/api/contracts/context/delete-project-translation-memory-settings.d.ts +1 -1
  36. package/dist/api/contracts/context/delete-style-guide.d.ts +1 -1
  37. package/dist/api/contracts/context/delete-workspace-glossary.d.ts +1 -1
  38. package/dist/api/contracts/context/get-glossary-terms-recommendations.d.ts +1 -1
  39. package/dist/api/contracts/context/get-project-translation-memory-settings.d.ts +1 -1
  40. package/dist/api/contracts/context/get-recent-workspace-glossary-application.d.ts +1 -1
  41. package/dist/api/contracts/context/get-style-guide-for-project.d.ts +1 -1
  42. package/dist/api/contracts/context/get-style-guides-for-workspace.d.ts +1 -1
  43. package/dist/api/contracts/context/get-workspace-glossary-terms.d.ts +1 -1
  44. package/dist/api/contracts/context/get-workspace-glossary.d.ts +1 -1
  45. package/dist/api/contracts/context/get-workspace-translation-memories.d.ts +1 -1
  46. package/dist/api/contracts/context/post-apply-workspace-glossary.d.ts +1 -1
  47. package/dist/api/contracts/context/post-create-glossary-term.d.ts +1 -1
  48. package/dist/api/contracts/context/post-create-style-guide.d.ts +1 -1
  49. package/dist/api/contracts/context/post-create-workspace-glossary.d.ts +1 -1
  50. package/dist/api/contracts/context/post-mark-glossary-terms-recommendations-as-seen.d.ts +1 -1
  51. package/dist/api/contracts/context/put-update-glossary-term-recommendation.d.ts +1 -1
  52. package/dist/api/contracts/context/put-update-glossary-term.d.ts +1 -1
  53. package/dist/api/contracts/context/put-update-project-translation-memory-settings.d.ts +1 -1
  54. package/dist/api/contracts/context/put-update-style-guide-for-project.d.ts +1 -1
  55. package/dist/api/contracts/context/put-update-style-guide.d.ts +1 -1
  56. package/dist/api/contracts/editor/bulk-actions/get-editor-bulk-actions-selection-content.d.ts +1 -1
  57. package/dist/api/contracts/editor/bulk-actions/get-editor-bulk-actions-selection-get-count.d.ts +1 -1
  58. package/dist/api/contracts/editor/bulk-actions/get-editor-bulk-actions.d.ts +1 -1
  59. package/dist/api/contracts/editor/bulk-actions/post-editor-bulk-action-actions-cancel.d.ts +1 -1
  60. package/dist/api/contracts/editor/bulk-actions/post-editor-bulk-actions-selection-get-selected.d.ts +1 -1
  61. package/dist/api/contracts/editor/bulk-actions/post-editor-bulk-actions-selection.d.ts +1 -1
  62. package/dist/api/contracts/editor/bulk-actions/post-editor-bulk-actions.d.ts +1 -1
  63. package/dist/api/contracts/editor/get-editor-accessible-locales.d.ts +1 -1
  64. package/dist/api/contracts/editor/get-editor-content-segment-cursors.d.ts +1 -1
  65. package/dist/api/contracts/editor/get-editor-work-progress.d.ts +1 -1
  66. package/dist/api/contracts/editor/get-item-preview-content.d.ts +1 -1
  67. package/dist/api/contracts/editor/get-item-preview.d.ts +1 -1
  68. package/dist/api/contracts/editor/get-segment-duplicates.d.ts +1 -1
  69. package/dist/api/contracts/editor/post-editor-content-actions-get-filters.d.ts +1 -1
  70. package/dist/api/contracts/editor/post-editor-content-actions-search.d.ts +1 -1
  71. package/dist/api/contracts/editor/post-find-glossary-terms-matches.d.ts +1 -1
  72. package/dist/api/contracts/editor/post-item-preview.d.ts +1 -1
  73. package/dist/api/contracts/editor/post-segment-actions-lqa.d.ts +1 -1
  74. package/dist/api/contracts/editor/post-segment-actions-restore-version.d.ts +1 -1
  75. package/dist/api/contracts/editor/post-segment-actions-translate.d.ts +1 -1
  76. package/dist/api/contracts/editor/post-segment-actions-update-duplicates.d.ts +1 -1
  77. package/dist/api/contracts/leverage/get-task-leverage-report-export.d.ts +1 -1
  78. package/dist/api/contracts/leverage/get-task-leverage-report.d.ts +1 -1
  79. package/dist/api/contracts/translation-history/get-segment-history.d.ts +1 -1
  80. package/dist/api/contracts/translation-process/get-project-translation-process-by-id.d.ts +1 -1
  81. package/dist/api/contracts/translation-process/get-project-translation-process.d.ts +1 -1
  82. package/dist/api/contracts/translation-process/get-workspace-translation-status.d.ts +1 -1
  83. package/dist/api/contracts/translation-process/post-content-unit-quality-issues-actions-get-filtered.d.ts +1 -1
  84. package/dist/api/contracts/translation-process/post-segment-quality-issue-actions-resolve.d.ts +1 -1
  85. package/dist/api/contracts/translation-process/post-segment-quality-issues-actions-get-filtered.d.ts +1 -1
  86. package/dist/api/objects/segment.d.ts.map +1 -1
  87. package/dist/api/objects/segment.js +9 -1
  88. package/dist/api/objects/segment.js.map +1 -1
  89. package/dist/api/objects/translation-request.d.ts +0 -25
  90. package/dist/api/objects/translation-request.d.ts.map +1 -1
  91. package/dist/api/objects/translation-request.js +2 -2
  92. package/dist/api/objects/translation-request.js.map +1 -1
  93. package/package.json +5 -5
@@ -16,7 +16,7 @@ export declare const deleteItemContract: Omit<{
16
16
  readonly pathResolver: (params: {
17
17
  projectId: string;
18
18
  itemId: string;
19
- }) => string;
19
+ }) => `/v1/projects/${string}/items/${string}`;
20
20
  readonly summary: "Delete item";
21
21
  readonly description: "Delete an item and all of its content";
22
22
  readonly metadata: {
@@ -64,9 +64,9 @@ export declare const getContentUnitSegmentsContract: Omit<{
64
64
  readonly pathResolver: (params: {
65
65
  projectId: string;
66
66
  contentUnitId: string;
67
- }) => string;
67
+ }) => `/v1/projects/${string}/content-units/${string}/segments`;
68
68
  readonly summary: "List segments of a content unit";
69
- readonly description: "Get segments for a content unit, optionally filtered by language";
69
+ readonly description: string;
70
70
  readonly tags: readonly ["Segments"];
71
71
  readonly metadata: {
72
72
  allowedWorkspaceRoles: ("admin" | "biller" | "member" | "owner")[];
@@ -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;;;;;;;;;;;;;;;;;;;;QAU7B,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKjC,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;;;;;;;;;;;;;;;;;;;;QAe7B,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKjC,CAAA"}
@@ -39,7 +39,12 @@ export const getContentUnitSegmentsContract = defineApiContract({
39
39
  requestQuerySchema: GET_CONTENT_UNIT_SEGMENTS_REQUEST_SCHEMA,
40
40
  pathResolver: (params) => `/v1/projects/${params.projectId}/content-units/${params.contentUnitId}/segments`,
41
41
  summary: 'List segments of a content unit',
42
- description: 'Get segments for a content unit, optionally filtered by language',
42
+ description: [
43
+ 'Get segments for a content unit.\n',
44
+ 'Segment values include',
45
+ 'non-translatable content (NTC) wrapped between the Unicode characters `U+E101` and',
46
+ '`U+E102`; see the `value` field of `Segment`, for more info',
47
+ ].join(' '),
43
48
  tags: [OpenApiTags.Segments.name],
44
49
  metadata: { allowedWorkspaceRoles: DEFAULT_ALLOWED_ROLES },
45
50
  responsesByStatusCode: {
@@ -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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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"}
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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AAI,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"}
@@ -11,7 +11,7 @@ export declare const getCharacterUsageSubscribeContract: Omit<{
11
11
  }, z.core.$strip>;
12
12
  readonly pathResolver: (params: {
13
13
  projectId: string;
14
- }) => string;
14
+ }) => `/v1/projects/${string}/content-units/character-usage/actions/subscribe`;
15
15
  readonly summary: "Subscribe to character usage updates";
16
16
  readonly description: "Subscribe to live content unit character usage updates";
17
17
  readonly metadata: {
@@ -61,7 +61,7 @@ export declare const getContentUnitsContract: Omit<{
61
61
  readonly pathResolver: (params: {
62
62
  projectId: string;
63
63
  itemId: string;
64
- }) => string;
64
+ }) => `/v1/projects/${string}/items/${string}/content-units`;
65
65
  readonly summary: "List content units of an item";
66
66
  readonly description: "Get content units for an item, optionally filtered by key";
67
67
  readonly tags: readonly ["Content units"];
@@ -24,7 +24,7 @@ export declare const getItemLockStatusContract: Omit<{
24
24
  }, z.core.$strip>;
25
25
  readonly pathResolver: (params: {
26
26
  projectId: string;
27
- }) => string;
27
+ }) => `/v1/projects/${string}/items/lock-status`;
28
28
  readonly summary: "Get item lock status";
29
29
  readonly description: "Check if item name is locked for reimport";
30
30
  readonly metadata: {
@@ -91,7 +91,7 @@ export declare const getItemsContract: Omit<{
91
91
  }, z.core.$strip>;
92
92
  readonly pathResolver: (params: {
93
93
  projectId: string;
94
- }) => string;
94
+ }) => `/v1/projects/${string}/items`;
95
95
  readonly summary: "List project items";
96
96
  readonly description: "Get project items";
97
97
  readonly tags: readonly ["Items"];
@@ -43,7 +43,7 @@ export declare const getProjectContentLanguagesContract: Omit<{
43
43
  }, z.core.$strip>;
44
44
  readonly pathResolver: (params: {
45
45
  projectId: string;
46
- }) => string;
46
+ }) => `/v1/projects/${string}/content-languages`;
47
47
  readonly summary: "Get content languages";
48
48
  readonly description: "Get the content languages of a project, optionally filtered by id or locale";
49
49
  readonly responsesByStatusCode: {
@@ -51,7 +51,7 @@ export declare const getSegmentEventsSubscribeContract: Omit<{
51
51
  }, z.core.$strip>;
52
52
  readonly pathResolver: (params: {
53
53
  projectId: string;
54
- }) => string;
54
+ }) => `/v1/projects/${string}/segment-events/actions/subscribe`;
55
55
  readonly summary: "Subscribe to project segment events";
56
56
  readonly description: "Subscribe to live segment and segment set updates for a project";
57
57
  readonly metadata: {
@@ -13,6 +13,11 @@ export declare const PATCH_UPDATE_SEGMENT_BODY_SCHEMA: z.ZodObject<{
13
13
  elapsedTimeSinceLastReset: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
14
14
  }, z.core.$strip>;
15
15
  export type PatchUpdateSegmentBody = z.infer<typeof PATCH_UPDATE_SEGMENT_BODY_SCHEMA>;
16
+ declare const PATCH_UPDATE_SEGMENT_WARNING_SCHEMA: z.ZodObject<{
17
+ code: z.ZodString;
18
+ details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
19
+ }, z.core.$strip>;
20
+ export type PatchUpdateSegmentWarning = z.infer<typeof PATCH_UPDATE_SEGMENT_WARNING_SCHEMA>;
16
21
  declare const PATCH_UPDATE_SEGMENT_RESPONSE_SCHEMA: z.ZodObject<{
17
22
  data: z.ZodObject<{
18
23
  id: z.ZodGUID;
@@ -44,10 +49,14 @@ declare const PATCH_UPDATE_SEGMENT_RESPONSE_SCHEMA: z.ZodObject<{
44
49
  createdAt: z.ZodISODateTime;
45
50
  updatedAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
46
51
  }, z.core.$strip>;
52
+ warnings: z.ZodOptional<z.ZodArray<z.ZodObject<{
53
+ code: z.ZodString;
54
+ details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
55
+ }, z.core.$strip>>>;
47
56
  }, z.core.$strip>;
48
57
  export type PatchUpdateSegmentResponse = z.infer<typeof PATCH_UPDATE_SEGMENT_RESPONSE_SCHEMA>;
49
58
  export declare const patchUpdateSegmentContract: Omit<{
50
- readonly visibility: "internal";
59
+ readonly visibility: "public";
51
60
  readonly method: "patch";
52
61
  readonly requestPathParamsSchema: z.ZodObject<{
53
62
  projectId: z.ZodGUID;
@@ -64,9 +73,10 @@ export declare const patchUpdateSegmentContract: Omit<{
64
73
  readonly pathResolver: (params: {
65
74
  projectId: string;
66
75
  segmentId: string;
67
- }) => string;
76
+ }) => `/v1/projects/${string}/segments/${string}`;
68
77
  readonly summary: "Update segment";
69
- readonly description: "Update a segment";
78
+ readonly description: string;
79
+ readonly tags: readonly ["Segments"];
70
80
  readonly metadata: {
71
81
  allowedWorkspaceRoles: ("admin" | "biller" | "member" | "owner")[];
72
82
  };
@@ -117,6 +127,10 @@ export declare const patchUpdateSegmentContract: Omit<{
117
127
  createdAt: z.ZodISODateTime;
118
128
  updatedAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
119
129
  }, z.core.$strip>;
130
+ warnings: z.ZodOptional<z.ZodArray<z.ZodObject<{
131
+ code: z.ZodString;
132
+ details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
133
+ }, z.core.$strip>>>;
120
134
  }, z.core.$strip>;
121
135
  readonly 404: z.ZodObject<{
122
136
  message: z.ZodString;
@@ -1 +1 @@
1
- {"version":3,"file":"patch-update-segment.d.ts","sourceRoot":"","sources":["../../../../src/api/contracts/content/patch-update-segment.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;AAO1B,QAAA,MAAM,kCAAkC;;;iBAGtC,CAAA;AACF,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kCAAkC,CAAC,CAAA;AAEzF,eAAO,MAAM,gCAAgC;;;;;;;iBAkBzC,CAAA;AACJ,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAA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
  import { COMMON_ERROR_RESPONSE_SCHEMA } from '@lokalise/api-common';
2
2
  import { defineApiContract } from '@lokalise/api-contracts';
3
- import { DEFAULT_ALLOWED_ROLES } from '@lokalise/autopilot-common-api-schemas';
3
+ import { DEFAULT_ALLOWED_ROLES, OpenApiTags } from '@lokalise/autopilot-common-api-schemas';
4
4
  import { commonErrorResponses } from '@lokalise/common-api-schemas';
5
5
  import { z } from 'zod/v4';
6
6
  import { SEGMENT_SCHEMA, SegmentStatusEnum } from '../../objects/index.js';
@@ -14,7 +14,14 @@ const PATCH_UPDATE_SEGMENT_PARAMS_SCHEMA = z.object({
14
14
  });
15
15
  export const PATCH_UPDATE_SEGMENT_BODY_SCHEMA = z
16
16
  .object({
17
- value: z.string().optional().describe('The new translated value for the segment'),
17
+ value: z
18
+ .string()
19
+ .optional()
20
+ .describe([
21
+ 'The new translated value for the segment, including its non-translatable content (NTC)',
22
+ 'wrapped between the Unicode characters `U+E101` and `U+E102`. Modify NTC carefully:',
23
+ 'changing, moving or removing NTC fragments may break the format of the exported file.',
24
+ ].join(' ')),
18
25
  status: z
19
26
  .enum([SegmentStatusEnum.APPROVED, SegmentStatusEnum.PENDING_REVIEW])
20
27
  .optional()
@@ -31,17 +38,41 @@ export const PATCH_UPDATE_SEGMENT_BODY_SCHEMA = z
31
38
  .refine(({ value, status }) => value !== undefined || status !== undefined, {
32
39
  message: 'At least one of the fields must be defined',
33
40
  });
41
+ const PATCH_UPDATE_SEGMENT_WARNING_SCHEMA = z.object({
42
+ code: z
43
+ .string()
44
+ .describe([
45
+ 'The category of the warning, e.g. `NON_TRANSLATABLE_TAGS_MISMATCH` when the',
46
+ 'non-translatable content (NTC) of the segment does not match the NTC of its source segment',
47
+ ].join(' ')),
48
+ details: z
49
+ .record(z.string(), z.unknown())
50
+ .optional()
51
+ .describe('Additional information about the warning; its shape depends on the `code`'),
52
+ });
34
53
  const PATCH_UPDATE_SEGMENT_RESPONSE_SCHEMA = z.object({
35
54
  data: SEGMENT_SCHEMA,
55
+ warnings: z
56
+ .array(PATCH_UPDATE_SEGMENT_WARNING_SCHEMA)
57
+ .optional()
58
+ .describe([
59
+ 'Non-blocking problems detected on the `value` sent in the request. The update is applied',
60
+ 'regardless. Omitted when no problems were found',
61
+ ].join(' ')),
36
62
  });
37
63
  export const patchUpdateSegmentContract = defineApiContract({
38
- visibility: 'internal',
64
+ visibility: 'public',
39
65
  method: 'patch',
40
66
  requestPathParamsSchema: PATCH_UPDATE_SEGMENT_PARAMS_SCHEMA,
41
67
  requestBodySchema: PATCH_UPDATE_SEGMENT_BODY_SCHEMA,
42
68
  pathResolver: (params) => `/v1/projects/${params.projectId}/segments/${params.segmentId}`,
43
69
  summary: 'Update segment',
44
- description: 'Update a segment',
70
+ description: [
71
+ 'Update the value and/or the status of a segment. At least one of them must be provided.\n',
72
+ 'The value includes non-translatable content (NTC) wrapped between the Unicode characters',
73
+ '`U+E101` and `U+E102`; see the `value` field of `Segment`, for more info.',
74
+ ].join(' '),
75
+ tags: [OpenApiTags.Segments.name],
45
76
  metadata: {
46
77
  allowedWorkspaceRoles: DEFAULT_ALLOWED_ROLES,
47
78
  },
@@ -1 +1 @@
1
- {"version":3,"file":"patch-update-segment.js","sourceRoot":"","sources":["../../../../src/api/contracts/content/patch-update-segment.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,oBAAoB,EAAE,MAAM,8BAA8B,CAAA;AACnE,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;AAC1B,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAA;AAC1E,OAAO,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAA;AAE3D,6CAA6C;AAC7C,oDAAoD;AACpD,6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B,MAAM,CAAC,SAAS,aAAa,MAAM,CAAC,SAAS,EAAE;IACzF,OAAO,EAAE,gBAAgB;IACzB,WAAW,EAAE,kBAAkB;IAC/B,QAAQ,EAAE;QACR,qBAAqB,EAAE,qBAAqB;KAC7C;IACD,qBAAqB,EAAE;QACrB,GAAG,oBAAoB;QACvB,GAAG,EAAE,oCAAoC;QACzC,GAAG,EAAE,4BAA4B;QACjC,GAAG,EAAE,4BAA4B;QACjC,GAAG,EAAE,4BAA4B;KAClC;CACF,CAAC,CAAA"}
1
+ {"version":3,"file":"patch-update-segment.js","sourceRoot":"","sources":["../../../../src/api/contracts/content/patch-update-segment.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,4BAA4B,EAAE,MAAM,sBAAsB,CAAA;AACnE,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,CAAC,EAAE,MAAM,QAAQ,CAAA;AAC1B,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAA;AAC1E,OAAO,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAA;AAE3D,6CAA6C;AAC7C,oDAAoD;AACpD,6CAA6C;AAC7C,MAAM,kCAAkC,GAAG,CAAC,CAAC,MAAM,CAAC;IAClD,SAAS,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,QAAQ,CAAC,sBAAsB,CAAC;IACpD,SAAS,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,QAAQ,CAAC,uBAAuB,CAAC;CACtD,CAAC,CAAA;AAGF,MAAM,CAAC,MAAM,gCAAgC,GAAG,CAAC;KAC9C,MAAM,CAAC;IACN,KAAK,EAAE,CAAC;SACL,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CACP;QACE,wFAAwF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CAAC,MAAM,0BAA0B,GAAG,iBAAiB,CAAC;IAC1D,UAAU,EAAE,QAAQ;IACpB,MAAM,EAAE,OAAO;IACf,uBAAuB,EAAE,kCAAkC;IAC3D,iBAAiB,EAAE,gCAAgC;IACnD,YAAY,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,gBAAgB,MAAM,CAAC,SAAS,aAAa,MAAM,CAAC,SAAS,EAAE;IACzF,OAAO,EAAE,gBAAgB;IACzB,WAAW,EAAE;QACX,2FAA2F;QAC3F,0FAA0F;QAC1F,2EAA2E;KAC5E,CAAC,IAAI,CAAC,GAAG,CAAC;IACX,IAAI,EAAE,CAAC,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC;IACjC,QAAQ,EAAE;QACR,qBAAqB,EAAE,qBAAqB;KAC7C;IACD,qBAAqB,EAAE;QACrB,GAAG,oBAAoB;QACvB,GAAG,EAAE,oCAAoC;QACzC,GAAG,EAAE,4BAA4B;QACjC,GAAG,EAAE,4BAA4B;QACjC,GAAG,EAAE,4BAA4B;KAClC;CACF,CAAC,CAAA"}
@@ -73,7 +73,7 @@ export declare const postBulkUpdateSegmentsContract: Omit<{
73
73
  }, z.core.$strip>;
74
74
  readonly pathResolver: (params: {
75
75
  projectId: string;
76
- }) => string;
76
+ }) => `/v1/projects/${string}/segments/actions/bulk-update`;
77
77
  readonly summary: "Bulk update segments";
78
78
  readonly description: "Update all segments of a content unit for the given languages";
79
79
  readonly metadata: {
@@ -39,7 +39,7 @@ export declare const postGetCharacterUsageContract: Omit<{
39
39
  }, z.core.$strip>;
40
40
  readonly pathResolver: (params: {
41
41
  projectId: string;
42
- }) => string;
42
+ }) => `/v1/projects/${string}/content-units/actions/get-character-usage`;
43
43
  readonly summary: "Get character usage";
44
44
  readonly description: "Get character usage and limit per content unit and language";
45
45
  readonly metadata: {
@@ -90,7 +90,7 @@ export declare const postGetFilteredItemsContract: Omit<{
90
90
  }, z.core.$strip>;
91
91
  readonly pathResolver: (params: {
92
92
  projectId: string;
93
- }) => string;
93
+ }) => `/v1/projects/${string}/items/actions/get-filtered`;
94
94
  readonly summary: "Get filtered items";
95
95
  readonly description: "Get project items filtered by id, sent as a body so the list can exceed a query string";
96
96
  readonly metadata: {
@@ -20,7 +20,7 @@ export declare const bulkDeleteItemsContract: Omit<{
20
20
  }, z.core.$strip>;
21
21
  readonly pathResolver: (params: {
22
22
  projectId: string;
23
- }) => string;
23
+ }) => `/v1/projects/${string}/items/bulk-delete`;
24
24
  readonly summary: "Bulk delete items";
25
25
  readonly description: "Delete several items of a project, with all of their content, in one request";
26
26
  readonly metadata: {
@@ -131,7 +131,7 @@ export declare const getContentManagerEventsSubscribeContract: Omit<{
131
131
  }, z.core.$strip>;
132
132
  readonly pathResolver: (params: {
133
133
  projectId: string;
134
- }) => string;
134
+ }) => `/v1/projects/${string}/content-manager/actions/subscribe`;
135
135
  readonly summary: "Subscribe to project content manager events";
136
136
  readonly description: "Subscribe to live content manager updates for a project";
137
137
  readonly metadata: {
@@ -131,7 +131,7 @@ export declare const getContentManagerItemsSummaryContract: Omit<{
131
131
  }, z.core.$strip>;
132
132
  readonly pathResolver: (params: {
133
133
  projectId: string;
134
- }) => string;
134
+ }) => `/v1/projects/${string}/content-manager/items/summary`;
135
135
  readonly summary: "Get items summary";
136
136
  readonly description: "Get a lightweight summary of all items for the sidebar";
137
137
  readonly metadata: {
@@ -60,7 +60,7 @@ export declare const getContentManagerFilesContract: Omit<{
60
60
  }, z.core.$strip>;
61
61
  readonly pathResolver: (params: {
62
62
  projectId: string;
63
- }) => string;
63
+ }) => `/v1/projects/${string}/content-manager/files`;
64
64
  readonly summary: "Get files";
65
65
  readonly description: "Get content manager files";
66
66
  readonly metadata: {
@@ -36,7 +36,7 @@ export declare const getContentManagerImportDetailsContract: Omit<{
36
36
  }, z.core.$strip>;
37
37
  readonly pathResolver: (params: {
38
38
  projectId: string;
39
- }) => string;
39
+ }) => `/v1/projects/${string}/content-manager/import-details`;
40
40
  readonly summary: "Get import details";
41
41
  readonly description: "Get content manager import details";
42
42
  readonly metadata: {
@@ -21,7 +21,7 @@ export declare const getImportSettingsContract: Omit<{
21
21
  }, z.core.$strip>;
22
22
  readonly pathResolver: (params: {
23
23
  projectId: string;
24
- }) => string;
24
+ }) => `/v1/projects/${string}/content-manager/import-settings`;
25
25
  readonly summary: "Get import settings";
26
26
  readonly description: "Get content manager import settings for given project";
27
27
  readonly metadata: {
@@ -29,7 +29,7 @@ export declare const getContentManagerLanguagesSummaryContract: Omit<{
29
29
  }, z.core.$strip>;
30
30
  readonly pathResolver: (params: {
31
31
  projectId: string;
32
- }) => string;
32
+ }) => `/v1/projects/${string}/content-manager/languages/summary`;
33
33
  readonly summary: "Get languages summary";
34
34
  readonly description: "Get per-language counts of items that are ready to export";
35
35
  readonly metadata: {
@@ -48,7 +48,7 @@ export declare const getContentManagerLanguagesContract: Omit<{
48
48
  }, z.core.$strip>;
49
49
  readonly pathResolver: (params: {
50
50
  projectId: string;
51
- }) => string;
51
+ }) => `/v1/projects/${string}/content-manager/languages`;
52
52
  readonly summary: "Get languages";
53
53
  readonly description: "Get content manager language entries";
54
54
  readonly metadata: {
@@ -74,7 +74,7 @@ export declare const getTranslationRequestContract: Omit<{
74
74
  }, z.core.$strip>;
75
75
  readonly pathResolver: (params: {
76
76
  projectId: string;
77
- }) => string;
77
+ }) => `/v1/projects/${string}/content-manager/translation-request`;
78
78
  readonly summary: "Get translation request";
79
79
  readonly description: "Get translation requests by import request ID";
80
80
  readonly responsesByStatusCode: {
@@ -36,7 +36,7 @@ export declare const patchImportSettingsContract: Omit<{
36
36
  }, z.core.$strip>;
37
37
  readonly pathResolver: (params: {
38
38
  projectId: string;
39
- }) => string;
39
+ }) => `/v1/projects/${string}/content-manager/import-settings`;
40
40
  readonly summary: "Patch import settings";
41
41
  readonly description: "Patch content manager import settings for given project";
42
42
  readonly metadata: {
@@ -37,7 +37,7 @@ export declare const POST_CONTENT_MANAGER_IMPORT_FILES_CONTRACT: Omit<{
37
37
  }, z.core.$strip>;
38
38
  readonly pathResolver: (params: {
39
39
  projectId: string;
40
- }) => string;
40
+ }) => `/v1/projects/${string}/content-manager/actions/import-files`;
41
41
  readonly metadata: {
42
42
  allowedWorkspaceRoles: ("admin" | "biller" | "member" | "owner")[];
43
43
  };
@@ -26,7 +26,7 @@ export declare const postImportSettingsContract: Omit<{
26
26
  }, z.core.$strip>;
27
27
  readonly pathResolver: (params: {
28
28
  projectId: string;
29
- }) => string;
29
+ }) => `/v1/projects/${string}/content-manager/import-settings`;
30
30
  readonly summary: "Create import settings";
31
31
  readonly description: "Creates content manager import settings for given project";
32
32
  readonly metadata: {
@@ -85,7 +85,7 @@ export declare const createImportSettingsContract: Omit<{
85
85
  }, z.core.$strip>;
86
86
  readonly pathResolver: (params: {
87
87
  projectId: string;
88
- }) => string;
88
+ }) => `/v1/projects/${string}/content-manager/import-settings`;
89
89
  readonly summary: "Create import settings";
90
90
  readonly description: "Creates content manager import settings for given project";
91
91
  readonly metadata: {
@@ -35,7 +35,7 @@ export declare const postRequestImportContract: Omit<{
35
35
  readonly pathResolver: (params: {
36
36
  workspaceId: string;
37
37
  projectId: string;
38
- }) => string;
38
+ }) => `/v1/workspaces/${string}/projects/${string}/content-manager/actions/request-import`;
39
39
  readonly summary: "Request import";
40
40
  readonly description: "Trigger content manager import process for content-item-based project";
41
41
  readonly metadata: {
@@ -24,7 +24,7 @@ export declare const requestExportByItemIdsContract: Omit<{
24
24
  }, z.core.$strip>;
25
25
  readonly pathResolver: ({ projectId }: {
26
26
  projectId: string;
27
- }) => string;
27
+ }) => `/v1/projects/${string}/content-manager/actions/request-export-by-item-ids`;
28
28
  readonly requestBodySchema: z.ZodObject<{
29
29
  outputType: z.ZodEnum<{
30
30
  readonly CONTENT_TYPE_APP_ENGINE: 'CONTENT_TYPE_APP_ENGINE';
@@ -36,7 +36,7 @@ export declare const requestExportByItemNamesContract: Omit<{
36
36
  }, z.core.$strip>;
37
37
  readonly pathResolver: ({ projectId }: {
38
38
  projectId: string;
39
- }) => string;
39
+ }) => `/v1/projects/${string}/content-manager/actions/request-export-by-item-names`;
40
40
  readonly requestBodySchema: z.ZodObject<{
41
41
  outputType: z.ZodEnum<{
42
42
  readonly CONTENT_TYPE_APP_ENGINE: 'CONTENT_TYPE_APP_ENGINE';
@@ -10,7 +10,7 @@ export declare const deleteGlossaryTermContract: Omit<{
10
10
  readonly pathResolver: (params: {
11
11
  workspaceId: string;
12
12
  termId: string;
13
- }) => string;
13
+ }) => `/v1/workspaces/${string}/glossary/terms/${string}`;
14
14
  readonly requestPathParamsSchema: z.ZodObject<{
15
15
  workspaceId: z.ZodGUID;
16
16
  termId: z.ZodGUID;
@@ -10,7 +10,7 @@ export declare const deleteProjectTranslationMemorySettingsContract: Omit<{
10
10
  readonly pathResolver: (params: {
11
11
  workspaceId: string;
12
12
  projectId: string;
13
- }) => string;
13
+ }) => `/v1/workspaces/${string}/projects/${string}/translation-memory-settings`;
14
14
  readonly requestPathParamsSchema: z.ZodObject<{
15
15
  workspaceId: z.ZodGUID;
16
16
  projectId: z.ZodGUID;
@@ -10,7 +10,7 @@ export declare const deleteStyleGuideContract: Omit<{
10
10
  readonly pathResolver: (params: {
11
11
  workspaceId: string;
12
12
  styleGuideId: string;
13
- }) => string;
13
+ }) => `/v1/workspaces/${string}/style-guides/${string}`;
14
14
  readonly requestPathParamsSchema: z.ZodObject<{
15
15
  workspaceId: z.ZodGUID;
16
16
  styleGuideId: z.ZodGUID;
@@ -8,7 +8,7 @@ export declare const deleteWorkspaceGlossaryContract: Omit<{
8
8
  readonly method: "delete";
9
9
  readonly pathResolver: (params: {
10
10
  workspaceId: string;
11
- }) => string;
11
+ }) => `/v1/workspaces/${string}/glossary`;
12
12
  readonly requestPathParamsSchema: z.ZodObject<{
13
13
  workspaceId: z.ZodGUID;
14
14
  }, z.core.$strip>;
@@ -17,7 +17,7 @@ export declare const getGlossaryTermsRecommendationsContract: Omit<{
17
17
  readonly method: "get";
18
18
  readonly pathResolver: (params: {
19
19
  projectId: string;
20
- }) => string;
20
+ }) => `/v1/projects/${string}/glossary-terms-recommendations`;
21
21
  readonly requestPathParamsSchema: z.ZodObject<{
22
22
  projectId: z.ZodGUID;
23
23
  }, z.core.$strip>;
@@ -22,7 +22,7 @@ export declare const getProjectTranslationMemorySettingsContract: Omit<{
22
22
  readonly pathResolver: (params: {
23
23
  workspaceId: string;
24
24
  projectId: string;
25
- }) => string;
25
+ }) => `/v1/workspaces/${string}/projects/${string}/translation-memory-settings`;
26
26
  readonly requestPathParamsSchema: z.ZodObject<{
27
27
  workspaceId: z.ZodGUID;
28
28
  projectId: z.ZodGUID;
@@ -22,7 +22,7 @@ export declare const getRecentWorkspaceGlossaryApplicationContract: Omit<{
22
22
  readonly method: "get";
23
23
  readonly pathResolver: (params: {
24
24
  workspaceId: string;
25
- }) => string;
25
+ }) => `/v1/workspaces/${string}/glossary/applications/latest`;
26
26
  readonly requestPathParamsSchema: z.ZodObject<{
27
27
  workspaceId: z.ZodGUID;
28
28
  }, z.core.$strip>;
@@ -45,7 +45,7 @@ export declare const getStyleGuideForProjectContract: Omit<{
45
45
  readonly pathResolver: (params: {
46
46
  workspaceId: string;
47
47
  projectId: string;
48
- }) => string;
48
+ }) => `/v1/workspaces/${string}/projects/${string}/style-guide`;
49
49
  readonly requestPathParamsSchema: z.ZodObject<{
50
50
  workspaceId: z.ZodGUID;
51
51
  projectId: z.ZodGUID;
@@ -43,7 +43,7 @@ export declare const getStyleGuidesForWorkspaceContract: Omit<{
43
43
  readonly method: "get";
44
44
  readonly pathResolver: (params: {
45
45
  workspaceId: string;
46
- }) => string;
46
+ }) => `/v1/workspaces/${string}/style-guides`;
47
47
  readonly requestPathParamsSchema: z.ZodObject<{
48
48
  workspaceId: z.ZodGUID;
49
49
  }, z.core.$strip>;
@@ -85,7 +85,7 @@ export declare const getGlossaryTermsContract: Omit<{
85
85
  }, z.core.$strip>;
86
86
  readonly pathResolver: (params: {
87
87
  workspaceId: string;
88
- }) => string;
88
+ }) => `/v1/workspaces/${string}/glossary/terms`;
89
89
  readonly summary: "Get workspace glossary terms";
90
90
  readonly metadata: {
91
91
  allowedWorkspaceRoles: ("admin" | "biller" | "member" | "owner")[];
@@ -29,7 +29,7 @@ export declare const getWorkspaceGlossaryContract: Omit<{
29
29
  }, z.core.$strip>;
30
30
  readonly pathResolver: (params: {
31
31
  workspaceId: string;
32
- }) => string;
32
+ }) => `/v1/workspaces/${string}/glossary`;
33
33
  readonly summary: "Get workspace glossary";
34
34
  readonly metadata: {
35
35
  allowedWorkspaceRoles: ("admin" | "biller" | "member" | "owner")[];
@@ -22,7 +22,7 @@ export declare const getWorkspaceTranslationMemoriesContract: Omit<{
22
22
  readonly method: "get";
23
23
  readonly pathResolver: (params: {
24
24
  workspaceId: string;
25
- }) => string;
25
+ }) => `/v1/workspaces/${string}/translation-memories`;
26
26
  readonly requestPathParamsSchema: z.ZodObject<{
27
27
  workspaceId: z.ZodGUID;
28
28
  }, z.core.$strip>;
@@ -22,7 +22,7 @@ export declare const postApplyWorkspaceGlossaryContract: Omit<{
22
22
  readonly method: "post";
23
23
  readonly pathResolver: (params: {
24
24
  workspaceId: string;
25
- }) => string;
25
+ }) => `/v1/workspaces/${string}/glossary/applications`;
26
26
  readonly requestPathParamsSchema: z.ZodObject<{
27
27
  workspaceId: z.ZodGUID;
28
28
  }, z.core.$strip>;
@@ -53,7 +53,7 @@ export declare const postCreateGlossaryTermContract: Omit<{
53
53
  readonly method: "post";
54
54
  readonly pathResolver: (params: {
55
55
  workspaceId: string;
56
- }) => string;
56
+ }) => `/v1/workspaces/${string}/glossary/terms`;
57
57
  readonly requestPathParamsSchema: z.ZodObject<{
58
58
  workspaceId: z.ZodGUID;
59
59
  }, z.core.$strip>;
@@ -71,7 +71,7 @@ export declare const postCreateStyleGuideContract: Omit<{
71
71
  readonly method: "post";
72
72
  readonly pathResolver: (params: {
73
73
  workspaceId: string;
74
- }) => string;
74
+ }) => `/v1/workspaces/${string}/style-guides`;
75
75
  readonly requestPathParamsSchema: z.ZodObject<{
76
76
  workspaceId: z.ZodGUID;
77
77
  }, z.core.$strip>;
@@ -30,7 +30,7 @@ export declare const postCreateWorkspaceGlossaryContract: Omit<{
30
30
  readonly method: "post";
31
31
  readonly pathResolver: (params: {
32
32
  workspaceId: string;
33
- }) => string;
33
+ }) => `/v1/workspaces/${string}/glossary`;
34
34
  readonly requestPathParamsSchema: z.ZodObject<{
35
35
  workspaceId: z.ZodGUID;
36
36
  }, z.core.$strip>;