@scalar/workspace-store 0.32.1 → 0.34.1

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 (83) hide show
  1. package/CHANGELOG.md +83 -0
  2. package/dist/entities/auth/schema.d.ts +10 -0
  3. package/dist/entities/auth/schema.d.ts.map +1 -1
  4. package/dist/events/definitions/operation.d.ts +14 -0
  5. package/dist/events/definitions/operation.d.ts.map +1 -1
  6. package/dist/events/definitions/tag.d.ts +12 -6
  7. package/dist/events/definitions/tag.d.ts.map +1 -1
  8. package/dist/events/definitions/ui.d.ts +21 -8
  9. package/dist/events/definitions/ui.d.ts.map +1 -1
  10. package/dist/events/definitions/workspace.d.ts +4 -0
  11. package/dist/events/definitions/workspace.d.ts.map +1 -1
  12. package/dist/mutators/index.d.ts +4 -0
  13. package/dist/mutators/index.d.ts.map +1 -1
  14. package/dist/mutators/operation/index.d.ts +1 -0
  15. package/dist/mutators/operation/index.d.ts.map +1 -1
  16. package/dist/mutators/operation/index.js +3 -1
  17. package/dist/mutators/operation/index.js.map +2 -2
  18. package/dist/mutators/operation/operation.d.ts +9 -1
  19. package/dist/mutators/operation/operation.d.ts.map +1 -1
  20. package/dist/mutators/operation/operation.js +31 -36
  21. package/dist/mutators/operation/operation.js.map +2 -2
  22. package/dist/mutators/operation/parameters.d.ts.map +1 -1
  23. package/dist/mutators/operation/parameters.js +7 -8
  24. package/dist/mutators/operation/parameters.js.map +2 -2
  25. package/dist/mutators/server.d.ts.map +1 -1
  26. package/dist/mutators/server.js +5 -1
  27. package/dist/mutators/server.js.map +2 -2
  28. package/dist/mutators/tag.d.ts +8 -0
  29. package/dist/mutators/tag.d.ts.map +1 -1
  30. package/dist/mutators/tag.js +55 -12
  31. package/dist/mutators/tag.js.map +2 -2
  32. package/dist/navigation/helpers/get-tag-entries.d.ts +22 -0
  33. package/dist/navigation/helpers/get-tag-entries.d.ts.map +1 -0
  34. package/dist/navigation/helpers/get-tag-entries.js +30 -0
  35. package/dist/navigation/helpers/get-tag-entries.js.map +7 -0
  36. package/dist/navigation/helpers/traverse-examples.d.ts.map +1 -1
  37. package/dist/navigation/helpers/traverse-examples.js +1 -1
  38. package/dist/navigation/helpers/traverse-examples.js.map +2 -2
  39. package/dist/navigation/helpers/update-order-ids.d.ts +29 -0
  40. package/dist/navigation/helpers/update-order-ids.d.ts.map +1 -0
  41. package/dist/navigation/helpers/update-order-ids.js +54 -0
  42. package/dist/navigation/helpers/update-order-ids.js.map +7 -0
  43. package/dist/navigation/index.d.ts +1 -0
  44. package/dist/navigation/index.d.ts.map +1 -1
  45. package/dist/navigation/index.js +3 -1
  46. package/dist/navigation/index.js.map +2 -2
  47. package/dist/persistence/index.d.ts +16 -0
  48. package/dist/persistence/index.d.ts.map +1 -1
  49. package/dist/persistence/index.js +17 -1
  50. package/dist/persistence/index.js.map +2 -2
  51. package/dist/persistence/indexdb.d.ts.map +1 -1
  52. package/dist/persistence/indexdb.js +1 -2
  53. package/dist/persistence/indexdb.js.map +2 -2
  54. package/dist/schemas/extensions/operation/x-draft-examples.d.ts +7 -0
  55. package/dist/schemas/extensions/operation/x-draft-examples.d.ts.map +1 -0
  56. package/dist/schemas/extensions/operation/x-draft-examples.js +8 -0
  57. package/dist/schemas/extensions/operation/x-draft-examples.js.map +7 -0
  58. package/dist/schemas/extensions/tag/index.d.ts +2 -0
  59. package/dist/schemas/extensions/tag/index.d.ts.map +1 -0
  60. package/dist/schemas/extensions/tag/index.js +1 -0
  61. package/dist/schemas/extensions/tag/index.js.map +7 -0
  62. package/dist/schemas/extensions/tag/x-tag-groups.d.ts +1 -2
  63. package/dist/schemas/extensions/tag/x-tag-groups.d.ts.map +1 -1
  64. package/dist/schemas/extensions/tag/x-tag-groups.js.map +1 -1
  65. package/dist/schemas/inmemory-workspace.d.ts +41 -4
  66. package/dist/schemas/inmemory-workspace.d.ts.map +1 -1
  67. package/dist/schemas/inmemory-workspace.js +3 -1
  68. package/dist/schemas/inmemory-workspace.js.map +2 -2
  69. package/dist/schemas/reference-config/index.d.ts +2 -0
  70. package/dist/schemas/reference-config/index.d.ts.map +1 -1
  71. package/dist/schemas/reference-config/settings.d.ts +2 -0
  72. package/dist/schemas/reference-config/settings.d.ts.map +1 -1
  73. package/dist/schemas/v3.1/strict/openapi-document.d.ts +70 -0
  74. package/dist/schemas/v3.1/strict/openapi-document.d.ts.map +1 -1
  75. package/dist/schemas/v3.1/strict/operation.d.ts +4 -1
  76. package/dist/schemas/v3.1/strict/operation.d.ts.map +1 -1
  77. package/dist/schemas/v3.1/strict/operation.js +3 -1
  78. package/dist/schemas/v3.1/strict/operation.js.map +2 -2
  79. package/dist/schemas/workspace.d.ts +61 -5645
  80. package/dist/schemas/workspace.d.ts.map +1 -1
  81. package/dist/schemas/workspace.js +4 -16
  82. package/dist/schemas/workspace.js.map +2 -2
  83. package/package.json +11 -6
package/CHANGELOG.md CHANGED
@@ -1,5 +1,88 @@
1
1
  # @scalar/workspace-store
2
2
 
3
+ ## 0.34.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#8212](https://github.com/scalar/scalar/pull/8212): chore: version bump
8
+
9
+ #### Updated Dependencies
10
+
11
+ - **@scalar/helpers@0.2.15**
12
+ - [#8212](https://github.com/scalar/scalar/pull/8212): chore: version bump
13
+
14
+ - **@scalar/json-magic@0.11.4**
15
+ - [#8212](https://github.com/scalar/scalar/pull/8212): chore: version bump
16
+
17
+ - **@scalar/types@0.6.6**
18
+ - [#8212](https://github.com/scalar/scalar/pull/8212): chore: version bump
19
+
20
+ - **@scalar/object-utils@1.2.29**
21
+
22
+ - **@scalar/openapi-upgrader@0.1.8**
23
+
24
+ - **@scalar/snippetz@0.6.15**
25
+
26
+ ## 0.34.0
27
+
28
+ ### Minor Changes
29
+
30
+ - [#8198](https://github.com/scalar/scalar/pull/8198): feat: handle workspace rename
31
+
32
+ ### Patch Changes
33
+
34
+ - [#8208](https://github.com/scalar/scalar/pull/8208): fix: unpack proxy before assigning
35
+ - [#8207](https://github.com/scalar/scalar/pull/8207): chore: version bump
36
+
37
+ #### Updated Dependencies
38
+
39
+ - **@scalar/helpers@0.2.14**
40
+ - [#8207](https://github.com/scalar/scalar/pull/8207): chore: version bump
41
+
42
+ - **@scalar/json-magic@0.11.3**
43
+ - [#8207](https://github.com/scalar/scalar/pull/8207): chore: version bump
44
+
45
+ - **@scalar/types@0.6.5**
46
+ - [#8207](https://github.com/scalar/scalar/pull/8207): chore: version bump
47
+
48
+ - **@scalar/object-utils@1.2.28**
49
+
50
+ - **@scalar/openapi-upgrader@0.1.8**
51
+
52
+ - **@scalar/snippetz@0.6.14**
53
+
54
+ ## 0.33.0
55
+
56
+ ### Minor Changes
57
+
58
+ - [#8199](https://github.com/scalar/scalar/pull/8199): feat: create draft example
59
+
60
+ ### Patch Changes
61
+
62
+ - [#8162](https://github.com/scalar/scalar/pull/8162): feat: allow editing tags
63
+ - [#8151](https://github.com/scalar/scalar/pull/8151): fix: resolve external references on windows
64
+ - [#8191](https://github.com/scalar/scalar/pull/8191): chore: rename create document command
65
+ - [#7826](https://github.com/scalar/scalar/pull/7826): feat: added migrator for v1 local storage to v2 indexdb
66
+ - [#8160](https://github.com/scalar/scalar/pull/8160): fix: update sidebar entry when the operation summary changes
67
+ - [#8133](https://github.com/scalar/scalar/pull/8133): fix: allow editing content-type query parameters in the API client
68
+
69
+ #### Updated Dependencies
70
+
71
+ - **@scalar/json-magic@0.11.2**
72
+ - [#8151](https://github.com/scalar/scalar/pull/8151): fix: resolve external references on windows
73
+
74
+ - **@scalar/helpers@0.2.13**
75
+ - [#7826](https://github.com/scalar/scalar/pull/7826): feat: added migrator for v1 local storage to v2 indexdb
76
+
77
+ - **@scalar/types@0.6.4**
78
+ - [#8174](https://github.com/scalar/scalar/pull/8174): feat: add `createAnySecurityScheme` config option to control generic auth scheme creation
79
+
80
+ - **@scalar/object-utils@1.2.27**
81
+
82
+ - **@scalar/openapi-upgrader@0.1.8**
83
+
84
+ - **@scalar/snippetz@0.6.13**
85
+
3
86
  ## 0.32.1
4
87
 
5
88
  ### Patch Changes
@@ -798,6 +798,8 @@ declare const SelectedSecuritySchema: import("@scalar/typebox").TObject<{
798
798
  }>>;
799
799
  }>, import("@scalar/typebox").TObject<{
800
800
  'x-post-response': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
801
+ }>, import("@scalar/typebox").TObject<{
802
+ 'x-draft-examples': import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TString>>;
801
803
  }>]>;
802
804
  SchemaObject: import("@scalar/typebox").TUnion<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
803
805
  __scalar_: import("@scalar/typebox").TString;
@@ -2348,6 +2350,8 @@ export declare const AuthSchema: import("@scalar/typebox").TObject<{
2348
2350
  }>>;
2349
2351
  }>, import("@scalar/typebox").TObject<{
2350
2352
  'x-post-response': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
2353
+ }>, import("@scalar/typebox").TObject<{
2354
+ 'x-draft-examples': import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TString>>;
2351
2355
  }>]>;
2352
2356
  SchemaObject: import("@scalar/typebox").TUnion<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
2353
2357
  __scalar_: import("@scalar/typebox").TString;
@@ -3747,6 +3751,8 @@ export declare const AuthSchema: import("@scalar/typebox").TObject<{
3747
3751
  }>>;
3748
3752
  }>, import("@scalar/typebox").TObject<{
3749
3753
  'x-post-response': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
3754
+ }>, import("@scalar/typebox").TObject<{
3755
+ 'x-draft-examples': import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TString>>;
3750
3756
  }>]>;
3751
3757
  SchemaObject: import("@scalar/typebox").TUnion<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
3752
3758
  __scalar_: import("@scalar/typebox").TString;
@@ -5299,6 +5305,8 @@ export declare const DocumentAuthSchema: import("@scalar/typebox").TRecord<impor
5299
5305
  }>>;
5300
5306
  }>, import("@scalar/typebox").TObject<{
5301
5307
  'x-post-response': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
5308
+ }>, import("@scalar/typebox").TObject<{
5309
+ 'x-draft-examples': import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TString>>;
5302
5310
  }>]>;
5303
5311
  SchemaObject: import("@scalar/typebox").TUnion<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
5304
5312
  __scalar_: import("@scalar/typebox").TString;
@@ -6698,6 +6706,8 @@ export declare const DocumentAuthSchema: import("@scalar/typebox").TRecord<impor
6698
6706
  }>>;
6699
6707
  }>, import("@scalar/typebox").TObject<{
6700
6708
  'x-post-response': import("@scalar/typebox").TOptional<import("@scalar/typebox").TString>;
6709
+ }>, import("@scalar/typebox").TObject<{
6710
+ 'x-draft-examples': import("@scalar/typebox").TOptional<import("@scalar/typebox").TArray<import("@scalar/typebox").TString>>;
6701
6711
  }>]>;
6702
6712
  SchemaObject: import("@scalar/typebox").TUnion<[import("@scalar/typebox").TIntersect<[import("@scalar/typebox").TObject<{
6703
6713
  __scalar_: import("@scalar/typebox").TString;
@@ -1 +1 @@
1
- {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../src/entities/auth/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,MAAM,EAAQ,MAAM,iBAAiB,CAAA;AAmBnD,QAAA,MAAM,mBAAmB;;;;IAKxB,CAAA;AAED,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC,OAAO,mBAAmB,CAAC,CAAA;AAE9D,QAAA,MAAM,iBAAiB;;;;;;;IAMtB,CAAA;AAED,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC,OAAO,iBAAiB,CAAC,CAAA;AAI1D,QAAA,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqB3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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAyC,CAAA;AACxE,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,CAAA"}
@@ -95,6 +95,20 @@ export type OperationEvents = {
95
95
  /** Identifies the target operation by original method and path */
96
96
  meta: OperationMeta;
97
97
  };
98
+ /**
99
+ * Create a new draft example for the operation.
100
+ * Triggers when the user creates a new draft example for an operation in the UI.
101
+ *
102
+ * This is going to be a "fake" example from openapi prespective since it does not exist in the document yet.
103
+ */
104
+ 'operation:create:draft-example': {
105
+ /** The document name where the operation should be created */
106
+ documentName: string;
107
+ /** Identifies the target operation by original method and path */
108
+ meta: OperationMeta;
109
+ /** The draft example name */
110
+ exampleName: string;
111
+ };
98
112
  /**
99
113
  * Delete an example from the operation
100
114
  */
@@ -1 +1 @@
1
- {"version":3,"file":"operation.d.ts","sourceRoot":"","sources":["../../../src/events/definitions/operation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAA;AAEnE,OAAO,KAAK,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,wCAAwC,CAAA;AAE9F;;;;;;;;GAQG;AACH,MAAM,MAAM,aAAa,GAAG;IAC1B,MAAM,EAAE,UAAU,CAAA;IAClB,IAAI,EAAE,MAAM,CAAA;CACb,CAAA;AAED;;;;;;;;;;;;GAYG;AACH,MAAM,MAAM,oBAAoB,GAAG,aAAa,GAAG;IACjD,UAAU,EAAE,MAAM,CAAA;CACnB,CAAA;AAED,0CAA0C;AAC1C,MAAM,MAAM,eAAe,GAAG;IAK5B;;;OAGG;IACH,+BAA+B,EAAE,SAAS,CAAA;IAE1C,qCAAqC;IACrC,0BAA0B,EAAE,SAAS,CAAA;IAMrC;;;OAGG;IACH,4BAA4B,EAAE;QAC5B,8DAA8D;QAC9D,YAAY,EAAE,MAAM,CAAA;QACpB,4CAA4C;QAC5C,UAAU,CAAC,EAAE,MAAM,CAAA;QACnB,0EAA0E;QAC1E,IAAI,EAAE,MAAM,CAAA;QACZ,wCAAwC;QACxC,MAAM,EAAE,UAAU,CAAA;QAClB,qCAAqC;QACrC,SAAS,EAAE,eAAe,CAAA;QAC1B,yDAAyD;QACzD,QAAQ,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAA;KACtC,CAAA;IAED;;;;OAIG;IACH,0BAA0B,EAAE;QAC1B,uDAAuD;QACvD,OAAO,EAAE;YACP,OAAO,EAAE,MAA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MAAM,GAAG,IAAI,GAAG,SAAS,CAAA;QAClC,2CAA2C;QAC3C,WAAW,EAAE,MAAM,CAAA;QACnB,6FAA6F;QAC7F,IAAI,EAAE,oBAAoB,CAAA;KAC3B,CAAA;IAED;;;;OAIG;IACH,wCAAwC,EAAE;QACxC,iDAAiD;QACjD,OAAO,EAAE;YAAE,IAAI,EAAE,MAAM,CAAC;YAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;YAAC,UAAU,EAAE,OAAO,CAAA;SAAE,EAAE,CAAA;QACtE,2CAA2C;QAC3C,WAAW,EAAE,MAAM,CAAA;QACnB,6FAA6F;QAC7F,IAAI,EAAE,oBAAoB,CAAA;KAC3B,CAAA;IACD;;OAEG;IACH,0BAA0B,EAAE;QAC1B,6DAA6D;QAC7D,IAAI,EAAE,aAAa,CAAA;QACnB,8CAA8C;QAC9C,KAAK,EAAE,MAAM,CAAA;QACb,wDAAwD;QACxD,QAAQ,EAAE,CAAC,MAAM,EAAE,SAAS,GAAG,OAAO,KAAK,IAAI,CAAA;KAChD,CAAA;CACF,CAAA"}
@@ -1,17 +1,23 @@
1
+ import type { TraversedTag } from '../../schemas/navigation.js';
1
2
  /** Event definitions for all things tag related */
2
3
  export type TagEvents = {
3
- /**
4
- * Create a tag
5
- */
4
+ /** Create a tag */
6
5
  'tag:create:tag': {
7
6
  /** The name of the tag to create */
8
7
  name: string;
9
8
  /** The name of the document to add the tag to */
10
9
  documentName: string;
11
10
  };
12
- /**
13
- * Delete a tag from the workspace
14
- */
11
+ /** Edit a tag */
12
+ 'tag:edit:tag': {
13
+ /** The document to edit the tag in */
14
+ documentName: string;
15
+ /** The tag to edit */
16
+ tag: TraversedTag;
17
+ /** The new name of the tag */
18
+ newName: string;
19
+ };
20
+ /** Delete a tag from the document */
15
21
  'tag:delete:tag': {
16
22
  /** The document to delete the tag from */
17
23
  documentName: string;
@@ -1 +1 @@
1
- {"version":3,"file":"tag.d.ts","sourceRoot":"","sources":["../../../src/events/definitions/tag.ts"],"names":[],"mappings":"AAAA,mDAAmD;AACnD,MAAM,MAAM,SAAS,GAAG;IACtB;;OAEG;IACH,gBAAgB,EAAE;QAChB,oCAAoC;QACpC,IAAI,EAAE,MAAM,CAAA;QACZ,iDAAiD;QACjD,YAAY,EAAE,MAAM,CAAA;KACrB,CAAA;IACD;;OAEG;IACH,gBAAgB,EAAE;QAChB,0CAA0C;QAC1C,YAAY,EAAE,MAAM,CAAA;QACpB,oCAAoC;QACpC,IAAI,EAAE,MAAM,CAAA;KACb,CAAA;CACF,CAAA"}
1
+ {"version":3,"file":"tag.d.ts","sourceRoot":"","sources":["../../../src/events/definitions/tag.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAExD,mDAAmD;AACnD,MAAM,MAAM,SAAS,GAAG;IACtB,mBAAmB;IACnB,gBAAgB,EAAE;QAChB,oCAAoC;QACpC,IAAI,EAAE,MAAM,CAAA;QACZ,iDAAiD;QACjD,YAAY,EAAE,MAAM,CAAA;KACrB,CAAA;IAED,iBAAiB;IACjB,cAAc,EAAE;QACd,sCAAsC;QACtC,YAAY,EAAE,MAAM,CAAA;QACpB,sBAAsB;QACtB,GAAG,EAAE,YAAY,CAAA;QACjB,8BAA8B;QAC9B,OAAO,EAAE,MAAM,CAAA;KAChB,CAAA;IAED,qCAAqC;IACrC,gBAAgB,EAAE;QAChB,0CAA0C;QAC1C,YAAY,EAAE,MAAM,CAAA;QACpB,oCAAoC;QACpC,IAAI,EAAE,MAAM,CAAA;KACb,CAAA;CACF,CAAA"}
@@ -1,4 +1,5 @@
1
1
  import type { HttpMethod } from '@scalar/helpers/http/http-methods';
2
+ import type { TraversedTag } from '../../schemas/navigation.js';
2
3
  /**
3
4
  * Available actions that can be triggered from the command palette.
4
5
  * Each action may have an associated payload type.
@@ -7,23 +8,30 @@ export type CommandPalettePayload = {
7
8
  /** Trigger the import flow for OpenAPI, Swagger, Postman, or cURL */
8
9
  'import-from-openapi-swagger-postman-curl': undefined;
9
10
  /** Create a new document in the workspace */
10
- 'create-document': undefined;
11
+ 'create-openapi-document': undefined;
11
12
  /** Add a new tag to organize requests */
12
13
  'add-tag': {
13
- /** The document id to add the tag to */
14
- documentId?: string;
14
+ /** The name of the document to add the tag to */
15
+ documentName?: string;
16
+ };
17
+ /** Edit an existing tag name */
18
+ 'edit-tag': {
19
+ /** The current name of the tag to pre-fill in the input */
20
+ tag: TraversedTag;
21
+ /** The name of the document the tag belongs to */
22
+ documentName: string;
15
23
  };
16
24
  /** Create a new HTTP request */
17
25
  'create-request': {
18
- /** The document id to create the request in */
19
- documentId?: string;
26
+ /** The name of the document to create the request in */
27
+ documentName?: string;
20
28
  /** The tag id to add the request to (optional) */
21
29
  tagId?: string;
22
30
  };
23
31
  /** Add a new example to an existing request */
24
32
  'add-example': {
25
- /** The document id to add the example to */
26
- documentId?: string;
33
+ /** The name of the document to add the example to */
34
+ documentName?: string;
27
35
  /** The operation id to add the example to */
28
36
  operationId?: string;
29
37
  };
@@ -38,7 +46,7 @@ export type CommandPalettePayload = {
38
46
  * This ensures that when an action is dispatched, it must include the correct payload type.
39
47
  *
40
48
  * Example:
41
- * - { action: 'create-document', payload: undefined }
49
+ * - { action: 'create-openapi-document', payload: undefined }
42
50
  * - { action: 'import-curl-command', payload: { curl: 'curl ...' } }
43
51
  */
44
52
  export type CommandPaletteAction<K extends keyof CommandPalettePayload = keyof CommandPalettePayload> = {
@@ -172,8 +180,13 @@ export type UIEvents = {
172
180
  * It can be a document page, a workspace page, or an example page
173
181
  */
174
182
  'ui:navigate': {
183
+ /** If true, the navigation will replace the current route instead of pushing a new one */
184
+ replace?: boolean;
185
+ /** The namespace of the workspace to navigate to */
175
186
  namespace?: string;
187
+ /** The slug of the workspace to navigate to */
176
188
  workspaceSlug?: string;
189
+ /** The callback to call when the navigation is complete */
177
190
  callback?: (status: 'success' | 'error') => void;
178
191
  } & ({
179
192
  page: 'document';
@@ -1 +1 @@
1
- {"version":3,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QAChB,IAAI,EAAE,UAAU,GAAG,SAAS,GAAG,aAAa,GAAG,gBAAgB,GAAG,SAAS,GAAG,UAAU,CAAA;QACxF,YAAY,CAAC,EAAE,MAAM,CAAA;KACtB,GACD;QACE,IAAI,EAAE,WAAW,CAAA;QACjB,IAAI,EAAE,aAAa,GAAG,SAAS,GAAG,UAAU,CAAA;KAC7C,GACD;QACE,IAAI,EAAE,SAAS,CAAA;QACf,YAAY,CAAC,EAAE,MAAM,CAAA;QACrB,IAAI,EAAE,MAAM,CAAA;QACZ,MAAM,EAAE,UAAU,CAAA;QAClB,WAAW,EAAE,MAAM,CAAA;KACpB,CACJ,CAAA;CACF,CAAA"}
@@ -22,5 +22,9 @@ export type WorkspaceEvents = {
22
22
  * Update the active environment on the workspace
23
23
  */
24
24
  'workspace:update:active-environment': string | null;
25
+ /**
26
+ * Update the dispaly name of the workspace
27
+ */
28
+ 'workspace:update:name': string;
25
29
  };
26
30
  //# sourceMappingURL=workspace.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"workspace.d.ts","sourceRoot":"","sources":["../../../src/events/definitions/workspace.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAA;AAE7D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAA;AAEpD,iDAAiD;AACjD,MAAM,MAAM,eAAe,GAAG;IAC5B;;OAEG;IACH,+BAA+B,EAAE,MAAM,GAAG,IAAI,CAAA;IAC9C;;OAEG;IACH,6BAA6B,EAAE,SAAS,CAAA;IACxC;;OAEG;IACH,wBAAwB,EAAE,MAAM,GAAG,SAAS,CAAA;IAC5C;;OAEG;IACH,kCAAkC,EAAE,eAAe,CAAA;IACnD;;OAEG;IACH,qCAAqC,EAAE,MAAM,GAAG,IAAI,CAAA;CACrD,CAAA"}
1
+ {"version":3,"file":"workspace.d.ts","sourceRoot":"","sources":["../../../src/events/definitions/workspace.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAA;AAE7D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAA;AAEpD,iDAAiD;AACjD,MAAM,MAAM,eAAe,GAAG;IAC5B;;OAEG;IACH,+BAA+B,EAAE,MAAM,GAAG,IAAI,CAAA;IAC9C;;OAEG;IACH,6BAA6B,EAAE,SAAS,CAAA;IACxC;;OAEG;IACH,wBAAwB,EAAE,MAAM,GAAG,SAAS,CAAA;IAC5C;;OAEG;IACH,kCAAkC,EAAE,eAAe,CAAA;IACnD;;OAEG;IACH,qCAAqC,EAAE,MAAM,GAAG,IAAI,CAAA;IACpD;;OAEG;IACH,uBAAuB,EAAE,MAAM,CAAA;CAChC,CAAA"}
@@ -94,6 +94,7 @@ export declare function generateClientMutators(store: WorkspaceStore | null): {
94
94
  updateOperationSummary: (payload: import("../events/index.js").OperationEvents["operation:update:summary"]) => void;
95
95
  updateOperationPathMethod: (payload: import("../events/index.js").OperationEvents["operation:update:pathMethod"]) => void;
96
96
  deleteOperation: (payload: import("../events/index.js").OperationEvents["operation:delete:operation"]) => void;
97
+ createOperationDraftExample: (payload: import("../events/index.js").OperationEvents["operation:create:draft-example"]) => void;
97
98
  deleteOperationExample: (payload: import("../events/index.js").OperationEvents["operation:delete:example"]) => void;
98
99
  updateOperationExtension: (payload: import("../events/index.js").OperationEvents["operation:update:extension"]) => void;
99
100
  updateOperationExtraParameters: (payload: import("../events/index.js").OperationEvents["operation:update:extra-parameters"]) => void;
@@ -115,6 +116,7 @@ export declare function generateClientMutators(store: WorkspaceStore | null): {
115
116
  };
116
117
  tag: {
117
118
  createTag: (payload: import("../events/definitions/tag.js").TagEvents["tag:create:tag"]) => void;
119
+ editTag: (payload: import("../events/definitions/tag.js").TagEvents["tag:edit:tag"]) => void;
118
120
  deleteTag: (payload: import("../events/definitions/tag.js").TagEvents["tag:delete:tag"]) => void;
119
121
  };
120
122
  environment: {
@@ -175,6 +177,7 @@ export declare function generateClientMutators(store: WorkspaceStore | null): {
175
177
  updateOperationSummary: (payload: import("../events/index.js").OperationEvents["operation:update:summary"]) => void;
176
178
  updateOperationPathMethod: (payload: import("../events/index.js").OperationEvents["operation:update:pathMethod"]) => void;
177
179
  deleteOperation: (payload: import("../events/index.js").OperationEvents["operation:delete:operation"]) => void;
180
+ createOperationDraftExample: (payload: import("../events/index.js").OperationEvents["operation:create:draft-example"]) => void;
178
181
  deleteOperationExample: (payload: import("../events/index.js").OperationEvents["operation:delete:example"]) => void;
179
182
  updateOperationExtension: (payload: import("../events/index.js").OperationEvents["operation:update:extension"]) => void;
180
183
  updateOperationExtraParameters: (payload: import("../events/index.js").OperationEvents["operation:update:extra-parameters"]) => void;
@@ -196,6 +199,7 @@ export declare function generateClientMutators(store: WorkspaceStore | null): {
196
199
  };
197
200
  tag: {
198
201
  createTag: (payload: import("../events/definitions/tag.js").TagEvents["tag:create:tag"]) => void;
202
+ editTag: (payload: import("../events/definitions/tag.js").TagEvents["tag:edit:tag"]) => void;
199
203
  deleteTag: (payload: import("../events/definitions/tag.js").TagEvents["tag:delete:tag"]) => void;
200
204
  };
201
205
  environment: {
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/mutators/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAA;AAa9C;;;;;GAKG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,cAAc,GAAG,IAAI;IAqC/D;;OAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAEH;;;OAGG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAEH;;;;OAIG;gBACS,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAErB"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/mutators/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAA;AAa9C;;;;;GAKG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,cAAc,GAAG,IAAI;IAqC/D;;OAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAEH;;;OAGG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAEH;;;;OAIG;gBACS,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAErB"}
@@ -10,6 +10,7 @@ export declare const operationMutatorsFactory: ({ document, store, }: {
10
10
  updateOperationSummary: (payload: OperationEvents["operation:update:summary"]) => void;
11
11
  updateOperationPathMethod: (payload: OperationEvents["operation:update:pathMethod"]) => void;
12
12
  deleteOperation: (payload: OperationEvents["operation:delete:operation"]) => void;
13
+ createOperationDraftExample: (payload: OperationEvents["operation:create:draft-example"]) => void;
13
14
  deleteOperationExample: (payload: OperationEvents["operation:delete:example"]) => void;
14
15
  updateOperationExtension: (payload: OperationEvents["operation:update:extension"]) => void;
15
16
  updateOperationExtraParameters: (payload: OperationEvents["operation:update:extra-parameters"]) => void;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/mutators/operation/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAA;AAC9C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AAC7D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAA;AAqBrE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAA;AAElD,e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AC;2CACjC,eAAe,CAAC,gCAAgC,CAAC;sCAEtD,eAAe,CAAC,0BAA0B,CAAC;wCAEzC,eAAe,CAAC,4BAA4B,CAAC;8CAEvC,eAAe,CAAC,mCAAmC,CAAC;wCAE1D,eAAe,CAAC,4BAA4B,CAAC;wCAE7C,eAAe,CAAC,4BAA4B,CAAC;4CAEzC,eAAe,CAAC,iCAAiC,CAAC;qDAEzC,eAAe,CAAC,0CAA0C,CAAC;iDAE/D,eAAe,CAAC,oCAAoC,CAAC;mDAEnD,eAAe,CAAC,wCAAwC,CAAC;oCAExE,WAAW,CAAC,2BAA2B,CAAC;sCAEtC,eAAe,CAAC,0BAA0B,CAAC;CAGhF,CAAA"}
@@ -7,6 +7,7 @@ import { updateOperationExtension } from "../../mutators/operation/extensions.js
7
7
  import { addResponseToHistory, reloadOperationHistory } from "../../mutators/operation/history.js";
8
8
  import {
9
9
  createOperation,
10
+ createOperationDraftExample,
10
11
  deleteOperation,
11
12
  deleteOperationExample,
12
13
  updateOperationPathMethod,
@@ -24,9 +25,10 @@ const operationMutatorsFactory = ({
24
25
  }) => {
25
26
  return {
26
27
  createOperation: (payload) => createOperation(store, payload),
27
- updateOperationSummary: (payload) => updateOperationSummary(document, payload),
28
+ updateOperationSummary: (payload) => updateOperationSummary(store, document, payload),
28
29
  updateOperationPathMethod: (payload) => updateOperationPathMethod(document, store, payload),
29
30
  deleteOperation: (payload) => deleteOperation(store, payload),
31
+ createOperationDraftExample: (payload) => createOperationDraftExample(store, payload),
30
32
  deleteOperationExample: (payload) => deleteOperationExample(store, payload),
31
33
  updateOperationExtension: (payload) => updateOperationExtension(document, payload),
32
34
  updateOperationExtraParameters: (payload) => updateOperationExtraParameters(document, payload),
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/mutators/operation/index.ts"],
4
- "sourcesContent": ["import type { WorkspaceStore } from '@/client'\nimport type { HooksEvents } from '@/events/definitions/hooks'\nimport type { OperationEvents } from '@/events/definitions/operation'\nimport {\n updateOperationRequestBodyContentType,\n updateOperationRequestBodyExample,\n updateOperationRequestBodyFormValue,\n} from '@/mutators/operation/body'\nimport { updateOperationExtension } from '@/mutators/operation/extensions'\nimport { addResponseToHistory, reloadOperationHistory } from '@/mutators/operation/history'\nimport {\n createOperation,\n deleteOperation,\n deleteOperationExample,\n updateOperationPathMethod,\n updateOperationSummary,\n} from '@/mutators/operation/operation'\nimport {\n deleteAllOperationParameters,\n deleteOperationParameter,\n updateOperationExtraParameters,\n upsertOperationParameter,\n} from '@/mutators/operation/parameters'\nimport type { WorkspaceDocument } from '@/schemas'\n\nexport const operationMutatorsFactory = ({\n document,\n store,\n}: {\n document: WorkspaceDocument | null\n store: WorkspaceStore | null\n}) => {\n return {\n createOperation: (payload: OperationEvents['operation:create:operation']) => createOperation(store, payload),\n updateOperationSummary: (payload: OperationEvents['operation:update:summary']) =>\n updateOperationSummary(document, payload),\n updateOperationPathMethod: (payload: OperationEvents['operation:update:pathMethod']) =>\n updateOperationPathMethod(document, store, payload),\n deleteOperation: (payload: OperationEvents['operation:delete:operation']) => deleteOperation(store, payload),\n deleteOperationExample: (payload: OperationEvents['operation:delete:example']) =>\n deleteOperationExample(store, payload),\n updateOperationExtension: (payload: OperationEvents['operation:update:extension']) =>\n updateOperationExtension(document, payload),\n updateOperationExtraParameters: (payload: OperationEvents['operation:update:extra-parameters']) =>\n updateOperationExtraParameters(document, payload),\n upsertOperationParameter: (payload: OperationEvents['operation:upsert:parameter']) =>\n upsertOperationParameter(document, payload),\n deleteOperationParameter: (payload: OperationEvents['operation:delete:parameter']) =>\n deleteOperationParameter(document, payload),\n deleteAllOperationParameters: (payload: OperationEvents['operation:delete-all:parameters']) =>\n deleteAllOperationParameters(document, payload),\n updateOperationRequestBodyContentType: (payload: OperationEvents['operation:update:requestBody:contentType']) =>\n updateOperationRequestBodyContentType(document, payload),\n updateOperationRequestBodyExample: (payload: OperationEvents['operation:update:requestBody:value']) =>\n updateOperationRequestBodyExample(document, payload),\n updateOperationRequestBodyFormValue: (payload: OperationEvents['operation:update:requestBody:formValue']) =>\n updateOperationRequestBodyFormValue(document, payload),\n addResponseToHistory: (payload: HooksEvents['hooks:on:request:complete']) =>\n addResponseToHistory(store, document, payload),\n reloadOperationHistory: (payload: OperationEvents['operation:reload:history']) =>\n reloadOperationHistory(store, document, payload),\n }\n}\n"],
5
- "mappings": "AAGA;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP,SAAS,gCAAgC;AACzC,SAAS,sBAAsB,8BAA8B;AAC7D;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAGA,MAAM,2BAA2B,CAAC;AAAA,EACvC;AAAA,EACA;AACF,MAGM;AACJ,SAAO;AAAA,IACL,iBAAiB,CAAC,YAA2D,gBAAgB,OAAO,OAAO;AAAA,IAC3G,wBAAwB,CAAC,YACvB,uBAAuB,UAAU,OAAO;AAAA,IAC1C,2BAA2B,CAAC,YAC1B,0BAA0B,UAAU,OAAO,OAAO;AAAA,IACpD,iBAAiB,CAAC,YAA2D,gBAAgB,OAAO,OAAO;AAAA,IAC3G,wBAAwB,CAAC,YACvB,uBAAuB,OAAO,OAAO;AAAA,IACvC,0BAA0B,CAAC,YACzB,yBAAyB,UAAU,OAAO;AAAA,IAC5C,gCAAgC,CAAC,YAC/B,+BAA+B,UAAU,OAAO;AAAA,IAClD,0BAA0B,CAAC,YACzB,yBAAyB,UAAU,OAAO;AAAA,IAC5C,0BAA0B,CAAC,YACzB,yBAAyB,UAAU,OAAO;AAAA,IAC5C,8BAA8B,CAAC,YAC7B,6BAA6B,UAAU,OAAO;AAAA,IAChD,uCAAuC,CAAC,YACtC,sCAAsC,UAAU,OAAO;AAAA,IACzD,mCAAmC,CAAC,YAClC,kCAAkC,UAAU,OAAO;AAAA,IACrD,qCAAqC,CAAC,YACpC,oCAAoC,UAAU,OAAO;AAAA,IACvD,sBAAsB,CAAC,YACrB,qBAAqB,OAAO,UAAU,OAAO;AAAA,IAC/C,wBAAwB,CAAC,YACvB,uBAAuB,OAAO,UAAU,OAAO;AAAA,EACnD;AACF;",
4
+ "sourcesContent": ["import type { WorkspaceStore } from '@/client'\nimport type { HooksEvents } from '@/events/definitions/hooks'\nimport type { OperationEvents } from '@/events/definitions/operation'\nimport {\n updateOperationRequestBodyContentType,\n updateOperationRequestBodyExample,\n updateOperationRequestBodyFormValue,\n} from '@/mutators/operation/body'\nimport { updateOperationExtension } from '@/mutators/operation/extensions'\nimport { addResponseToHistory, reloadOperationHistory } from '@/mutators/operation/history'\nimport {\n createOperation,\n createOperationDraftExample,\n deleteOperation,\n deleteOperationExample,\n updateOperationPathMethod,\n updateOperationSummary,\n} from '@/mutators/operation/operation'\nimport {\n deleteAllOperationParameters,\n deleteOperationParameter,\n updateOperationExtraParameters,\n upsertOperationParameter,\n} from '@/mutators/operation/parameters'\nimport type { WorkspaceDocument } from '@/schemas'\n\nexport const operationMutatorsFactory = ({\n document,\n store,\n}: {\n document: WorkspaceDocument | null\n store: WorkspaceStore | null\n}) => {\n return {\n createOperation: (payload: OperationEvents['operation:create:operation']) => createOperation(store, payload),\n updateOperationSummary: (payload: OperationEvents['operation:update:summary']) =>\n updateOperationSummary(store, document, payload),\n updateOperationPathMethod: (payload: OperationEvents['operation:update:pathMethod']) =>\n updateOperationPathMethod(document, store, payload),\n deleteOperation: (payload: OperationEvents['operation:delete:operation']) => deleteOperation(store, payload),\n createOperationDraftExample: (payload: OperationEvents['operation:create:draft-example']) =>\n createOperationDraftExample(store, payload),\n deleteOperationExample: (payload: OperationEvents['operation:delete:example']) =>\n deleteOperationExample(store, payload),\n updateOperationExtension: (payload: OperationEvents['operation:update:extension']) =>\n updateOperationExtension(document, payload),\n updateOperationExtraParameters: (payload: OperationEvents['operation:update:extra-parameters']) =>\n updateOperationExtraParameters(document, payload),\n upsertOperationParameter: (payload: OperationEvents['operation:upsert:parameter']) =>\n upsertOperationParameter(document, payload),\n deleteOperationParameter: (payload: OperationEvents['operation:delete:parameter']) =>\n deleteOperationParameter(document, payload),\n deleteAllOperationParameters: (payload: OperationEvents['operation:delete-all:parameters']) =>\n deleteAllOperationParameters(document, payload),\n updateOperationRequestBodyContentType: (payload: OperationEvents['operation:update:requestBody:contentType']) =>\n updateOperationRequestBodyContentType(document, payload),\n updateOperationRequestBodyExample: (payload: OperationEvents['operation:update:requestBody:value']) =>\n updateOperationRequestBodyExample(document, payload),\n updateOperationRequestBodyFormValue: (payload: OperationEvents['operation:update:requestBody:formValue']) =>\n updateOperationRequestBodyFormValue(document, payload),\n addResponseToHistory: (payload: HooksEvents['hooks:on:request:complete']) =>\n addResponseToHistory(store, document, payload),\n reloadOperationHistory: (payload: OperationEvents['operation:reload:history']) =>\n reloadOperationHistory(store, document, payload),\n }\n}\n"],
5
+ "mappings": "AAGA;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP,SAAS,gCAAgC;AACzC,SAAS,sBAAsB,8BAA8B;AAC7D;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAGA,MAAM,2BAA2B,CAAC;AAAA,EACvC;AAAA,EACA;AACF,MAGM;AACJ,SAAO;AAAA,IACL,iBAAiB,CAAC,YAA2D,gBAAgB,OAAO,OAAO;AAAA,IAC3G,wBAAwB,CAAC,YACvB,uBAAuB,OAAO,UAAU,OAAO;AAAA,IACjD,2BAA2B,CAAC,YAC1B,0BAA0B,UAAU,OAAO,OAAO;AAAA,IACpD,iBAAiB,CAAC,YAA2D,gBAAgB,OAAO,OAAO;AAAA,IAC3G,6BAA6B,CAAC,YAC5B,4BAA4B,OAAO,OAAO;AAAA,IAC5C,wBAAwB,CAAC,YACvB,uBAAuB,OAAO,OAAO;AAAA,IACvC,0BAA0B,CAAC,YACzB,yBAAyB,UAAU,OAAO;AAAA,IAC5C,gCAAgC,CAAC,YAC/B,+BAA+B,UAAU,OAAO;AAAA,IAClD,0BAA0B,CAAC,YACzB,yBAAyB,UAAU,OAAO;AAAA,IAC5C,0BAA0B,CAAC,YACzB,yBAAyB,UAAU,OAAO;AAAA,IAC5C,8BAA8B,CAAC,YAC7B,6BAA6B,UAAU,OAAO;AAAA,IAChD,uCAAuC,CAAC,YACtC,sCAAsC,UAAU,OAAO;AAAA,IACzD,mCAAmC,CAAC,YAClC,kCAAkC,UAAU,OAAO;AAAA,IACrD,qCAAqC,CAAC,YACpC,oCAAoC,UAAU,OAAO;AAAA,IACvD,sBAAsB,CAAC,YACrB,qBAAqB,OAAO,UAAU,OAAO;AAAA,IAC/C,wBAAwB,CAAC,YACvB,uBAAuB,OAAO,UAAU,OAAO;AAAA,EACnD;AACF;",
6
6
  "names": []
7
7
  }
@@ -32,7 +32,7 @@ export declare const createOperation: (workspaceStore: WorkspaceStore | null, pa
32
32
  * })
33
33
  * ```
34
34
  */
35
- export declare const updateOperationSummary: (document: WorkspaceDocument | null, { meta, payload: { summary } }: OperationEvents["operation:update:summary"]) => void;
35
+ export declare const updateOperationSummary: (store: WorkspaceStore | null, document: WorkspaceDocument | null, { meta, payload: { summary } }: OperationEvents["operation:update:summary"]) => void;
36
36
  /**
37
37
  * Updates the HTTP method and/or path of an operation and moves it to the new location.
38
38
  * This function:
@@ -65,6 +65,14 @@ export declare const updateOperationPathMethod: (document: WorkspaceDocument | n
65
65
  * ```
66
66
  */
67
67
  export declare const deleteOperation: (workspace: WorkspaceStore | null, { meta, documentName }: OperationEvents["operation:delete:operation"]) => void;
68
+ /**
69
+ * Adds an example name to the 'x-draft-examples' array for a specific operation in a document.
70
+ *
71
+ * - Finds the target operation using the provided path and method within the specified document.
72
+ * - If the operation is found and has an 'x-draft-examples' array, pushes the new exampleName to it.
73
+ * - Safely no-ops if the document or operation does not exist.
74
+ */
75
+ export declare const createOperationDraftExample: (workspace: WorkspaceStore | null, { meta: { path, method }, documentName, exampleName }: OperationEvents["operation:create:draft-example"]) => void;
68
76
  /**
69
77
  * Deletes an example with the given exampleKey from operation parameters and request body.
70
78
  *
@@ -1 +1 @@
1
- {"version":3,"file":"operation.d.ts","sourceRoot":"","sources":["../../../src/mutators/operation/operation.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAA;AAC9C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAA;AAOrE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAA;AAIlD;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,eAAe,GAC1B,gBAAgB,cAAc,GAAG,IAAI,EACrC,SAAS,eAAe,CAAC,4BAA4B,CAAC,KACrD,MAAM,GAAG,SAwDX,CAAA;AAED;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,sBAAsB,GACjC,UAAU,iBAAiB,GAAG,IAAI,EAClC,gCAAgC,eAAe,CAAC,0BAA0B,CAAC,SAY5E,CAAA;AAwDD;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,yBAAyB,GACpC,UAAU,iBAAiB,GAAG,IAAI,EAClC,OAAO,cAAc,GAAG,IAAI,EAC5B,+CAA+C,eAAe,CAAC,6BAA6B,CAAC,KAC5F,IA+FF,CAAA;AAED;;;;;;;;;;GAUG;AACH,eAAO,MAAM,eAAe,GAC1B,WAAW,cAAc,GAAG,IAAI,EAChC,wBAAwB,eAAe,CAAC,4BAA4B,CAAC,SAgBtE,CAAA;AAED;;;;;;GAMG;AACH,eAAO,MAAM,sBAAsB,GACjC,WAAW,cAAc,GAAG,IAAI,EAChC,sDAAsD,eAAe,CAAC,0BAA0B,CAAC,SAyClG,CAAA"}
1
+ {"version":3,"file":"operation.d.ts","sourceRoot":"","sources":["../../../src/mutators/operation/operation.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAA;AAC9C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAA;AAOrE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAA;AAElD;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,eAAe,GAC1B,gBAAgB,cAAc,GAAG,IAAI,EACrC,SAAS,eAAe,CAAC,4BAA4B,CAAC,KACrD,MAAM,GAAG,SAwDX,CAAA;AAED;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,sBAAsB,GACjC,OAAO,cAAc,GAAG,IAAI,EAC5B,UAAU,iBAAiB,GAAG,IAAI,EAClC,gCAAgC,eAAe,CAAC,0BAA0B,CAAC,SAqB5E,CAAA;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,yBAAyB,GACpC,UAAU,iBAAiB,GAAG,IAAI,EAClC,OAAO,cAAc,GAAG,IAAI,EAC5B,+CAA+C,eAAe,CAAC,6BAA6B,CAAC,KAC5F,IA+FF,CAAA;AAED;;;;;;;;;;GAUG;AACH,eAAO,MAAM,eAAe,GAC1B,WAAW,cAAc,GAAG,IAAI,EAChC,wBAAwB,eAAe,CAAC,4BAA4B,CAAC,SAgBtE,CAAA;AAED;;;;;;GAMG;AACH,eAAO,MAAM,2BAA2B,GACtC,WAAW,cAAc,GAAG,IAAI,EAChC,uDAAuD,eAAe,CAAC,gCAAgC,CAAC,SAuBzG,CAAA;AAED;;;;;;GAMG;AACH,eAAO,MAAM,sBAAsB,GACjC,WAAW,cAAc,GAAG,IAAI,EAChC,sDAAsD,eAAe,CAAC,0BAA0B,CAAC,SAiDlG,CAAA"}
@@ -6,7 +6,7 @@ import { unpackProxyObject } from "../../helpers/unpack-proxy.js";
6
6
  import { syncParametersForPathChange } from "../../mutators/operation/helpers/sync-path-parameters.js";
7
7
  import { getOperationEntries } from "../../navigation/index.js";
8
8
  import { getNavigationOptions } from "../../navigation/get-navigation-options.js";
9
- import { canHaveOrder, getOpenapiObject } from "../../navigation/helpers/get-openapi-object.js";
9
+ import { updateOrderIds } from "../../navigation/helpers/update-order-ids.js";
10
10
  const createOperation = (workspaceStore, payload) => {
11
11
  const document = workspaceStore?.workspace.documents[payload.documentName];
12
12
  if (!document) {
@@ -44,8 +44,12 @@ const createOperation = (workspaceStore, payload) => {
44
44
  payload.callback?.(true);
45
45
  return normalizedPath;
46
46
  };
47
- const updateOperationSummary = (document, { meta, payload: { summary } }) => {
48
- if (!document) {
47
+ const updateOperationSummary = (store, document, { meta, payload: { summary } }) => {
48
+ if (!document || !store) {
49
+ return;
50
+ }
51
+ const documentName = document["x-scalar-navigation"]?.name;
52
+ if (documentName === void 0) {
49
53
  return;
50
54
  }
51
55
  const operation = getResolvedRef(document.paths?.[meta.path]?.[meta.method]);
@@ -53,38 +57,7 @@ const updateOperationSummary = (document, { meta, payload: { summary } }) => {
53
57
  return;
54
58
  }
55
59
  operation.summary = summary;
56
- };
57
- const updateOperationOrderId = ({
58
- store,
59
- operation,
60
- generateId,
61
- method,
62
- path,
63
- entries
64
- }) => {
65
- entries?.forEach((entry) => {
66
- if (!canHaveOrder(entry.parent)) {
67
- return;
68
- }
69
- const parentOpenAPIObject = getOpenapiObject({ store, entry: entry.parent });
70
- if (!parentOpenAPIObject || !("x-scalar-order" in parentOpenAPIObject)) {
71
- return;
72
- }
73
- const order = parentOpenAPIObject["x-scalar-order"];
74
- const index = order?.indexOf(entry.id);
75
- if (!Array.isArray(order) || typeof index !== "number" || index < 0) {
76
- return;
77
- }
78
- const parentTag = entry.parent.type === "tag" && "name" in parentOpenAPIObject ? { tag: parentOpenAPIObject, id: entry.parent.id } : void 0;
79
- order[index] = generateId({
80
- type: "operation",
81
- path,
82
- method,
83
- operation,
84
- parentId: entry.parent.id,
85
- parentTag
86
- });
87
- });
60
+ store.buildSidebar(documentName);
88
61
  };
89
62
  const updateOperationPathMethod = (document, store, { meta, payload: { method, path }, callback }) => {
90
63
  const methodChanged = meta.method !== method;
@@ -125,7 +98,7 @@ const updateOperationPathMethod = (document, store, { meta, payload: { method, p
125
98
  const operationEntriesMap = getOperationEntries(documentNavigation);
126
99
  const entries = operationEntriesMap.get(`${meta.path}|${meta.method}`);
127
100
  if (entries) {
128
- updateOperationOrderId({ store, operation, generateId, method: finalMethod, path: finalPath, entries });
101
+ updateOrderIds({ store, operation, generateId, method: finalMethod, path: finalPath, entries });
129
102
  }
130
103
  if (!document.paths) {
131
104
  document.paths = {};
@@ -159,6 +132,22 @@ const deleteOperation = (workspace, { meta, documentName }) => {
159
132
  delete document.paths?.[meta.path];
160
133
  }
161
134
  };
135
+ const createOperationDraftExample = (workspace, { meta: { path, method }, documentName, exampleName }) => {
136
+ const document = workspace?.workspace.documents[documentName];
137
+ if (!document) {
138
+ console.error("Document not found", { documentName });
139
+ return;
140
+ }
141
+ const operation = getResolvedRef(document.paths?.[path]?.[method]);
142
+ if (!operation) {
143
+ console.error("Operation not found", { path, method });
144
+ return;
145
+ }
146
+ operation["x-draft-examples"] ??= [];
147
+ const dedupe = new Set(operation["x-draft-examples"]);
148
+ dedupe.add(exampleName);
149
+ operation["x-draft-examples"] = Array.from(dedupe);
150
+ };
162
151
  const deleteOperationExample = (workspace, { meta: { path, method, exampleKey }, documentName }) => {
163
152
  const document = workspace?.workspace.documents[documentName];
164
153
  if (!document) {
@@ -168,6 +157,11 @@ const deleteOperationExample = (workspace, { meta: { path, method, exampleKey },
168
157
  if (!operation) {
169
158
  return;
170
159
  }
160
+ const dedupe = new Set(operation["x-draft-examples"] ?? []);
161
+ dedupe.delete(exampleKey);
162
+ if (operation["x-draft-examples"] !== void 0) {
163
+ operation["x-draft-examples"] = Array.from(dedupe);
164
+ }
171
165
  operation.parameters?.forEach((parameter) => {
172
166
  const resolvedParameter = getResolvedRef(parameter);
173
167
  if ("content" in resolvedParameter && resolvedParameter.content) {
@@ -189,6 +183,7 @@ const deleteOperationExample = (workspace, { meta: { path, method, exampleKey },
189
183
  };
190
184
  export {
191
185
  createOperation,
186
+ createOperationDraftExample,
192
187
  deleteOperation,
193
188
  deleteOperationExample,
194
189
  updateOperationPathMethod,