@n8n/stores 2.37.0 → 2.38.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.
@@ -1,4 +1,4 @@
1
- import * as pinia2 from "pinia";
1
+ import * as pinia4 from "pinia";
2
2
  import { AgentRequestQuery } from "n8n-workflow";
3
3
  import * as _vueuse_core0 from "@vueuse/core";
4
4
 
@@ -12,7 +12,7 @@ interface IAgentRequestStoreState {
12
12
  [nodeName: string]: IAgentRequest;
13
13
  };
14
14
  }
15
- declare const useAgentRequestStore: pinia2.StoreDefinition<"agentRequest", Pick<{
15
+ declare const useAgentRequestStore: pinia4.StoreDefinition<"agentRequest", Pick<{
16
16
  agentRequests: _vueuse_core0.RemovableRef<IAgentRequestStoreState>;
17
17
  getAgentRequests: (workflowId: string, nodeId: string) => IAgentRequest["query"];
18
18
  getQueryValue: (workflowId: string, nodeId: string, nodeName: string, paramName?: string) => unknown;
@@ -1,5 +1,6 @@
1
- import * as vue347 from "vue";
2
- import * as pinia5 from "pinia";
1
+ import * as vue59 from "vue";
2
+ import * as pinia4 from "pinia";
3
+ import { PublicApiContext } from "@n8n/rest-api-client";
3
4
 
4
5
  //#region src/useRootStore.d.ts
5
6
  type RootStoreState = {
@@ -31,36 +32,34 @@ type RootStoreState = {
31
32
  instanceId: string;
32
33
  binaryDataMode: 'default' | 'filesystem' | 's3' | 'azure' | 'database';
33
34
  };
34
- declare const useRootStore: pinia5.StoreDefinition<"root", Pick<{
35
- baseUrl: vue347.ComputedRef<string>;
36
- formUrl: vue347.ComputedRef<string>;
37
- formTestUrl: vue347.ComputedRef<string>;
38
- formWaitingUrl: vue347.ComputedRef<string>;
39
- mcpUrl: vue347.ComputedRef<string>;
40
- mcpTestUrl: vue347.ComputedRef<string>;
41
- webhookUrl: vue347.ComputedRef<string>;
42
- webhookTestUrl: vue347.ComputedRef<string>;
43
- webhookWaitingUrl: vue347.ComputedRef<string>;
44
- restUrl: vue347.ComputedRef<string>;
45
- restApiContext: vue347.ComputedRef<{
35
+ declare const useRootStore: pinia4.StoreDefinition<"root", Pick<{
36
+ baseUrl: vue59.ComputedRef<string>;
37
+ formUrl: vue59.ComputedRef<string>;
38
+ formTestUrl: vue59.ComputedRef<string>;
39
+ formWaitingUrl: vue59.ComputedRef<string>;
40
+ mcpUrl: vue59.ComputedRef<string>;
41
+ mcpTestUrl: vue59.ComputedRef<string>;
42
+ webhookUrl: vue59.ComputedRef<string>;
43
+ webhookTestUrl: vue59.ComputedRef<string>;
44
+ webhookWaitingUrl: vue59.ComputedRef<string>;
45
+ restUrl: vue59.ComputedRef<string>;
46
+ restApiContext: vue59.ComputedRef<{
46
47
  baseUrl: string;
47
48
  pushRef: string;
48
49
  }>;
49
- publicApiContext: vue347.ComputedRef<{
50
- baseUrl: string;
51
- }>;
52
- urlBaseEditor: vue347.ComputedRef<string>;
53
- urlBaseWebhook: vue347.ComputedRef<string>;
54
- versionCli: vue347.ComputedRef<string>;
55
- instanceId: vue347.ComputedRef<string>;
56
- pushRef: vue347.ComputedRef<string>;
57
- defaultLocale: vue347.ComputedRef<string>;
58
- binaryDataMode: vue347.ComputedRef<"default" | "filesystem" | "s3" | "azure" | "database">;
59
- OAuthCallbackUrls: vue347.ComputedRef<object>;
60
- jwksUri: vue347.ComputedRef<string>;
61
- executionTimeout: vue347.ComputedRef<number>;
62
- maxExecutionTimeout: vue347.ComputedRef<number>;
63
- timezone: vue347.ComputedRef<string>;
50
+ publicApiContext: vue59.ComputedRef<PublicApiContext>;
51
+ urlBaseEditor: vue59.ComputedRef<string>;
52
+ urlBaseWebhook: vue59.ComputedRef<string>;
53
+ versionCli: vue59.ComputedRef<string>;
54
+ instanceId: vue59.ComputedRef<string>;
55
+ pushRef: vue59.ComputedRef<string>;
56
+ defaultLocale: vue59.ComputedRef<string>;
57
+ binaryDataMode: vue59.ComputedRef<"default" | "filesystem" | "s3" | "azure" | "database">;
58
+ OAuthCallbackUrls: vue59.ComputedRef<object>;
59
+ jwksUri: vue59.ComputedRef<string>;
60
+ executionTimeout: vue59.ComputedRef<number>;
61
+ maxExecutionTimeout: vue59.ComputedRef<number>;
62
+ timezone: vue59.ComputedRef<string>;
64
63
  setUrlBaseWebhook: (value: string) => void;
65
64
  setUrlBaseEditor: (value: string) => void;
66
65
  setUrlBaseWebhookTest: (value: string) => void;
@@ -85,35 +84,33 @@ declare const useRootStore: pinia5.StoreDefinition<"root", Pick<{
85
84
  setPushRef: (value: string) => void;
86
85
  setPublicApiPath: (value: string) => void;
87
86
  }, never>, Pick<{
88
- baseUrl: vue347.ComputedRef<string>;
89
- formUrl: vue347.ComputedRef<string>;
90
- formTestUrl: vue347.ComputedRef<string>;
91
- formWaitingUrl: vue347.ComputedRef<string>;
92
- mcpUrl: vue347.ComputedRef<string>;
93
- mcpTestUrl: vue347.ComputedRef<string>;
94
- webhookUrl: vue347.ComputedRef<string>;
95
- webhookTestUrl: vue347.ComputedRef<string>;
96
- webhookWaitingUrl: vue347.ComputedRef<string>;
97
- restUrl: vue347.ComputedRef<string>;
98
- restApiContext: vue347.ComputedRef<{
87
+ baseUrl: vue59.ComputedRef<string>;
88
+ formUrl: vue59.ComputedRef<string>;
89
+ formTestUrl: vue59.ComputedRef<string>;
90
+ formWaitingUrl: vue59.ComputedRef<string>;
91
+ mcpUrl: vue59.ComputedRef<string>;
92
+ mcpTestUrl: vue59.ComputedRef<string>;
93
+ webhookUrl: vue59.ComputedRef<string>;
94
+ webhookTestUrl: vue59.ComputedRef<string>;
95
+ webhookWaitingUrl: vue59.ComputedRef<string>;
96
+ restUrl: vue59.ComputedRef<string>;
97
+ restApiContext: vue59.ComputedRef<{
99
98
  baseUrl: string;
100
99
  pushRef: string;
101
100
  }>;
102
- publicApiContext: vue347.ComputedRef<{
103
- baseUrl: string;
104
- }>;
105
- urlBaseEditor: vue347.ComputedRef<string>;
106
- urlBaseWebhook: vue347.ComputedRef<string>;
107
- versionCli: vue347.ComputedRef<string>;
108
- instanceId: vue347.ComputedRef<string>;
109
- pushRef: vue347.ComputedRef<string>;
110
- defaultLocale: vue347.ComputedRef<string>;
111
- binaryDataMode: vue347.ComputedRef<"default" | "filesystem" | "s3" | "azure" | "database">;
112
- OAuthCallbackUrls: vue347.ComputedRef<object>;
113
- jwksUri: vue347.ComputedRef<string>;
114
- executionTimeout: vue347.ComputedRef<number>;
115
- maxExecutionTimeout: vue347.ComputedRef<number>;
116
- timezone: vue347.ComputedRef<string>;
101
+ publicApiContext: vue59.ComputedRef<PublicApiContext>;
102
+ urlBaseEditor: vue59.ComputedRef<string>;
103
+ urlBaseWebhook: vue59.ComputedRef<string>;
104
+ versionCli: vue59.ComputedRef<string>;
105
+ instanceId: vue59.ComputedRef<string>;
106
+ pushRef: vue59.ComputedRef<string>;
107
+ defaultLocale: vue59.ComputedRef<string>;
108
+ binaryDataMode: vue59.ComputedRef<"default" | "filesystem" | "s3" | "azure" | "database">;
109
+ OAuthCallbackUrls: vue59.ComputedRef<object>;
110
+ jwksUri: vue59.ComputedRef<string>;
111
+ executionTimeout: vue59.ComputedRef<number>;
112
+ maxExecutionTimeout: vue59.ComputedRef<number>;
113
+ timezone: vue59.ComputedRef<string>;
117
114
  setUrlBaseWebhook: (value: string) => void;
118
115
  setUrlBaseEditor: (value: string) => void;
119
116
  setUrlBaseWebhookTest: (value: string) => void;
@@ -138,35 +135,33 @@ declare const useRootStore: pinia5.StoreDefinition<"root", Pick<{
138
135
  setPushRef: (value: string) => void;
139
136
  setPublicApiPath: (value: string) => void;
140
137
  }, "executionTimeout" | "maxExecutionTimeout" | "jwksUri" | "timezone" | "urlBaseWebhook" | "urlBaseEditor" | "versionCli" | "binaryDataMode" | "instanceId" | "defaultLocale" | "baseUrl" | "pushRef" | "formUrl" | "formTestUrl" | "formWaitingUrl" | "mcpUrl" | "mcpTestUrl" | "webhookUrl" | "webhookTestUrl" | "webhookWaitingUrl" | "restUrl" | "restApiContext" | "publicApiContext" | "OAuthCallbackUrls">, Pick<{
141
- baseUrl: vue347.ComputedRef<string>;
142
- formUrl: vue347.ComputedRef<string>;
143
- formTestUrl: vue347.ComputedRef<string>;
144
- formWaitingUrl: vue347.ComputedRef<string>;
145
- mcpUrl: vue347.ComputedRef<string>;
146
- mcpTestUrl: vue347.ComputedRef<string>;
147
- webhookUrl: vue347.ComputedRef<string>;
148
- webhookTestUrl: vue347.ComputedRef<string>;
149
- webhookWaitingUrl: vue347.ComputedRef<string>;
150
- restUrl: vue347.ComputedRef<string>;
151
- restApiContext: vue347.ComputedRef<{
138
+ baseUrl: vue59.ComputedRef<string>;
139
+ formUrl: vue59.ComputedRef<string>;
140
+ formTestUrl: vue59.ComputedRef<string>;
141
+ formWaitingUrl: vue59.ComputedRef<string>;
142
+ mcpUrl: vue59.ComputedRef<string>;
143
+ mcpTestUrl: vue59.ComputedRef<string>;
144
+ webhookUrl: vue59.ComputedRef<string>;
145
+ webhookTestUrl: vue59.ComputedRef<string>;
146
+ webhookWaitingUrl: vue59.ComputedRef<string>;
147
+ restUrl: vue59.ComputedRef<string>;
148
+ restApiContext: vue59.ComputedRef<{
152
149
  baseUrl: string;
153
150
  pushRef: string;
154
151
  }>;
155
- publicApiContext: vue347.ComputedRef<{
156
- baseUrl: string;
157
- }>;
158
- urlBaseEditor: vue347.ComputedRef<string>;
159
- urlBaseWebhook: vue347.ComputedRef<string>;
160
- versionCli: vue347.ComputedRef<string>;
161
- instanceId: vue347.ComputedRef<string>;
162
- pushRef: vue347.ComputedRef<string>;
163
- defaultLocale: vue347.ComputedRef<string>;
164
- binaryDataMode: vue347.ComputedRef<"default" | "filesystem" | "s3" | "azure" | "database">;
165
- OAuthCallbackUrls: vue347.ComputedRef<object>;
166
- jwksUri: vue347.ComputedRef<string>;
167
- executionTimeout: vue347.ComputedRef<number>;
168
- maxExecutionTimeout: vue347.ComputedRef<number>;
169
- timezone: vue347.ComputedRef<string>;
152
+ publicApiContext: vue59.ComputedRef<PublicApiContext>;
153
+ urlBaseEditor: vue59.ComputedRef<string>;
154
+ urlBaseWebhook: vue59.ComputedRef<string>;
155
+ versionCli: vue59.ComputedRef<string>;
156
+ instanceId: vue59.ComputedRef<string>;
157
+ pushRef: vue59.ComputedRef<string>;
158
+ defaultLocale: vue59.ComputedRef<string>;
159
+ binaryDataMode: vue59.ComputedRef<"default" | "filesystem" | "s3" | "azure" | "database">;
160
+ OAuthCallbackUrls: vue59.ComputedRef<object>;
161
+ jwksUri: vue59.ComputedRef<string>;
162
+ executionTimeout: vue59.ComputedRef<number>;
163
+ maxExecutionTimeout: vue59.ComputedRef<number>;
164
+ timezone: vue59.ComputedRef<string>;
170
165
  setUrlBaseWebhook: (value: string) => void;
171
166
  setUrlBaseEditor: (value: string) => void;
172
167
  setUrlBaseWebhookTest: (value: string) => void;
@@ -1,5 +1,6 @@
1
- import * as pinia4 from "pinia";
2
- import * as vue320 from "vue";
1
+ import * as pinia6 from "pinia";
2
+ import * as vue383 from "vue";
3
+ import { PublicApiContext } from "@n8n/rest-api-client";
3
4
 
4
5
  //#region src/useRootStore.d.ts
5
6
  type RootStoreState = {
@@ -31,36 +32,34 @@ type RootStoreState = {
31
32
  instanceId: string;
32
33
  binaryDataMode: 'default' | 'filesystem' | 's3' | 'azure' | 'database';
33
34
  };
34
- declare const useRootStore: pinia4.StoreDefinition<"root", Pick<{
35
- baseUrl: vue320.ComputedRef<string>;
36
- formUrl: vue320.ComputedRef<string>;
37
- formTestUrl: vue320.ComputedRef<string>;
38
- formWaitingUrl: vue320.ComputedRef<string>;
39
- mcpUrl: vue320.ComputedRef<string>;
40
- mcpTestUrl: vue320.ComputedRef<string>;
41
- webhookUrl: vue320.ComputedRef<string>;
42
- webhookTestUrl: vue320.ComputedRef<string>;
43
- webhookWaitingUrl: vue320.ComputedRef<string>;
44
- restUrl: vue320.ComputedRef<string>;
45
- restApiContext: vue320.ComputedRef<{
35
+ declare const useRootStore: pinia6.StoreDefinition<"root", Pick<{
36
+ baseUrl: vue383.ComputedRef<string>;
37
+ formUrl: vue383.ComputedRef<string>;
38
+ formTestUrl: vue383.ComputedRef<string>;
39
+ formWaitingUrl: vue383.ComputedRef<string>;
40
+ mcpUrl: vue383.ComputedRef<string>;
41
+ mcpTestUrl: vue383.ComputedRef<string>;
42
+ webhookUrl: vue383.ComputedRef<string>;
43
+ webhookTestUrl: vue383.ComputedRef<string>;
44
+ webhookWaitingUrl: vue383.ComputedRef<string>;
45
+ restUrl: vue383.ComputedRef<string>;
46
+ restApiContext: vue383.ComputedRef<{
46
47
  baseUrl: string;
47
48
  pushRef: string;
48
49
  }>;
49
- publicApiContext: vue320.ComputedRef<{
50
- baseUrl: string;
51
- }>;
52
- urlBaseEditor: vue320.ComputedRef<string>;
53
- urlBaseWebhook: vue320.ComputedRef<string>;
54
- versionCli: vue320.ComputedRef<string>;
55
- instanceId: vue320.ComputedRef<string>;
56
- pushRef: vue320.ComputedRef<string>;
57
- defaultLocale: vue320.ComputedRef<string>;
58
- binaryDataMode: vue320.ComputedRef<"default" | "filesystem" | "s3" | "azure" | "database">;
59
- OAuthCallbackUrls: vue320.ComputedRef<object>;
60
- jwksUri: vue320.ComputedRef<string>;
61
- executionTimeout: vue320.ComputedRef<number>;
62
- maxExecutionTimeout: vue320.ComputedRef<number>;
63
- timezone: vue320.ComputedRef<string>;
50
+ publicApiContext: vue383.ComputedRef<PublicApiContext>;
51
+ urlBaseEditor: vue383.ComputedRef<string>;
52
+ urlBaseWebhook: vue383.ComputedRef<string>;
53
+ versionCli: vue383.ComputedRef<string>;
54
+ instanceId: vue383.ComputedRef<string>;
55
+ pushRef: vue383.ComputedRef<string>;
56
+ defaultLocale: vue383.ComputedRef<string>;
57
+ binaryDataMode: vue383.ComputedRef<"default" | "filesystem" | "s3" | "azure" | "database">;
58
+ OAuthCallbackUrls: vue383.ComputedRef<object>;
59
+ jwksUri: vue383.ComputedRef<string>;
60
+ executionTimeout: vue383.ComputedRef<number>;
61
+ maxExecutionTimeout: vue383.ComputedRef<number>;
62
+ timezone: vue383.ComputedRef<string>;
64
63
  setUrlBaseWebhook: (value: string) => void;
65
64
  setUrlBaseEditor: (value: string) => void;
66
65
  setUrlBaseWebhookTest: (value: string) => void;
@@ -85,35 +84,33 @@ declare const useRootStore: pinia4.StoreDefinition<"root", Pick<{
85
84
  setPushRef: (value: string) => void;
86
85
  setPublicApiPath: (value: string) => void;
87
86
  }, never>, Pick<{
88
- baseUrl: vue320.ComputedRef<string>;
89
- formUrl: vue320.ComputedRef<string>;
90
- formTestUrl: vue320.ComputedRef<string>;
91
- formWaitingUrl: vue320.ComputedRef<string>;
92
- mcpUrl: vue320.ComputedRef<string>;
93
- mcpTestUrl: vue320.ComputedRef<string>;
94
- webhookUrl: vue320.ComputedRef<string>;
95
- webhookTestUrl: vue320.ComputedRef<string>;
96
- webhookWaitingUrl: vue320.ComputedRef<string>;
97
- restUrl: vue320.ComputedRef<string>;
98
- restApiContext: vue320.ComputedRef<{
87
+ baseUrl: vue383.ComputedRef<string>;
88
+ formUrl: vue383.ComputedRef<string>;
89
+ formTestUrl: vue383.ComputedRef<string>;
90
+ formWaitingUrl: vue383.ComputedRef<string>;
91
+ mcpUrl: vue383.ComputedRef<string>;
92
+ mcpTestUrl: vue383.ComputedRef<string>;
93
+ webhookUrl: vue383.ComputedRef<string>;
94
+ webhookTestUrl: vue383.ComputedRef<string>;
95
+ webhookWaitingUrl: vue383.ComputedRef<string>;
96
+ restUrl: vue383.ComputedRef<string>;
97
+ restApiContext: vue383.ComputedRef<{
99
98
  baseUrl: string;
100
99
  pushRef: string;
101
100
  }>;
102
- publicApiContext: vue320.ComputedRef<{
103
- baseUrl: string;
104
- }>;
105
- urlBaseEditor: vue320.ComputedRef<string>;
106
- urlBaseWebhook: vue320.ComputedRef<string>;
107
- versionCli: vue320.ComputedRef<string>;
108
- instanceId: vue320.ComputedRef<string>;
109
- pushRef: vue320.ComputedRef<string>;
110
- defaultLocale: vue320.ComputedRef<string>;
111
- binaryDataMode: vue320.ComputedRef<"default" | "filesystem" | "s3" | "azure" | "database">;
112
- OAuthCallbackUrls: vue320.ComputedRef<object>;
113
- jwksUri: vue320.ComputedRef<string>;
114
- executionTimeout: vue320.ComputedRef<number>;
115
- maxExecutionTimeout: vue320.ComputedRef<number>;
116
- timezone: vue320.ComputedRef<string>;
101
+ publicApiContext: vue383.ComputedRef<PublicApiContext>;
102
+ urlBaseEditor: vue383.ComputedRef<string>;
103
+ urlBaseWebhook: vue383.ComputedRef<string>;
104
+ versionCli: vue383.ComputedRef<string>;
105
+ instanceId: vue383.ComputedRef<string>;
106
+ pushRef: vue383.ComputedRef<string>;
107
+ defaultLocale: vue383.ComputedRef<string>;
108
+ binaryDataMode: vue383.ComputedRef<"default" | "filesystem" | "s3" | "azure" | "database">;
109
+ OAuthCallbackUrls: vue383.ComputedRef<object>;
110
+ jwksUri: vue383.ComputedRef<string>;
111
+ executionTimeout: vue383.ComputedRef<number>;
112
+ maxExecutionTimeout: vue383.ComputedRef<number>;
113
+ timezone: vue383.ComputedRef<string>;
117
114
  setUrlBaseWebhook: (value: string) => void;
118
115
  setUrlBaseEditor: (value: string) => void;
119
116
  setUrlBaseWebhookTest: (value: string) => void;
@@ -138,35 +135,33 @@ declare const useRootStore: pinia4.StoreDefinition<"root", Pick<{
138
135
  setPushRef: (value: string) => void;
139
136
  setPublicApiPath: (value: string) => void;
140
137
  }, "executionTimeout" | "maxExecutionTimeout" | "jwksUri" | "timezone" | "urlBaseWebhook" | "urlBaseEditor" | "versionCli" | "binaryDataMode" | "instanceId" | "defaultLocale" | "baseUrl" | "pushRef" | "formUrl" | "formTestUrl" | "formWaitingUrl" | "mcpUrl" | "mcpTestUrl" | "webhookUrl" | "webhookTestUrl" | "webhookWaitingUrl" | "restUrl" | "restApiContext" | "publicApiContext" | "OAuthCallbackUrls">, Pick<{
141
- baseUrl: vue320.ComputedRef<string>;
142
- formUrl: vue320.ComputedRef<string>;
143
- formTestUrl: vue320.ComputedRef<string>;
144
- formWaitingUrl: vue320.ComputedRef<string>;
145
- mcpUrl: vue320.ComputedRef<string>;
146
- mcpTestUrl: vue320.ComputedRef<string>;
147
- webhookUrl: vue320.ComputedRef<string>;
148
- webhookTestUrl: vue320.ComputedRef<string>;
149
- webhookWaitingUrl: vue320.ComputedRef<string>;
150
- restUrl: vue320.ComputedRef<string>;
151
- restApiContext: vue320.ComputedRef<{
138
+ baseUrl: vue383.ComputedRef<string>;
139
+ formUrl: vue383.ComputedRef<string>;
140
+ formTestUrl: vue383.ComputedRef<string>;
141
+ formWaitingUrl: vue383.ComputedRef<string>;
142
+ mcpUrl: vue383.ComputedRef<string>;
143
+ mcpTestUrl: vue383.ComputedRef<string>;
144
+ webhookUrl: vue383.ComputedRef<string>;
145
+ webhookTestUrl: vue383.ComputedRef<string>;
146
+ webhookWaitingUrl: vue383.ComputedRef<string>;
147
+ restUrl: vue383.ComputedRef<string>;
148
+ restApiContext: vue383.ComputedRef<{
152
149
  baseUrl: string;
153
150
  pushRef: string;
154
151
  }>;
155
- publicApiContext: vue320.ComputedRef<{
156
- baseUrl: string;
157
- }>;
158
- urlBaseEditor: vue320.ComputedRef<string>;
159
- urlBaseWebhook: vue320.ComputedRef<string>;
160
- versionCli: vue320.ComputedRef<string>;
161
- instanceId: vue320.ComputedRef<string>;
162
- pushRef: vue320.ComputedRef<string>;
163
- defaultLocale: vue320.ComputedRef<string>;
164
- binaryDataMode: vue320.ComputedRef<"default" | "filesystem" | "s3" | "azure" | "database">;
165
- OAuthCallbackUrls: vue320.ComputedRef<object>;
166
- jwksUri: vue320.ComputedRef<string>;
167
- executionTimeout: vue320.ComputedRef<number>;
168
- maxExecutionTimeout: vue320.ComputedRef<number>;
169
- timezone: vue320.ComputedRef<string>;
152
+ publicApiContext: vue383.ComputedRef<PublicApiContext>;
153
+ urlBaseEditor: vue383.ComputedRef<string>;
154
+ urlBaseWebhook: vue383.ComputedRef<string>;
155
+ versionCli: vue383.ComputedRef<string>;
156
+ instanceId: vue383.ComputedRef<string>;
157
+ pushRef: vue383.ComputedRef<string>;
158
+ defaultLocale: vue383.ComputedRef<string>;
159
+ binaryDataMode: vue383.ComputedRef<"default" | "filesystem" | "s3" | "azure" | "database">;
160
+ OAuthCallbackUrls: vue383.ComputedRef<object>;
161
+ jwksUri: vue383.ComputedRef<string>;
162
+ executionTimeout: vue383.ComputedRef<number>;
163
+ maxExecutionTimeout: vue383.ComputedRef<number>;
164
+ timezone: vue383.ComputedRef<string>;
170
165
  setUrlBaseWebhook: (value: string) => void;
171
166
  setUrlBaseEditor: (value: string) => void;
172
167
  setUrlBaseWebhookTest: (value: string) => void;
@@ -1 +1 @@
1
- {"version":3,"file":"useRootStore2.cjs","names":["STORES","getConfigFromMetaTag"],"sources":["../src/useRootStore.ts"],"sourcesContent":["import { randomString, setGlobalState } from 'n8n-workflow';\nimport { defineStore } from 'pinia';\nimport { computed, ref } from 'vue';\n\nimport { STORES } from './constants';\nimport { getConfigFromMetaTag } from './metaTagConfig';\n\nconst { VUE_APP_URL_BASE_API } = import.meta.env;\n\nexport type RootStoreState = {\n\tbaseUrl: string;\n\trestEndpoint: string;\n\tdefaultLocale: string;\n\tendpointForm: string;\n\tendpointFormTest: string;\n\tendpointFormWaiting: string;\n\tendpointMcp: string;\n\tendpointMcpTest: string;\n\tendpointWebhook: string;\n\tendpointWebhookTest: string;\n\tendpointWebhookWaiting: string;\n\ttimezone: string;\n\texecutionTimeout: number;\n\tmaxExecutionTimeout: number;\n\tversionCli: string;\n\toauthCallbackUrls: object;\n\tjwksUri: string;\n\tn8nMetadata: {\n\t\t[key: string]: string | number | undefined;\n\t};\n\tpushRef: string;\n\tpublicApiPath: string;\n\turlBaseWebhook: string;\n\turlBaseEditor: string;\n\turlBaseWebhookTest: string;\n\tinstanceId: string;\n\tbinaryDataMode: 'default' | 'filesystem' | 's3' | 'azure' | 'database';\n};\n\nexport const useRootStore = defineStore(STORES.ROOT, () => {\n\tconst state = ref<RootStoreState>({\n\t\tbaseUrl: VUE_APP_URL_BASE_API ?? window.BASE_PATH,\n\t\trestEndpoint: getConfigFromMetaTag('rest-endpoint') ?? 'rest',\n\t\tdefaultLocale: 'en',\n\t\tendpointForm: 'form',\n\t\tendpointFormTest: 'form-test',\n\t\tendpointFormWaiting: 'form-waiting',\n\t\tendpointMcp: 'mcp',\n\t\tendpointMcpTest: 'mcp-test',\n\t\tendpointWebhook: 'webhook',\n\t\tendpointWebhookTest: 'webhook-test',\n\t\tendpointWebhookWaiting: 'webhook-waiting',\n\t\ttimezone: 'America/New_York',\n\t\texecutionTimeout: -1,\n\t\tmaxExecutionTimeout: Number.MAX_SAFE_INTEGER,\n\t\tversionCli: '0.0.0',\n\t\toauthCallbackUrls: {},\n\t\tjwksUri: '',\n\t\tn8nMetadata: {},\n\t\tpushRef: randomString(10).toLowerCase(),\n\t\tpublicApiPath: 'api/v1',\n\t\turlBaseWebhook: 'http://localhost:5678/',\n\t\turlBaseEditor: 'http://localhost:5678',\n\t\turlBaseWebhookTest: 'http://localhost:5678/',\n\t\tinstanceId: '',\n\t\tbinaryDataMode: 'default',\n\t});\n\n\t// ---------------------------------------------------------------------------\n\t// #region Computed\n\t// ---------------------------------------------------------------------------\n\n\tconst baseUrl = computed(() => state.value.baseUrl);\n\n\tconst formUrl = computed(() => `${state.value.urlBaseWebhook}${state.value.endpointForm}`);\n\n\tconst formTestUrl = computed(\n\t\t() => `${state.value.urlBaseWebhookTest}${state.value.endpointFormTest}`,\n\t);\n\n\tconst formWaitingUrl = computed(\n\t\t() => `${state.value.urlBaseEditor}${state.value.endpointFormWaiting}`,\n\t);\n\n\tconst webhookUrl = computed(() => `${state.value.urlBaseWebhook}${state.value.endpointWebhook}`);\n\n\tconst webhookTestUrl = computed(\n\t\t() => `${state.value.urlBaseWebhookTest}${state.value.endpointWebhookTest}`,\n\t);\n\n\tconst webhookWaitingUrl = computed(\n\t\t() => `${state.value.urlBaseEditor}${state.value.endpointWebhookWaiting}`,\n\t);\n\n\tconst mcpUrl = computed(() => `${state.value.urlBaseWebhook}${state.value.endpointMcp}`);\n\n\tconst mcpTestUrl = computed(\n\t\t() => `${state.value.urlBaseWebhookTest}${state.value.endpointMcpTest}`,\n\t);\n\n\tconst pushRef = computed(() => state.value.pushRef);\n\n\tconst binaryDataMode = computed(() => state.value.binaryDataMode);\n\n\tconst defaultLocale = computed(() => state.value.defaultLocale);\n\n\tconst urlBaseEditor = computed(() => state.value.urlBaseEditor);\n\n\tconst urlBaseWebhook = computed(() => state.value.urlBaseWebhook);\n\n\tconst instanceId = computed(() => state.value.instanceId);\n\n\tconst versionCli = computed(() => state.value.versionCli);\n\n\tconst OAuthCallbackUrls = computed(() => state.value.oauthCallbackUrls);\n\n\tconst jwksUri = computed(() => state.value.jwksUri);\n\n\tconst restUrl = computed(() => `${state.value.baseUrl}${state.value.restEndpoint}`);\n\n\tconst executionTimeout = computed(() => state.value.executionTimeout);\n\n\tconst maxExecutionTimeout = computed(() => state.value.maxExecutionTimeout);\n\n\tconst timezone = computed(() => state.value.timezone);\n\n\tconst restApiContext = computed(() => ({\n\t\tbaseUrl: restUrl.value,\n\t\tpushRef: state.value.pushRef,\n\t}));\n\n\tconst publicApiContext = computed(() => ({\n\t\tbaseUrl: `${state.value.baseUrl}${state.value.publicApiPath}`,\n\t}));\n\n\t// #endregion\n\n\t// ---------------------------------------------------------------------------\n\t// #region Methods\n\t// ---------------------------------------------------------------------------\n\n\tconst setUrlBaseWebhook = (value: string) => {\n\t\tconst url = value.endsWith('/') ? value : `${value}/`;\n\t\tstate.value.urlBaseWebhook = url;\n\t};\n\n\tconst setUrlBaseEditor = (value: string) => {\n\t\tconst url = value.endsWith('/') ? value : `${value}/`;\n\t\tstate.value.urlBaseEditor = url;\n\t};\n\n\tconst setUrlBaseWebhookTest = (value: string) => {\n\t\tconst url = value.endsWith('/') ? value : `${value}/`;\n\t\tstate.value.urlBaseWebhookTest = url;\n\t};\n\n\tconst setEndpointForm = (value: string) => {\n\t\tstate.value.endpointForm = value;\n\t};\n\n\tconst setEndpointFormTest = (value: string) => {\n\t\tstate.value.endpointFormTest = value;\n\t};\n\n\tconst setEndpointFormWaiting = (value: string) => {\n\t\tstate.value.endpointFormWaiting = value;\n\t};\n\n\tconst setEndpointWebhook = (value: string) => {\n\t\tstate.value.endpointWebhook = value;\n\t};\n\n\tconst setEndpointWebhookTest = (value: string) => {\n\t\tstate.value.endpointWebhookTest = value;\n\t};\n\n\tconst setEndpointWebhookWaiting = (value: string) => {\n\t\tstate.value.endpointWebhookWaiting = value;\n\t};\n\n\tconst setEndpointMcp = (value: string) => {\n\t\tstate.value.endpointMcp = value;\n\t};\n\n\tconst setEndpointMcpTest = (value: string) => {\n\t\tstate.value.endpointMcpTest = value;\n\t};\n\n\tconst setTimezone = (value: string) => {\n\t\tstate.value.timezone = value;\n\t\tsetGlobalState({ defaultTimezone: value });\n\t};\n\n\tconst setExecutionTimeout = (value: number) => {\n\t\tstate.value.executionTimeout = value;\n\t};\n\n\tconst setMaxExecutionTimeout = (value: number) => {\n\t\tstate.value.maxExecutionTimeout = value;\n\t};\n\n\tconst setVersionCli = (value: string) => {\n\t\tstate.value.versionCli = value;\n\t};\n\n\tconst setInstanceId = (value: string) => {\n\t\tstate.value.instanceId = value;\n\t};\n\n\tconst setOauthCallbackUrls = (value: RootStoreState['oauthCallbackUrls']) => {\n\t\tstate.value.oauthCallbackUrls = value;\n\t};\n\n\tconst setJwksUri = (value: string) => {\n\t\tstate.value.jwksUri = value;\n\t};\n\n\tconst setN8nMetadata = (value: RootStoreState['n8nMetadata']) => {\n\t\tstate.value.n8nMetadata = value;\n\t};\n\n\tconst setDefaultLocale = (value: string) => {\n\t\tstate.value.defaultLocale = value;\n\t};\n\n\tconst setBinaryDataMode = (value: RootStoreState['binaryDataMode']) => {\n\t\tstate.value.binaryDataMode = value;\n\t};\n\n\tconst setPushRef = (value: string) => {\n\t\tstate.value.pushRef = value;\n\t};\n\n\tconst setPublicApiPath = (value: string) => {\n\t\tstate.value.publicApiPath = value;\n\t};\n\n\t// #endregion\n\n\treturn {\n\t\tbaseUrl,\n\t\tformUrl,\n\t\tformTestUrl,\n\t\tformWaitingUrl,\n\t\tmcpUrl,\n\t\tmcpTestUrl,\n\t\twebhookUrl,\n\t\twebhookTestUrl,\n\t\twebhookWaitingUrl,\n\t\trestUrl,\n\t\trestApiContext,\n\t\tpublicApiContext,\n\t\turlBaseEditor,\n\t\turlBaseWebhook,\n\t\tversionCli,\n\t\tinstanceId,\n\t\tpushRef,\n\t\tdefaultLocale,\n\t\tbinaryDataMode,\n\t\tOAuthCallbackUrls,\n\t\tjwksUri,\n\t\texecutionTimeout,\n\t\tmaxExecutionTimeout,\n\t\ttimezone,\n\t\tsetUrlBaseWebhook,\n\t\tsetUrlBaseEditor,\n\t\tsetUrlBaseWebhookTest,\n\t\tsetEndpointForm,\n\t\tsetEndpointFormTest,\n\t\tsetEndpointFormWaiting,\n\t\tsetEndpointWebhook,\n\t\tsetEndpointWebhookTest,\n\t\tsetEndpointWebhookWaiting,\n\t\tsetEndpointMcp,\n\t\tsetEndpointMcpTest,\n\t\tsetTimezone,\n\t\tsetExecutionTimeout,\n\t\tsetMaxExecutionTimeout,\n\t\tsetVersionCli,\n\t\tsetInstanceId,\n\t\tsetOauthCallbackUrls,\n\t\tsetJwksUri,\n\t\tsetN8nMetadata,\n\t\tsetDefaultLocale,\n\t\tsetBinaryDataMode,\n\t\tsetPushRef,\n\t\tsetPublicApiPath,\n\t};\n});\n"],"mappings":";;;;;;;;AAOA,MAAM,EAAE,4BAAqC;AAgC7C,MAAa,sCAA2BA,yBAAO,YAAY;CAC1D,MAAM,qBAA4B;EACjC,SAAS,wBAAwB,OAAO;EACxC,cAAcC,2CAAqB,gBAAgB,IAAI;EACvD,eAAe;EACf,cAAc;EACd,kBAAkB;EAClB,qBAAqB;EACrB,aAAa;EACb,iBAAiB;EACjB,iBAAiB;EACjB,qBAAqB;EACrB,wBAAwB;EACxB,UAAU;EACV,kBAAkB;EAClB,qBAAqB,OAAO;EAC5B,YAAY;EACZ,mBAAmB,EAAE;EACrB,SAAS;EACT,aAAa,EAAE;EACf,wCAAsB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AACxC,QAAM,MAAM,aAAa;;CAG1B,MAAM,wBAAwB,UAA+C;AAC5E,QAAM,MAAM,oBAAoB;;CAGjC,MAAM,cAAc,UAAkB;AACrC,QAAM,MAAM,UAAU;;CAGvB,MAAM,kBAAkB,UAAyC;AAChE,QAAM,MAAM,cAAc;;CAG3B,MAAM,oBAAoB,UAAkB;AAC3C,QAAM,MAAM,gBAAgB;;CAG7B,MAAM,qBAAqB,UAA4C;AACtE,QAAM,MAAM,iBAAiB;;CAG9B,MAAM,cAAc,UAAkB;AACrC,QAAM,MAAM,UAAU;;CAGvB,MAAM,oBAAoB,UAAkB;AAC3C,QAAM,MAAM,gBAAgB;;AAK7B,QAAO;EACN;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA"}
1
+ {"version":3,"file":"useRootStore2.cjs","names":["STORES","getConfigFromMetaTag"],"sources":["../src/useRootStore.ts"],"sourcesContent":["import type { PublicApiContext } from '@n8n/rest-api-client';\nimport { randomString, setGlobalState } from 'n8n-workflow';\nimport { defineStore } from 'pinia';\nimport { computed, ref } from 'vue';\n\nimport { STORES } from './constants';\nimport { getConfigFromMetaTag } from './metaTagConfig';\n\nconst { VUE_APP_URL_BASE_API } = import.meta.env;\n\nexport type RootStoreState = {\n\tbaseUrl: string;\n\trestEndpoint: string;\n\tdefaultLocale: string;\n\tendpointForm: string;\n\tendpointFormTest: string;\n\tendpointFormWaiting: string;\n\tendpointMcp: string;\n\tendpointMcpTest: string;\n\tendpointWebhook: string;\n\tendpointWebhookTest: string;\n\tendpointWebhookWaiting: string;\n\ttimezone: string;\n\texecutionTimeout: number;\n\tmaxExecutionTimeout: number;\n\tversionCli: string;\n\toauthCallbackUrls: object;\n\tjwksUri: string;\n\tn8nMetadata: {\n\t\t[key: string]: string | number | undefined;\n\t};\n\tpushRef: string;\n\tpublicApiPath: string;\n\turlBaseWebhook: string;\n\turlBaseEditor: string;\n\turlBaseWebhookTest: string;\n\tinstanceId: string;\n\tbinaryDataMode: 'default' | 'filesystem' | 's3' | 'azure' | 'database';\n};\n\nexport const useRootStore = defineStore(STORES.ROOT, () => {\n\tconst state = ref<RootStoreState>({\n\t\tbaseUrl: VUE_APP_URL_BASE_API ?? window.BASE_PATH,\n\t\trestEndpoint: getConfigFromMetaTag('rest-endpoint') ?? 'rest',\n\t\tdefaultLocale: 'en',\n\t\tendpointForm: 'form',\n\t\tendpointFormTest: 'form-test',\n\t\tendpointFormWaiting: 'form-waiting',\n\t\tendpointMcp: 'mcp',\n\t\tendpointMcpTest: 'mcp-test',\n\t\tendpointWebhook: 'webhook',\n\t\tendpointWebhookTest: 'webhook-test',\n\t\tendpointWebhookWaiting: 'webhook-waiting',\n\t\ttimezone: 'America/New_York',\n\t\texecutionTimeout: -1,\n\t\tmaxExecutionTimeout: Number.MAX_SAFE_INTEGER,\n\t\tversionCli: '0.0.0',\n\t\toauthCallbackUrls: {},\n\t\tjwksUri: '',\n\t\tn8nMetadata: {},\n\t\tpushRef: randomString(10).toLowerCase(),\n\t\tpublicApiPath: 'api/v1',\n\t\turlBaseWebhook: 'http://localhost:5678/',\n\t\turlBaseEditor: 'http://localhost:5678',\n\t\turlBaseWebhookTest: 'http://localhost:5678/',\n\t\tinstanceId: '',\n\t\tbinaryDataMode: 'default',\n\t});\n\n\t// ---------------------------------------------------------------------------\n\t// #region Computed\n\t// ---------------------------------------------------------------------------\n\n\tconst baseUrl = computed(() => state.value.baseUrl);\n\n\tconst formUrl = computed(() => `${state.value.urlBaseWebhook}${state.value.endpointForm}`);\n\n\tconst formTestUrl = computed(\n\t\t() => `${state.value.urlBaseWebhookTest}${state.value.endpointFormTest}`,\n\t);\n\n\tconst formWaitingUrl = computed(\n\t\t() => `${state.value.urlBaseEditor}${state.value.endpointFormWaiting}`,\n\t);\n\n\tconst webhookUrl = computed(() => `${state.value.urlBaseWebhook}${state.value.endpointWebhook}`);\n\n\tconst webhookTestUrl = computed(\n\t\t() => `${state.value.urlBaseWebhookTest}${state.value.endpointWebhookTest}`,\n\t);\n\n\tconst webhookWaitingUrl = computed(\n\t\t() => `${state.value.urlBaseEditor}${state.value.endpointWebhookWaiting}`,\n\t);\n\n\tconst mcpUrl = computed(() => `${state.value.urlBaseWebhook}${state.value.endpointMcp}`);\n\n\tconst mcpTestUrl = computed(\n\t\t() => `${state.value.urlBaseWebhookTest}${state.value.endpointMcpTest}`,\n\t);\n\n\tconst pushRef = computed(() => state.value.pushRef);\n\n\tconst binaryDataMode = computed(() => state.value.binaryDataMode);\n\n\tconst defaultLocale = computed(() => state.value.defaultLocale);\n\n\tconst urlBaseEditor = computed(() => state.value.urlBaseEditor);\n\n\tconst urlBaseWebhook = computed(() => state.value.urlBaseWebhook);\n\n\tconst instanceId = computed(() => state.value.instanceId);\n\n\tconst versionCli = computed(() => state.value.versionCli);\n\n\tconst OAuthCallbackUrls = computed(() => state.value.oauthCallbackUrls);\n\n\tconst jwksUri = computed(() => state.value.jwksUri);\n\n\tconst restUrl = computed(() => `${state.value.baseUrl}${state.value.restEndpoint}`);\n\n\tconst executionTimeout = computed(() => state.value.executionTimeout);\n\n\tconst maxExecutionTimeout = computed(() => state.value.maxExecutionTimeout);\n\n\tconst timezone = computed(() => state.value.timezone);\n\n\tconst restApiContext = computed(() => ({\n\t\tbaseUrl: restUrl.value,\n\t\tpushRef: state.value.pushRef,\n\t}));\n\n\tconst publicApiContext = computed<PublicApiContext>(() => ({\n\t\tbaseUrl: `${state.value.baseUrl}${state.value.publicApiPath}`,\n\t}));\n\n\t// #endregion\n\n\t// ---------------------------------------------------------------------------\n\t// #region Methods\n\t// ---------------------------------------------------------------------------\n\n\tconst setUrlBaseWebhook = (value: string) => {\n\t\tconst url = value.endsWith('/') ? value : `${value}/`;\n\t\tstate.value.urlBaseWebhook = url;\n\t};\n\n\tconst setUrlBaseEditor = (value: string) => {\n\t\tconst url = value.endsWith('/') ? value : `${value}/`;\n\t\tstate.value.urlBaseEditor = url;\n\t};\n\n\tconst setUrlBaseWebhookTest = (value: string) => {\n\t\tconst url = value.endsWith('/') ? value : `${value}/`;\n\t\tstate.value.urlBaseWebhookTest = url;\n\t};\n\n\tconst setEndpointForm = (value: string) => {\n\t\tstate.value.endpointForm = value;\n\t};\n\n\tconst setEndpointFormTest = (value: string) => {\n\t\tstate.value.endpointFormTest = value;\n\t};\n\n\tconst setEndpointFormWaiting = (value: string) => {\n\t\tstate.value.endpointFormWaiting = value;\n\t};\n\n\tconst setEndpointWebhook = (value: string) => {\n\t\tstate.value.endpointWebhook = value;\n\t};\n\n\tconst setEndpointWebhookTest = (value: string) => {\n\t\tstate.value.endpointWebhookTest = value;\n\t};\n\n\tconst setEndpointWebhookWaiting = (value: string) => {\n\t\tstate.value.endpointWebhookWaiting = value;\n\t};\n\n\tconst setEndpointMcp = (value: string) => {\n\t\tstate.value.endpointMcp = value;\n\t};\n\n\tconst setEndpointMcpTest = (value: string) => {\n\t\tstate.value.endpointMcpTest = value;\n\t};\n\n\tconst setTimezone = (value: string) => {\n\t\tstate.value.timezone = value;\n\t\tsetGlobalState({ defaultTimezone: value });\n\t};\n\n\tconst setExecutionTimeout = (value: number) => {\n\t\tstate.value.executionTimeout = value;\n\t};\n\n\tconst setMaxExecutionTimeout = (value: number) => {\n\t\tstate.value.maxExecutionTimeout = value;\n\t};\n\n\tconst setVersionCli = (value: string) => {\n\t\tstate.value.versionCli = value;\n\t};\n\n\tconst setInstanceId = (value: string) => {\n\t\tstate.value.instanceId = value;\n\t};\n\n\tconst setOauthCallbackUrls = (value: RootStoreState['oauthCallbackUrls']) => {\n\t\tstate.value.oauthCallbackUrls = value;\n\t};\n\n\tconst setJwksUri = (value: string) => {\n\t\tstate.value.jwksUri = value;\n\t};\n\n\tconst setN8nMetadata = (value: RootStoreState['n8nMetadata']) => {\n\t\tstate.value.n8nMetadata = value;\n\t};\n\n\tconst setDefaultLocale = (value: string) => {\n\t\tstate.value.defaultLocale = value;\n\t};\n\n\tconst setBinaryDataMode = (value: RootStoreState['binaryDataMode']) => {\n\t\tstate.value.binaryDataMode = value;\n\t};\n\n\tconst setPushRef = (value: string) => {\n\t\tstate.value.pushRef = value;\n\t};\n\n\tconst setPublicApiPath = (value: string) => {\n\t\tstate.value.publicApiPath = value;\n\t};\n\n\t// #endregion\n\n\treturn {\n\t\tbaseUrl,\n\t\tformUrl,\n\t\tformTestUrl,\n\t\tformWaitingUrl,\n\t\tmcpUrl,\n\t\tmcpTestUrl,\n\t\twebhookUrl,\n\t\twebhookTestUrl,\n\t\twebhookWaitingUrl,\n\t\trestUrl,\n\t\trestApiContext,\n\t\tpublicApiContext,\n\t\turlBaseEditor,\n\t\turlBaseWebhook,\n\t\tversionCli,\n\t\tinstanceId,\n\t\tpushRef,\n\t\tdefaultLocale,\n\t\tbinaryDataMode,\n\t\tOAuthCallbackUrls,\n\t\tjwksUri,\n\t\texecutionTimeout,\n\t\tmaxExecutionTimeout,\n\t\ttimezone,\n\t\tsetUrlBaseWebhook,\n\t\tsetUrlBaseEditor,\n\t\tsetUrlBaseWebhookTest,\n\t\tsetEndpointForm,\n\t\tsetEndpointFormTest,\n\t\tsetEndpointFormWaiting,\n\t\tsetEndpointWebhook,\n\t\tsetEndpointWebhookTest,\n\t\tsetEndpointWebhookWaiting,\n\t\tsetEndpointMcp,\n\t\tsetEndpointMcpTest,\n\t\tsetTimezone,\n\t\tsetExecutionTimeout,\n\t\tsetMaxExecutionTimeout,\n\t\tsetVersionCli,\n\t\tsetInstanceId,\n\t\tsetOauthCallbackUrls,\n\t\tsetJwksUri,\n\t\tsetN8nMetadata,\n\t\tsetDefaultLocale,\n\t\tsetBinaryDataMode,\n\t\tsetPushRef,\n\t\tsetPublicApiPath,\n\t};\n});\n"],"mappings":";;;;;;;;AAQA,MAA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UAAkB;AACzC,QAAM,MAAM,cAAc;;CAG3B,MAAM,sBAAsB,UAAkB;AAC7C,QAAM,MAAM,kBAAkB;;CAG/B,MAAM,eAAe,UAAkB;AACtC,QAAM,MAAM,WAAW;AACvB,mCAAe,EAAE,iBAAiB,OAAO,CAAC;;CAG3C,MAAM,uBAAuB,UAAkB;AAC9C,QAAM,MAAM,mBAAmB;;CAGhC,MAAM,0BAA0B,UAAkB;AACjD,QAAM,MAAM,sBAAsB;;CAGnC,MAAM,iBAAiB,UAAkB;AACxC,QAAM,MAAM,aAAa;;CAG1B,MAAM,iBAAiB,UAAkB;AACxC,QAAM,MAAM,aAAa;;CAG1B,MAAM,wBAAwB,UAA+C;AAC5E,QAAM,MAAM,oBAAoB;;CAGjC,MAAM,cAAc,UAAkB;AACrC,QAAM,MAAM,UAAU;;CAGvB,MAAM,kBAAkB,UAAyC;AAChE,QAAM,MAAM,cAAc;;CAG3B,MAAM,oBAAoB,UAAkB;AAC3C,QAAM,MAAM,gBAAgB;;CAG7B,MAAM,qBAAqB,UAA4C;AACtE,QAAM,MAAM,iBAAiB;;CAG9B,MAAM,cAAc,UAAkB;AACrC,QAAM,MAAM,UAAU;;CAGvB,MAAM,oBAAoB,UAAkB;AAC3C,QAAM,MAAM,gBAAgB;;AAK7B,QAAO;EACN;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA"}
@@ -1 +1 @@
1
- {"version":3,"file":"useRootStore2.mjs","names":[],"sources":["../src/useRootStore.ts"],"sourcesContent":["import { randomString, setGlobalState } from 'n8n-workflow';\nimport { defineStore } from 'pinia';\nimport { computed, ref } from 'vue';\n\nimport { STORES } from './constants';\nimport { getConfigFromMetaTag } from './metaTagConfig';\n\nconst { VUE_APP_URL_BASE_API } = import.meta.env;\n\nexport type RootStoreState = {\n\tbaseUrl: string;\n\trestEndpoint: string;\n\tdefaultLocale: string;\n\tendpointForm: string;\n\tendpointFormTest: string;\n\tendpointFormWaiting: string;\n\tendpointMcp: string;\n\tendpointMcpTest: string;\n\tendpointWebhook: string;\n\tendpointWebhookTest: string;\n\tendpointWebhookWaiting: string;\n\ttimezone: string;\n\texecutionTimeout: number;\n\tmaxExecutionTimeout: number;\n\tversionCli: string;\n\toauthCallbackUrls: object;\n\tjwksUri: string;\n\tn8nMetadata: {\n\t\t[key: string]: string | number | undefined;\n\t};\n\tpushRef: string;\n\tpublicApiPath: string;\n\turlBaseWebhook: string;\n\turlBaseEditor: string;\n\turlBaseWebhookTest: string;\n\tinstanceId: string;\n\tbinaryDataMode: 'default' | 'filesystem' | 's3' | 'azure' | 'database';\n};\n\nexport const useRootStore = defineStore(STORES.ROOT, () => {\n\tconst state = ref<RootStoreState>({\n\t\tbaseUrl: VUE_APP_URL_BASE_API ?? window.BASE_PATH,\n\t\trestEndpoint: getConfigFromMetaTag('rest-endpoint') ?? 'rest',\n\t\tdefaultLocale: 'en',\n\t\tendpointForm: 'form',\n\t\tendpointFormTest: 'form-test',\n\t\tendpointFormWaiting: 'form-waiting',\n\t\tendpointMcp: 'mcp',\n\t\tendpointMcpTest: 'mcp-test',\n\t\tendpointWebhook: 'webhook',\n\t\tendpointWebhookTest: 'webhook-test',\n\t\tendpointWebhookWaiting: 'webhook-waiting',\n\t\ttimezone: 'America/New_York',\n\t\texecutionTimeout: -1,\n\t\tmaxExecutionTimeout: Number.MAX_SAFE_INTEGER,\n\t\tversionCli: '0.0.0',\n\t\toauthCallbackUrls: {},\n\t\tjwksUri: '',\n\t\tn8nMetadata: {},\n\t\tpushRef: randomString(10).toLowerCase(),\n\t\tpublicApiPath: 'api/v1',\n\t\turlBaseWebhook: 'http://localhost:5678/',\n\t\turlBaseEditor: 'http://localhost:5678',\n\t\turlBaseWebhookTest: 'http://localhost:5678/',\n\t\tinstanceId: '',\n\t\tbinaryDataMode: 'default',\n\t});\n\n\t// ---------------------------------------------------------------------------\n\t// #region Computed\n\t// ---------------------------------------------------------------------------\n\n\tconst baseUrl = computed(() => state.value.baseUrl);\n\n\tconst formUrl = computed(() => `${state.value.urlBaseWebhook}${state.value.endpointForm}`);\n\n\tconst formTestUrl = computed(\n\t\t() => `${state.value.urlBaseWebhookTest}${state.value.endpointFormTest}`,\n\t);\n\n\tconst formWaitingUrl = computed(\n\t\t() => `${state.value.urlBaseEditor}${state.value.endpointFormWaiting}`,\n\t);\n\n\tconst webhookUrl = computed(() => `${state.value.urlBaseWebhook}${state.value.endpointWebhook}`);\n\n\tconst webhookTestUrl = computed(\n\t\t() => `${state.value.urlBaseWebhookTest}${state.value.endpointWebhookTest}`,\n\t);\n\n\tconst webhookWaitingUrl = computed(\n\t\t() => `${state.value.urlBaseEditor}${state.value.endpointWebhookWaiting}`,\n\t);\n\n\tconst mcpUrl = computed(() => `${state.value.urlBaseWebhook}${state.value.endpointMcp}`);\n\n\tconst mcpTestUrl = computed(\n\t\t() => `${state.value.urlBaseWebhookTest}${state.value.endpointMcpTest}`,\n\t);\n\n\tconst pushRef = computed(() => state.value.pushRef);\n\n\tconst binaryDataMode = computed(() => state.value.binaryDataMode);\n\n\tconst defaultLocale = computed(() => state.value.defaultLocale);\n\n\tconst urlBaseEditor = computed(() => state.value.urlBaseEditor);\n\n\tconst urlBaseWebhook = computed(() => state.value.urlBaseWebhook);\n\n\tconst instanceId = computed(() => state.value.instanceId);\n\n\tconst versionCli = computed(() => state.value.versionCli);\n\n\tconst OAuthCallbackUrls = computed(() => state.value.oauthCallbackUrls);\n\n\tconst jwksUri = computed(() => state.value.jwksUri);\n\n\tconst restUrl = computed(() => `${state.value.baseUrl}${state.value.restEndpoint}`);\n\n\tconst executionTimeout = computed(() => state.value.executionTimeout);\n\n\tconst maxExecutionTimeout = computed(() => state.value.maxExecutionTimeout);\n\n\tconst timezone = computed(() => state.value.timezone);\n\n\tconst restApiContext = computed(() => ({\n\t\tbaseUrl: restUrl.value,\n\t\tpushRef: state.value.pushRef,\n\t}));\n\n\tconst publicApiContext = computed(() => ({\n\t\tbaseUrl: `${state.value.baseUrl}${state.value.publicApiPath}`,\n\t}));\n\n\t// #endregion\n\n\t// ---------------------------------------------------------------------------\n\t// #region Methods\n\t// ---------------------------------------------------------------------------\n\n\tconst setUrlBaseWebhook = (value: string) => {\n\t\tconst url = value.endsWith('/') ? value : `${value}/`;\n\t\tstate.value.urlBaseWebhook = url;\n\t};\n\n\tconst setUrlBaseEditor = (value: string) => {\n\t\tconst url = value.endsWith('/') ? value : `${value}/`;\n\t\tstate.value.urlBaseEditor = url;\n\t};\n\n\tconst setUrlBaseWebhookTest = (value: string) => {\n\t\tconst url = value.endsWith('/') ? value : `${value}/`;\n\t\tstate.value.urlBaseWebhookTest = url;\n\t};\n\n\tconst setEndpointForm = (value: string) => {\n\t\tstate.value.endpointForm = value;\n\t};\n\n\tconst setEndpointFormTest = (value: string) => {\n\t\tstate.value.endpointFormTest = value;\n\t};\n\n\tconst setEndpointFormWaiting = (value: string) => {\n\t\tstate.value.endpointFormWaiting = value;\n\t};\n\n\tconst setEndpointWebhook = (value: string) => {\n\t\tstate.value.endpointWebhook = value;\n\t};\n\n\tconst setEndpointWebhookTest = (value: string) => {\n\t\tstate.value.endpointWebhookTest = value;\n\t};\n\n\tconst setEndpointWebhookWaiting = (value: string) => {\n\t\tstate.value.endpointWebhookWaiting = value;\n\t};\n\n\tconst setEndpointMcp = (value: string) => {\n\t\tstate.value.endpointMcp = value;\n\t};\n\n\tconst setEndpointMcpTest = (value: string) => {\n\t\tstate.value.endpointMcpTest = value;\n\t};\n\n\tconst setTimezone = (value: string) => {\n\t\tstate.value.timezone = value;\n\t\tsetGlobalState({ defaultTimezone: value });\n\t};\n\n\tconst setExecutionTimeout = (value: number) => {\n\t\tstate.value.executionTimeout = value;\n\t};\n\n\tconst setMaxExecutionTimeout = (value: number) => {\n\t\tstate.value.maxExecutionTimeout = value;\n\t};\n\n\tconst setVersionCli = (value: string) => {\n\t\tstate.value.versionCli = value;\n\t};\n\n\tconst setInstanceId = (value: string) => {\n\t\tstate.value.instanceId = value;\n\t};\n\n\tconst setOauthCallbackUrls = (value: RootStoreState['oauthCallbackUrls']) => {\n\t\tstate.value.oauthCallbackUrls = value;\n\t};\n\n\tconst setJwksUri = (value: string) => {\n\t\tstate.value.jwksUri = value;\n\t};\n\n\tconst setN8nMetadata = (value: RootStoreState['n8nMetadata']) => {\n\t\tstate.value.n8nMetadata = value;\n\t};\n\n\tconst setDefaultLocale = (value: string) => {\n\t\tstate.value.defaultLocale = value;\n\t};\n\n\tconst setBinaryDataMode = (value: RootStoreState['binaryDataMode']) => {\n\t\tstate.value.binaryDataMode = value;\n\t};\n\n\tconst setPushRef = (value: string) => {\n\t\tstate.value.pushRef = value;\n\t};\n\n\tconst setPublicApiPath = (value: string) => {\n\t\tstate.value.publicApiPath = value;\n\t};\n\n\t// #endregion\n\n\treturn {\n\t\tbaseUrl,\n\t\tformUrl,\n\t\tformTestUrl,\n\t\tformWaitingUrl,\n\t\tmcpUrl,\n\t\tmcpTestUrl,\n\t\twebhookUrl,\n\t\twebhookTestUrl,\n\t\twebhookWaitingUrl,\n\t\trestUrl,\n\t\trestApiContext,\n\t\tpublicApiContext,\n\t\turlBaseEditor,\n\t\turlBaseWebhook,\n\t\tversionCli,\n\t\tinstanceId,\n\t\tpushRef,\n\t\tdefaultLocale,\n\t\tbinaryDataMode,\n\t\tOAuthCallbackUrls,\n\t\tjwksUri,\n\t\texecutionTimeout,\n\t\tmaxExecutionTimeout,\n\t\ttimezone,\n\t\tsetUrlBaseWebhook,\n\t\tsetUrlBaseEditor,\n\t\tsetUrlBaseWebhookTest,\n\t\tsetEndpointForm,\n\t\tsetEndpointFormTest,\n\t\tsetEndpointFormWaiting,\n\t\tsetEndpointWebhook,\n\t\tsetEndpointWebhookTest,\n\t\tsetEndpointWebhookWaiting,\n\t\tsetEndpointMcp,\n\t\tsetEndpointMcpTest,\n\t\tsetTimezone,\n\t\tsetExecutionTimeout,\n\t\tsetMaxExecutionTimeout,\n\t\tsetVersionCli,\n\t\tsetInstanceId,\n\t\tsetOauthCallbackUrls,\n\t\tsetJwksUri,\n\t\tsetN8nMetadata,\n\t\tsetDefaultLocale,\n\t\tsetBinaryDataMode,\n\t\tsetPushRef,\n\t\tsetPublicApiPath,\n\t};\n});\n"],"mappings":";;;;;;;AAOA,MAAM,EAAE,yBAAyB,OAAO,KAAK;AAgC7C,MAAa,eAAe,YAAY,OAAO,YAAY;CAC1D,MAAM,QAAQ,IAAoB;EACjC,SAAS,wBAAwB,OAAO;EACxC,cAAc,qBAAqB,gBAAgB,IAAI;EACvD,eAAe;EACf,cAAc;EACd,kBAAkB;EAClB,qBAAqB;EACrB,aAAa;EACb,iBAAiB;EACjB,iBAAiB;EACjB,qBAAqB;EACrB,wBAAwB;EACxB,UAAU;EACV,kBAAkB;EAClB,qBAAqB,OAAO;EAC5B,YAAY;EACZ,mBAAmB,EAAE;EACrB,SAAS;EACT,aAAa,EAAE;EACf,SAAS,aAAa,GAAG,CAAC,aAAa;EACvC,eAAe;EACf,gBAAgB;EAChB,eAAe;EACf,oBAAoB;EACpB,YAAY;EACZ,gBAAgB;EAChB,CAAC;CAMF,MAAM,UAAU,eAAe,MAAM,MAAM,QAAQ;CAEnD,MAAM,UAAU,eAAe,GAAG,MAAM,MAAM,iBAAiB,MAAM,MAAM,eAAe;CAE1F,MAAM,cAAc,eACb,GAAG,MAAM,MAAM,qBAAqB,MAAM,MAAM,mBACtD;CAED,MAAM,iBAAiB,eAChB,GAAG,MAAM,MAAM,gBAAgB,MAAM,MAAM,sBACjD;CAED,MAAM,aAAa,eAAe,GAAG,MAAM,MAAM,iBAAiB,MAAM,MAAM,kBAAkB;CAEhG,MAAM,iBAAiB,eAChB,GAAG,MAAM,MAAM,qBAAqB,MAAM,MAAM,sBACtD;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B,UAAkB;AAC3C,QAAM,MAAM,gBAAgB;;AAK7B,QAAO;EACN;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA"}
1
+ {"version":3,"file":"useRootStore2.mjs","names":[],"sources":["../src/useRootStore.ts"],"sourcesContent":["import type { PublicApiContext } from '@n8n/rest-api-client';\nimport { randomString, setGlobalState } from 'n8n-workflow';\nimport { defineStore } from 'pinia';\nimport { computed, ref } from 'vue';\n\nimport { STORES } from './constants';\nimport { getConfigFromMetaTag } from './metaTagConfig';\n\nconst { VUE_APP_URL_BASE_API } = import.meta.env;\n\nexport type RootStoreState = {\n\tbaseUrl: string;\n\trestEndpoint: string;\n\tdefaultLocale: string;\n\tendpointForm: string;\n\tendpointFormTest: string;\n\tendpointFormWaiting: string;\n\tendpointMcp: string;\n\tendpointMcpTest: string;\n\tendpointWebhook: string;\n\tendpointWebhookTest: string;\n\tendpointWebhookWaiting: string;\n\ttimezone: string;\n\texecutionTimeout: number;\n\tmaxExecutionTimeout: number;\n\tversionCli: string;\n\toauthCallbackUrls: object;\n\tjwksUri: string;\n\tn8nMetadata: {\n\t\t[key: string]: string | number | undefined;\n\t};\n\tpushRef: string;\n\tpublicApiPath: string;\n\turlBaseWebhook: string;\n\turlBaseEditor: string;\n\turlBaseWebhookTest: string;\n\tinstanceId: string;\n\tbinaryDataMode: 'default' | 'filesystem' | 's3' | 'azure' | 'database';\n};\n\nexport const useRootStore = defineStore(STORES.ROOT, () => {\n\tconst state = ref<RootStoreState>({\n\t\tbaseUrl: VUE_APP_URL_BASE_API ?? window.BASE_PATH,\n\t\trestEndpoint: getConfigFromMetaTag('rest-endpoint') ?? 'rest',\n\t\tdefaultLocale: 'en',\n\t\tendpointForm: 'form',\n\t\tendpointFormTest: 'form-test',\n\t\tendpointFormWaiting: 'form-waiting',\n\t\tendpointMcp: 'mcp',\n\t\tendpointMcpTest: 'mcp-test',\n\t\tendpointWebhook: 'webhook',\n\t\tendpointWebhookTest: 'webhook-test',\n\t\tendpointWebhookWaiting: 'webhook-waiting',\n\t\ttimezone: 'America/New_York',\n\t\texecutionTimeout: -1,\n\t\tmaxExecutionTimeout: Number.MAX_SAFE_INTEGER,\n\t\tversionCli: '0.0.0',\n\t\toauthCallbackUrls: {},\n\t\tjwksUri: '',\n\t\tn8nMetadata: {},\n\t\tpushRef: randomString(10).toLowerCase(),\n\t\tpublicApiPath: 'api/v1',\n\t\turlBaseWebhook: 'http://localhost:5678/',\n\t\turlBaseEditor: 'http://localhost:5678',\n\t\turlBaseWebhookTest: 'http://localhost:5678/',\n\t\tinstanceId: '',\n\t\tbinaryDataMode: 'default',\n\t});\n\n\t// ---------------------------------------------------------------------------\n\t// #region Computed\n\t// ---------------------------------------------------------------------------\n\n\tconst baseUrl = computed(() => state.value.baseUrl);\n\n\tconst formUrl = computed(() => `${state.value.urlBaseWebhook}${state.value.endpointForm}`);\n\n\tconst formTestUrl = computed(\n\t\t() => `${state.value.urlBaseWebhookTest}${state.value.endpointFormTest}`,\n\t);\n\n\tconst formWaitingUrl = computed(\n\t\t() => `${state.value.urlBaseEditor}${state.value.endpointFormWaiting}`,\n\t);\n\n\tconst webhookUrl = computed(() => `${state.value.urlBaseWebhook}${state.value.endpointWebhook}`);\n\n\tconst webhookTestUrl = computed(\n\t\t() => `${state.value.urlBaseWebhookTest}${state.value.endpointWebhookTest}`,\n\t);\n\n\tconst webhookWaitingUrl = computed(\n\t\t() => `${state.value.urlBaseEditor}${state.value.endpointWebhookWaiting}`,\n\t);\n\n\tconst mcpUrl = computed(() => `${state.value.urlBaseWebhook}${state.value.endpointMcp}`);\n\n\tconst mcpTestUrl = computed(\n\t\t() => `${state.value.urlBaseWebhookTest}${state.value.endpointMcpTest}`,\n\t);\n\n\tconst pushRef = computed(() => state.value.pushRef);\n\n\tconst binaryDataMode = computed(() => state.value.binaryDataMode);\n\n\tconst defaultLocale = computed(() => state.value.defaultLocale);\n\n\tconst urlBaseEditor = computed(() => state.value.urlBaseEditor);\n\n\tconst urlBaseWebhook = computed(() => state.value.urlBaseWebhook);\n\n\tconst instanceId = computed(() => state.value.instanceId);\n\n\tconst versionCli = computed(() => state.value.versionCli);\n\n\tconst OAuthCallbackUrls = computed(() => state.value.oauthCallbackUrls);\n\n\tconst jwksUri = computed(() => state.value.jwksUri);\n\n\tconst restUrl = computed(() => `${state.value.baseUrl}${state.value.restEndpoint}`);\n\n\tconst executionTimeout = computed(() => state.value.executionTimeout);\n\n\tconst maxExecutionTimeout = computed(() => state.value.maxExecutionTimeout);\n\n\tconst timezone = computed(() => state.value.timezone);\n\n\tconst restApiContext = computed(() => ({\n\t\tbaseUrl: restUrl.value,\n\t\tpushRef: state.value.pushRef,\n\t}));\n\n\tconst publicApiContext = computed<PublicApiContext>(() => ({\n\t\tbaseUrl: `${state.value.baseUrl}${state.value.publicApiPath}`,\n\t}));\n\n\t// #endregion\n\n\t// ---------------------------------------------------------------------------\n\t// #region Methods\n\t// ---------------------------------------------------------------------------\n\n\tconst setUrlBaseWebhook = (value: string) => {\n\t\tconst url = value.endsWith('/') ? value : `${value}/`;\n\t\tstate.value.urlBaseWebhook = url;\n\t};\n\n\tconst setUrlBaseEditor = (value: string) => {\n\t\tconst url = value.endsWith('/') ? value : `${value}/`;\n\t\tstate.value.urlBaseEditor = url;\n\t};\n\n\tconst setUrlBaseWebhookTest = (value: string) => {\n\t\tconst url = value.endsWith('/') ? value : `${value}/`;\n\t\tstate.value.urlBaseWebhookTest = url;\n\t};\n\n\tconst setEndpointForm = (value: string) => {\n\t\tstate.value.endpointForm = value;\n\t};\n\n\tconst setEndpointFormTest = (value: string) => {\n\t\tstate.value.endpointFormTest = value;\n\t};\n\n\tconst setEndpointFormWaiting = (value: string) => {\n\t\tstate.value.endpointFormWaiting = value;\n\t};\n\n\tconst setEndpointWebhook = (value: string) => {\n\t\tstate.value.endpointWebhook = value;\n\t};\n\n\tconst setEndpointWebhookTest = (value: string) => {\n\t\tstate.value.endpointWebhookTest = value;\n\t};\n\n\tconst setEndpointWebhookWaiting = (value: string) => {\n\t\tstate.value.endpointWebhookWaiting = value;\n\t};\n\n\tconst setEndpointMcp = (value: string) => {\n\t\tstate.value.endpointMcp = value;\n\t};\n\n\tconst setEndpointMcpTest = (value: string) => {\n\t\tstate.value.endpointMcpTest = value;\n\t};\n\n\tconst setTimezone = (value: string) => {\n\t\tstate.value.timezone = value;\n\t\tsetGlobalState({ defaultTimezone: value });\n\t};\n\n\tconst setExecutionTimeout = (value: number) => {\n\t\tstate.value.executionTimeout = value;\n\t};\n\n\tconst setMaxExecutionTimeout = (value: number) => {\n\t\tstate.value.maxExecutionTimeout = value;\n\t};\n\n\tconst setVersionCli = (value: string) => {\n\t\tstate.value.versionCli = value;\n\t};\n\n\tconst setInstanceId = (value: string) => {\n\t\tstate.value.instanceId = value;\n\t};\n\n\tconst setOauthCallbackUrls = (value: RootStoreState['oauthCallbackUrls']) => {\n\t\tstate.value.oauthCallbackUrls = value;\n\t};\n\n\tconst setJwksUri = (value: string) => {\n\t\tstate.value.jwksUri = value;\n\t};\n\n\tconst setN8nMetadata = (value: RootStoreState['n8nMetadata']) => {\n\t\tstate.value.n8nMetadata = value;\n\t};\n\n\tconst setDefaultLocale = (value: string) => {\n\t\tstate.value.defaultLocale = value;\n\t};\n\n\tconst setBinaryDataMode = (value: RootStoreState['binaryDataMode']) => {\n\t\tstate.value.binaryDataMode = value;\n\t};\n\n\tconst setPushRef = (value: string) => {\n\t\tstate.value.pushRef = value;\n\t};\n\n\tconst setPublicApiPath = (value: string) => {\n\t\tstate.value.publicApiPath = value;\n\t};\n\n\t// #endregion\n\n\treturn {\n\t\tbaseUrl,\n\t\tformUrl,\n\t\tformTestUrl,\n\t\tformWaitingUrl,\n\t\tmcpUrl,\n\t\tmcpTestUrl,\n\t\twebhookUrl,\n\t\twebhookTestUrl,\n\t\twebhookWaitingUrl,\n\t\trestUrl,\n\t\trestApiContext,\n\t\tpublicApiContext,\n\t\turlBaseEditor,\n\t\turlBaseWebhook,\n\t\tversionCli,\n\t\tinstanceId,\n\t\tpushRef,\n\t\tdefaultLocale,\n\t\tbinaryDataMode,\n\t\tOAuthCallbackUrls,\n\t\tjwksUri,\n\t\texecutionTimeout,\n\t\tmaxExecutionTimeout,\n\t\ttimezone,\n\t\tsetUrlBaseWebhook,\n\t\tsetUrlBaseEditor,\n\t\tsetUrlBaseWebhookTest,\n\t\tsetEndpointForm,\n\t\tsetEndpointFormTest,\n\t\tsetEndpointFormWaiting,\n\t\tsetEndpointWebhook,\n\t\tsetEndpointWebhookTest,\n\t\tsetEndpointWebhookWaiting,\n\t\tsetEndpointMcp,\n\t\tsetEndpointMcpTest,\n\t\tsetTimezone,\n\t\tsetExecutionTimeout,\n\t\tsetMaxExecutionTimeout,\n\t\tsetVersionCli,\n\t\tsetInstanceId,\n\t\tsetOauthCallbackUrls,\n\t\tsetJwksUri,\n\t\tsetN8nMetadata,\n\t\tsetDefaultLocale,\n\t\tsetBinaryDataMode,\n\t\tsetPushRef,\n\t\tsetPublicApiPath,\n\t};\n});\n"],"mappings":";;;;;;;AAQA,MAAM,EAAE,yBAAyB,OAAO,KAAK;AAgC7C,MAAa,eAAe,YAAY,OAAO,YAAY;CAC1D,MAAM,QAAQ,IAAoB;EACjC,SAAS,wBAAwB,OAAO;EACxC,cAAc,qBAAqB,gBAAgB,IAAI;EACvD,eAAe;EACf,cAAc;EACd,kBAAkB;EAClB,qBAAqB;EACrB,aAAa;EACb,iBAAiB;EACjB,iBAAiB;EACjB,qBAAqB;EACrB,wBAAwB;EACxB,UAAU;EACV,kBAAkB;EAClB,qBAAqB,OAAO;EAC5B,YAAY;EACZ,mBAAmB,EAAE;EACrB,SAAS;EACT,aAAa,EAAE;EACf,SAAS,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