@api-client/core 0.3.1 → 0.3.4
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.
- package/build/browser.d.ts +1 -1
- package/build/index.d.ts +2 -2
- package/build/index.js.map +1 -1
- package/build/src/models/Backend.d.ts +22 -0
- package/build/src/runtime/store/StoreSdk.d.ts +192 -12
- package/build/src/runtime/store/StoreSdk.js +592 -53
- package/build/src/runtime/store/StoreSdk.js.map +1 -1
- package/package.json +3 -1
- package/src/data/DataReader.ts +11 -0
- package/src/data/DataUtils.ts +108 -0
- package/src/data/JmesparthReader.ts +26 -0
- package/src/data/Json2Xml.ts +190 -0
- package/src/data/JsonReader.ts +41 -0
- package/src/data/PayloadPointer.ts +48 -0
- package/src/data/RequestDataExtractor.ts +133 -0
- package/src/data/UrlEncodedReader.ts +20 -0
- package/src/data/XmlReader.ts +103 -0
- package/src/events/BaseEvents.ts +259 -0
- package/src/events/CustomEvent.ts +27 -0
- package/src/events/EventTypes.ts +19 -0
- package/src/events/Events.ts +19 -0
- package/src/events/authorization/AuthorizationEventTypes.ts +22 -0
- package/src/events/authorization/AuthorizationEvents.ts +61 -0
- package/src/events/cookies/CookieEventTypes.ts +13 -0
- package/src/events/cookies/CookieEvents.ts +157 -0
- package/src/events/encryption/EncryptionEventTypes.ts +4 -0
- package/src/events/encryption/EncryptionEvents.ts +51 -0
- package/src/events/environment/EnvironmentEventTypes.ts +3 -0
- package/src/events/environment/EnvironmentEvents.ts +24 -0
- package/src/events/models/ClientCertificateEvents.ts +87 -0
- package/src/events/models/ModelEventTypes.ts +47 -0
- package/src/events/models/ModelEvents.ts +7 -0
- package/src/events/models/ProjectEvents.ts +331 -0
- package/src/events/process/ProcessEventTypes.ts +5 -0
- package/src/events/process/ProcessEvents.ts +76 -0
- package/src/events/readme.md +22 -0
- package/src/events/reporting/ReportingEventTypes.ts +3 -0
- package/src/events/reporting/ReportingEvents.ts +28 -0
- package/src/events/telemetry/TelemetryEventTypes.ts +10 -0
- package/src/events/telemetry/TelemetryEvents.ts +156 -0
- package/src/lib/cookies/Cookie.ts +312 -0
- package/src/lib/cookies/Cookies.ts +326 -0
- package/src/lib/cookies/Utils.ts +168 -0
- package/src/lib/headers/Headers.ts +219 -0
- package/src/lib/logging/DefaultLogger.ts +19 -0
- package/src/lib/logging/DummyLogger.ts +21 -0
- package/src/lib/logging/Logger.ts +16 -0
- package/src/lib/transformers/PayloadSerializer.ts +332 -0
- package/src/lib/transformers/Utils.ts +18 -0
- package/src/lib/uuid.ts +40 -0
- package/src/mocking/LegacyInterfaces.ts +52 -0
- package/src/mocking/LegacyMock.ts +37 -0
- package/src/mocking/legacy/Authorization.ts +39 -0
- package/src/mocking/legacy/Certificates.ts +145 -0
- package/src/mocking/legacy/Cookies.ts +51 -0
- package/src/mocking/legacy/HostRules.ts +43 -0
- package/src/mocking/legacy/Http.ts +236 -0
- package/src/mocking/legacy/HttpResponse.ts +106 -0
- package/src/mocking/legacy/RestApi.ts +68 -0
- package/src/mocking/legacy/Urls.ts +44 -0
- package/src/mocking/legacy/Variables.ts +53 -0
- package/src/models/ArcResponse.ts +166 -0
- package/src/models/Authorization.ts +481 -0
- package/src/models/AuthorizationData.ts +60 -0
- package/src/models/Backend.ts +107 -0
- package/src/models/ClientCertificate.ts +68 -0
- package/src/models/Environment.ts +279 -0
- package/src/models/ErrorResponse.ts +101 -0
- package/src/models/HistoryIndex.ts +76 -0
- package/src/models/HistoryRequest.ts +28 -0
- package/src/models/HostRule.ts +163 -0
- package/src/models/HttpCookie.ts +285 -0
- package/src/models/HttpProject.ts +1294 -0
- package/src/models/HttpProjectListItem.ts +23 -0
- package/src/models/HttpRequest.ts +124 -0
- package/src/models/HttpResponse.ts +143 -0
- package/src/models/License.ts +113 -0
- package/src/models/ProjectDefinitionProperty.ts +40 -0
- package/src/models/ProjectFolder.ts +439 -0
- package/src/models/ProjectItem.ts +135 -0
- package/src/models/ProjectParent.ts +113 -0
- package/src/models/ProjectRequest.ts +277 -0
- package/src/models/ProjectSchema.ts +202 -0
- package/src/models/Property.ts +423 -0
- package/src/models/Provider.ts +98 -0
- package/src/models/README.md +20 -0
- package/src/models/Request.ts +452 -0
- package/src/models/RequestActions.ts +163 -0
- package/src/models/RequestAuthorization.ts +115 -0
- package/src/models/RequestConfig.ts +317 -0
- package/src/models/RequestLog.ts +159 -0
- package/src/models/RequestTime.ts +108 -0
- package/src/models/RequestUiMeta.ts +258 -0
- package/src/models/RequestsSize.ts +65 -0
- package/src/models/ResponseAuthorization.ts +104 -0
- package/src/models/ResponseRedirect.ts +158 -0
- package/src/models/RevisionInfo.ts +37 -0
- package/src/models/SentRequest.ts +125 -0
- package/src/models/SerializablePayload.ts +68 -0
- package/src/models/Server.ts +153 -0
- package/src/models/Thing.ts +110 -0
- package/src/models/Url.ts +90 -0
- package/src/models/User.ts +120 -0
- package/src/models/WebApi.ts +234 -0
- package/src/models/WebApiIndex.ts +122 -0
- package/src/models/Workspace.ts +182 -0
- package/src/models/actions/Action.ts +213 -0
- package/src/models/actions/ActionView.ts +40 -0
- package/src/models/actions/Condition.ts +207 -0
- package/src/models/actions/ConditionView.ts +42 -0
- package/src/models/actions/Enums.ts +29 -0
- package/src/models/actions/RunnableAction.ts +144 -0
- package/src/models/actions/runnable/DeleteCookieAction.ts +113 -0
- package/src/models/actions/runnable/Runnable.ts +9 -0
- package/src/models/actions/runnable/SetCookieAction.ts +216 -0
- package/src/models/actions/runnable/SetVariableAction.ts +81 -0
- package/src/models/legacy/DataExport.ts +172 -0
- package/src/models/legacy/Normalizer.ts +110 -0
- package/src/models/legacy/actions/Actions.ts +269 -0
- package/src/models/legacy/authorization/Authorization.ts +572 -0
- package/src/models/legacy/models/ApiTypes.ts +202 -0
- package/src/models/legacy/models/ArcLegacyProject.ts +39 -0
- package/src/models/legacy/models/AuthData.ts +17 -0
- package/src/models/legacy/models/ClientCertificate.ts +95 -0
- package/src/models/legacy/models/Cookies.ts +52 -0
- package/src/models/legacy/models/HostRule.ts +35 -0
- package/src/models/legacy/models/RestApi.ts +49 -0
- package/src/models/legacy/models/UrlHistory.ts +37 -0
- package/src/models/legacy/models/Variable.ts +43 -0
- package/src/models/legacy/models/base.d.ts +95 -0
- package/src/models/legacy/request/ArcRequest.ts +405 -0
- package/src/models/legacy/request/ArcResponse.ts +177 -0
- package/src/models/legacy/request/HistoryData.ts +47 -0
- package/src/models/legacy/request/Legacy.ts +45 -0
- package/src/models/legacy/request/RequestBody.ts +87 -0
- package/src/models/transformers/ArcDexieTransformer.ts +323 -0
- package/src/models/transformers/ArcLegacyNormalizer.ts +85 -0
- package/src/models/transformers/ArcLegacyTransformer.ts +200 -0
- package/src/models/transformers/ArcPouchTransformer.ts +184 -0
- package/src/models/transformers/BaseTransformer.ts +116 -0
- package/src/models/transformers/ImportUtils.ts +141 -0
- package/src/models/transformers/LegacyDataExportToApiProject.ts +76 -0
- package/src/models/transformers/LegacyExportProcessor.ts +252 -0
- package/src/models/transformers/PostmanBackupTransformer.ts +306 -0
- package/src/models/transformers/PostmanDataTransformer.ts +50 -0
- package/src/models/transformers/PostmanTransformer.ts +106 -0
- package/src/models/transformers/PostmanV21Transformer.ts +311 -0
- package/src/models/transformers/PostmanV2Transformer.ts +308 -0
- package/src/models/transformers/har.ts +865 -0
- package/src/runtime/actions/ActionRunner.ts +83 -0
- package/src/runtime/actions/ConditionRunner.ts +194 -0
- package/src/runtime/actions/RunnableCondition.ts +57 -0
- package/src/runtime/actions/runnable/ActionRunnable.ts +19 -0
- package/src/runtime/actions/runnable/DeleteCookieRunnable.ts +39 -0
- package/src/runtime/actions/runnable/SetCookieRunnable.ts +92 -0
- package/src/runtime/actions/runnable/SetVariableRunnable.ts +53 -0
- package/src/runtime/http-engine/ArcEngine.ts +1064 -0
- package/src/runtime/http-engine/Errors.ts +13 -0
- package/src/runtime/http-engine/FormData.ts +85 -0
- package/src/runtime/http-engine/HttpEngine.ts +874 -0
- package/src/runtime/http-engine/HttpErrorCodes.ts +270 -0
- package/src/runtime/http-engine/NodeEngine.ts +787 -0
- package/src/runtime/http-engine/NodeEngineDirect.ts +476 -0
- package/src/runtime/http-engine/PayloadSupport.ts +84 -0
- package/src/runtime/http-engine/RequestUtils.ts +164 -0
- package/src/runtime/http-engine/ntlm/Des.ts +345 -0
- package/src/runtime/http-engine/ntlm/MD4.ts +135 -0
- package/src/runtime/http-engine/ntlm/NtlmAuth.ts +186 -0
- package/src/runtime/http-engine/ntlm/NtlmMessage.ts +57 -0
- package/src/runtime/modules/BasicAuthCache.ts +133 -0
- package/src/runtime/modules/ExecutionResponse.ts +4 -0
- package/src/runtime/modules/ModulesRegistry.ts +136 -0
- package/src/runtime/modules/RequestAuthorization.ts +110 -0
- package/src/runtime/modules/RequestCookies.ts +145 -0
- package/src/runtime/node/ProjectRunner.ts +275 -0
- package/src/runtime/node/RequestFactory.ts +422 -0
- package/src/runtime/node/VariablesStore.ts +25 -0
- package/src/runtime/store/StoreSdk.ts +838 -0
- package/src/runtime/variables/Cache.ts +53 -0
- package/src/runtime/variables/EvalFunctions.ts +132 -0
- package/src/runtime/variables/ProjectVariables.ts +6 -0
- package/src/runtime/variables/VariablesProcessor.ts +543 -0
- package/src/runtime/variables/VariablesTokenizer.ts +55 -0
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
2
|
+
import { Entity } from './base.js';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* @deprecated
|
|
6
|
+
*/
|
|
7
|
+
export declare class ApiHttpUrl {
|
|
8
|
+
/**
|
|
9
|
+
* The value of the URL.
|
|
10
|
+
*/
|
|
11
|
+
path?: string;
|
|
12
|
+
/**
|
|
13
|
+
* The host value of the URL
|
|
14
|
+
*/
|
|
15
|
+
host?: string;
|
|
16
|
+
/**
|
|
17
|
+
* The protocol value of the URL
|
|
18
|
+
*/
|
|
19
|
+
protocol?: string;
|
|
20
|
+
/**
|
|
21
|
+
* The query parameters.
|
|
22
|
+
*/
|
|
23
|
+
query?: ApiType[];
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* @deprecated
|
|
28
|
+
*/
|
|
29
|
+
export interface EntityTiming {
|
|
30
|
+
/**
|
|
31
|
+
* Timestamp when the project was last updated.
|
|
32
|
+
*/
|
|
33
|
+
updated?: number;
|
|
34
|
+
/**
|
|
35
|
+
* Timestamp when the project was created.
|
|
36
|
+
*/
|
|
37
|
+
created?: number;
|
|
38
|
+
/**
|
|
39
|
+
* A timestamp of the midnight when the object was updated or created
|
|
40
|
+
* (depending on the object).
|
|
41
|
+
*/
|
|
42
|
+
midnight?: number;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* @deprecated
|
|
47
|
+
*/
|
|
48
|
+
export interface ApiServerVariable {
|
|
49
|
+
/**
|
|
50
|
+
* The variable name.
|
|
51
|
+
*/
|
|
52
|
+
name: string;
|
|
53
|
+
/**
|
|
54
|
+
* The description of the variable
|
|
55
|
+
*/
|
|
56
|
+
description?: string;
|
|
57
|
+
/**
|
|
58
|
+
* List of possible values.
|
|
59
|
+
*/
|
|
60
|
+
enum: string[];
|
|
61
|
+
/**
|
|
62
|
+
* The default value of selected variable.
|
|
63
|
+
*/
|
|
64
|
+
default: string;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* A definition of an API server. This is used in the API project to define a base URI for each request.
|
|
69
|
+
* @deprecated
|
|
70
|
+
*/
|
|
71
|
+
export interface ApiServer {
|
|
72
|
+
/**
|
|
73
|
+
* The base URI value. The server can contain variables in form
|
|
74
|
+
* `https://{region}.api.domain.com`. By default each variable is a required string until
|
|
75
|
+
* `variables` property is set.
|
|
76
|
+
*/
|
|
77
|
+
url: string;
|
|
78
|
+
/**
|
|
79
|
+
* A list of variables in the url value.
|
|
80
|
+
*/
|
|
81
|
+
variables?: ApiServerVariable[];
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* The definition of a project folder structure.
|
|
86
|
+
* @deprecated
|
|
87
|
+
*/
|
|
88
|
+
export interface ARCProjectFolder extends EntityTiming {
|
|
89
|
+
/**
|
|
90
|
+
* The name of the project or a folder
|
|
91
|
+
*/
|
|
92
|
+
name: string;
|
|
93
|
+
/**
|
|
94
|
+
* The description of the project or a folder
|
|
95
|
+
*/
|
|
96
|
+
description?: string;
|
|
97
|
+
/**
|
|
98
|
+
* List of folders in this project / folder
|
|
99
|
+
*/
|
|
100
|
+
folders?: ARCProjectFolder[];
|
|
101
|
+
/**
|
|
102
|
+
* The list of request ids associated with the API project.
|
|
103
|
+
* The requests are stored in the `api-request` data store.
|
|
104
|
+
*/
|
|
105
|
+
requests?: string[];
|
|
106
|
+
/**
|
|
107
|
+
* List of tags added to the project.
|
|
108
|
+
*/
|
|
109
|
+
tags?: string[];
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* The new definition of the ARC project that is an API project.
|
|
114
|
+
* @deprecated
|
|
115
|
+
*/
|
|
116
|
+
export interface ARCApiProject extends Entity, ARCProjectFolder {
|
|
117
|
+
/**
|
|
118
|
+
* True when the project is starred by the user.
|
|
119
|
+
*/
|
|
120
|
+
starred?: boolean;
|
|
121
|
+
/**
|
|
122
|
+
* Definition of base servers to be used with the request editor.
|
|
123
|
+
*/
|
|
124
|
+
servers?: ApiServer[];
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
/**
|
|
128
|
+
* @deprecated
|
|
129
|
+
*/
|
|
130
|
+
export interface ApiType {
|
|
131
|
+
/**
|
|
132
|
+
* Property name
|
|
133
|
+
*/
|
|
134
|
+
name: string;
|
|
135
|
+
/**
|
|
136
|
+
* Property value
|
|
137
|
+
*/
|
|
138
|
+
value: any;
|
|
139
|
+
/**
|
|
140
|
+
* Property type
|
|
141
|
+
*/
|
|
142
|
+
type?: 'string' | 'integer' | 'float' | 'nil' | 'boolean' | 'date' | 'datetime' | 'time' | 'enum';
|
|
143
|
+
/**
|
|
144
|
+
* Whether the property is enabled. If not set it is assumed the property is enabled.
|
|
145
|
+
*/
|
|
146
|
+
enabled?: boolean;
|
|
147
|
+
/**
|
|
148
|
+
* The default value for the property
|
|
149
|
+
*/
|
|
150
|
+
default?: any;
|
|
151
|
+
/**
|
|
152
|
+
* Enum values for the property.
|
|
153
|
+
*/
|
|
154
|
+
enum?: any|any[];
|
|
155
|
+
/**
|
|
156
|
+
* The description of the property
|
|
157
|
+
*/
|
|
158
|
+
description?: string;
|
|
159
|
+
/**
|
|
160
|
+
* Whether the value id required to be provided. This is used with validation.
|
|
161
|
+
*/
|
|
162
|
+
required?: boolean;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
/**
|
|
166
|
+
* The definition of the API request HTTP properties.
|
|
167
|
+
* @deprecated
|
|
168
|
+
*/
|
|
169
|
+
export interface ApiHttpRequest {
|
|
170
|
+
/**
|
|
171
|
+
* HTTP method name
|
|
172
|
+
*/
|
|
173
|
+
method: string;
|
|
174
|
+
/**
|
|
175
|
+
* The list of headers on the request
|
|
176
|
+
*/
|
|
177
|
+
headers?: ApiType[];
|
|
178
|
+
/**
|
|
179
|
+
* Definition of the API request URL.
|
|
180
|
+
*/
|
|
181
|
+
url: ApiHttpUrl;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
/**
|
|
185
|
+
* An API request object is an entity that only exists inside an API project.
|
|
186
|
+
* The reference is created in an API folder.
|
|
187
|
+
* @deprecated
|
|
188
|
+
*/
|
|
189
|
+
export interface APIRequest extends EntityTiming, Entity {
|
|
190
|
+
/**
|
|
191
|
+
* The request definition for the request editor.
|
|
192
|
+
*/
|
|
193
|
+
http: ApiHttpRequest;
|
|
194
|
+
/**
|
|
195
|
+
* The name of the request
|
|
196
|
+
*/
|
|
197
|
+
name: string;
|
|
198
|
+
/**
|
|
199
|
+
* The description of the request
|
|
200
|
+
*/
|
|
201
|
+
description?: string;
|
|
202
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { Entity } from './base.js';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* The legacy structure of a project.
|
|
5
|
+
* @deprecated
|
|
6
|
+
*/
|
|
7
|
+
export interface ArcLegacyProject {
|
|
8
|
+
/**
|
|
9
|
+
* Project order
|
|
10
|
+
*/
|
|
11
|
+
order?: number;
|
|
12
|
+
/**
|
|
13
|
+
* List of requests associated with the project.
|
|
14
|
+
*/
|
|
15
|
+
requests?: string[];
|
|
16
|
+
/**
|
|
17
|
+
* Timestamp when the project was last updated.
|
|
18
|
+
*/
|
|
19
|
+
updated?: number;
|
|
20
|
+
/**
|
|
21
|
+
* Timestamp when the project was created.
|
|
22
|
+
*/
|
|
23
|
+
created?: number;
|
|
24
|
+
/**
|
|
25
|
+
* The name of the project
|
|
26
|
+
*/
|
|
27
|
+
name: string;
|
|
28
|
+
/**
|
|
29
|
+
* The description of the project
|
|
30
|
+
*/
|
|
31
|
+
description?: string;
|
|
32
|
+
error?: boolean;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* @deprecated
|
|
37
|
+
*/
|
|
38
|
+
export declare interface ARCProject extends ArcLegacyProject, Entity {
|
|
39
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Entity } from './base.js';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @deprecated
|
|
5
|
+
*/
|
|
6
|
+
export declare interface BasicAuthData {
|
|
7
|
+
username?: string;
|
|
8
|
+
password?: string;
|
|
9
|
+
domain?: string;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* @deprecated
|
|
14
|
+
*/
|
|
15
|
+
export declare interface ARCAuthData extends BasicAuthData, Entity {
|
|
16
|
+
|
|
17
|
+
}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { Entity } from './base.js';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Represents a single certificate object (cert/key)
|
|
5
|
+
* @deprecated
|
|
6
|
+
*/
|
|
7
|
+
export interface Certificate {
|
|
8
|
+
/**
|
|
9
|
+
* The certificate to use.
|
|
10
|
+
* The `p12` type certificate must be a Buffer.
|
|
11
|
+
* The model's `get()` method always returns original data type.
|
|
12
|
+
*/
|
|
13
|
+
data: string | ArrayBuffer | Buffer | Uint8Array;
|
|
14
|
+
/**
|
|
15
|
+
* A passphrase to use to unlock the certificate.
|
|
16
|
+
*/
|
|
17
|
+
passphrase?: string;
|
|
18
|
+
/**
|
|
19
|
+
* The original data type of the certificate. This is used by the data store
|
|
20
|
+
* to move between buffers and string values stored in the store.
|
|
21
|
+
* By any means, outside the internal procedure of the data store this
|
|
22
|
+
* filed is always `undefined` and the `data` contains the original data format.
|
|
23
|
+
*/
|
|
24
|
+
type?: string;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Represents a complete certificate configuration required to make
|
|
29
|
+
* a HTTP request.
|
|
30
|
+
* @deprecated
|
|
31
|
+
*/
|
|
32
|
+
export interface RequestCertificate {
|
|
33
|
+
/**
|
|
34
|
+
* Certificate type. Either `p12` or `pem`.
|
|
35
|
+
*/
|
|
36
|
+
type: string;
|
|
37
|
+
/**
|
|
38
|
+
* Certificate or list of certificates to use.
|
|
39
|
+
*/
|
|
40
|
+
cert: Certificate | Certificate[];
|
|
41
|
+
/**
|
|
42
|
+
* Key for the `pem` type certificate.
|
|
43
|
+
*/
|
|
44
|
+
key?: Certificate | Certificate[];
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Client certificate index definition for listings.
|
|
49
|
+
* @deprecated
|
|
50
|
+
*/
|
|
51
|
+
export interface CertificateIndex {
|
|
52
|
+
/**
|
|
53
|
+
* Certificate type. Either `p12` or `pem`.
|
|
54
|
+
*/
|
|
55
|
+
type: string;
|
|
56
|
+
/**
|
|
57
|
+
* Custom name of the certificate.
|
|
58
|
+
*/
|
|
59
|
+
name: string;
|
|
60
|
+
/**
|
|
61
|
+
* Timestamp when the certificate was inserted into the data store.
|
|
62
|
+
* Required when returning a result. Auto-generated when inserting, if missing.
|
|
63
|
+
*/
|
|
64
|
+
created?: number;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* A base client certificate object used in ARC to create / list objects.
|
|
69
|
+
* This is not a data entity but rather something used to outside of a context of a data store.
|
|
70
|
+
* @deprecated
|
|
71
|
+
*/
|
|
72
|
+
export interface ClientCertificate extends RequestCertificate, CertificateIndex {
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* Client certificate index datastore definition. For data entity use `ARCRequestCertificate` definition.
|
|
77
|
+
* @deprecated
|
|
78
|
+
*/
|
|
79
|
+
export interface ARCCertificateIndex extends CertificateIndex, Entity {
|
|
80
|
+
/**
|
|
81
|
+
* In previous version of the application data and index keys were different.
|
|
82
|
+
* This is to accommodate the difference.
|
|
83
|
+
* @deprecated In the current system both data and index uses the same ID. This is left for compatibility purposes only.
|
|
84
|
+
*/
|
|
85
|
+
dataKey?: string;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* The certificate object returned by the PouchDB store.
|
|
90
|
+
* This is the data definition of a certificate data. For index entity use `ARCCertificateIndex` definition.
|
|
91
|
+
* @deprecated
|
|
92
|
+
*/
|
|
93
|
+
export interface ARCRequestCertificate extends RequestCertificate, Entity {
|
|
94
|
+
|
|
95
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A model of a cookie object used by the API Client.
|
|
3
|
+
* @deprecated
|
|
4
|
+
*/
|
|
5
|
+
export interface ARCCookie {
|
|
6
|
+
/**
|
|
7
|
+
* Cookie name
|
|
8
|
+
*/
|
|
9
|
+
name: string;
|
|
10
|
+
/**
|
|
11
|
+
* Cookie value
|
|
12
|
+
*/
|
|
13
|
+
value?: string;
|
|
14
|
+
/**
|
|
15
|
+
* A string representing the domain the cookie belongs to
|
|
16
|
+
* (e.g. "www.google.com", "example.com")
|
|
17
|
+
*/
|
|
18
|
+
domain: string;
|
|
19
|
+
/**
|
|
20
|
+
* Cookie path
|
|
21
|
+
*/
|
|
22
|
+
path: string;
|
|
23
|
+
/**
|
|
24
|
+
* A boolean, `true` if the cookie is a `host-only` cookie
|
|
25
|
+
* (i.e. the request's host must exactly match the domain of the cookie),
|
|
26
|
+
* or `false` otherwise.
|
|
27
|
+
*/
|
|
28
|
+
hostOnly?: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* A boolean, `true` if the cookie is marked as HttpOnly
|
|
31
|
+
* (i.e. the cookie is inaccessible to client-side scripts),
|
|
32
|
+
* or `false` otherwise.
|
|
33
|
+
*/
|
|
34
|
+
httpOnly?: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* A boolean, `true` if the cookie is marked as secure
|
|
37
|
+
* (i.e. its scope is limited to secure channels, typically HTTPS),
|
|
38
|
+
* or `false` otherwise.
|
|
39
|
+
*/
|
|
40
|
+
secure?: boolean;
|
|
41
|
+
/**
|
|
42
|
+
* Whether or not a cookie is a session cookie this means the cookie is
|
|
43
|
+
* deleted when the session ends.
|
|
44
|
+
*
|
|
45
|
+
* Session cookies are not used in the data export.
|
|
46
|
+
*/
|
|
47
|
+
session?: boolean;
|
|
48
|
+
/**
|
|
49
|
+
* A timestamp when the cookie expires
|
|
50
|
+
*/
|
|
51
|
+
expires?: number;
|
|
52
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { Entity } from './base.js';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* ARC host rule definition.
|
|
5
|
+
* @deprecated
|
|
6
|
+
*/
|
|
7
|
+
export declare interface HostRule {
|
|
8
|
+
/**
|
|
9
|
+
* The from rule (may contain asterisks)
|
|
10
|
+
*/
|
|
11
|
+
from: string;
|
|
12
|
+
/**
|
|
13
|
+
* replacement value
|
|
14
|
+
*/
|
|
15
|
+
to: string;
|
|
16
|
+
/**
|
|
17
|
+
* if false the rule is ignored
|
|
18
|
+
*/
|
|
19
|
+
enabled?: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* optional rule description
|
|
22
|
+
*/
|
|
23
|
+
comment?: string;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* @deprecated
|
|
28
|
+
*/
|
|
29
|
+
export declare interface ARCHostRule extends HostRule, Entity {
|
|
30
|
+
/**
|
|
31
|
+
* The timestamp when the rule was updated the last time.
|
|
32
|
+
* This value is created by the model. Not accepted when creating the entity.
|
|
33
|
+
*/
|
|
34
|
+
updated?: number;
|
|
35
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { Entity } from './base';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @deprecated
|
|
5
|
+
*/
|
|
6
|
+
export interface ARCRestApiIndex extends Entity {
|
|
7
|
+
/**
|
|
8
|
+
* API title
|
|
9
|
+
*/
|
|
10
|
+
title: string;
|
|
11
|
+
/**
|
|
12
|
+
* API media type
|
|
13
|
+
*/
|
|
14
|
+
type: string;
|
|
15
|
+
/**
|
|
16
|
+
* API order on the list
|
|
17
|
+
*/
|
|
18
|
+
order: number;
|
|
19
|
+
/**
|
|
20
|
+
* List of version names stored with this API.
|
|
21
|
+
*/
|
|
22
|
+
versions: string[];
|
|
23
|
+
/**
|
|
24
|
+
* The latest added version name.
|
|
25
|
+
*/
|
|
26
|
+
latest: string;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* @deprecated
|
|
31
|
+
*/
|
|
32
|
+
export interface ARCRestApi extends Entity {
|
|
33
|
+
/**
|
|
34
|
+
* The ID of the index item that this entry refers to.
|
|
35
|
+
*/
|
|
36
|
+
indexId: string;
|
|
37
|
+
/**
|
|
38
|
+
* Version name of the API
|
|
39
|
+
*/
|
|
40
|
+
version: string;
|
|
41
|
+
/**
|
|
42
|
+
* API data model. It is the output of the AMF parser run on the API.
|
|
43
|
+
*/
|
|
44
|
+
data: string;
|
|
45
|
+
/**
|
|
46
|
+
* The AMF parser version used to parse this document.
|
|
47
|
+
*/
|
|
48
|
+
amfVersion?: string;
|
|
49
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { Entity } from './base.js';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @deprecated
|
|
5
|
+
*/
|
|
6
|
+
export interface UrlHistory {
|
|
7
|
+
/**
|
|
8
|
+
* A number of times the URL was used
|
|
9
|
+
*/
|
|
10
|
+
cnt: number;
|
|
11
|
+
/**
|
|
12
|
+
* Last use timestamp.
|
|
13
|
+
*/
|
|
14
|
+
time: number;
|
|
15
|
+
/**
|
|
16
|
+
* The request URL stored in the history.
|
|
17
|
+
*/
|
|
18
|
+
url: string;
|
|
19
|
+
/**
|
|
20
|
+
* A timestamp of the midnight that corresponds to the `time` property.
|
|
21
|
+
*/
|
|
22
|
+
midnight: number;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* @deprecated
|
|
27
|
+
*/
|
|
28
|
+
export declare interface ARCUrlHistory extends UrlHistory, Entity {
|
|
29
|
+
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* @deprecated
|
|
34
|
+
*/
|
|
35
|
+
export declare interface ARCWebsocketUrlHistory extends UrlHistory, Entity {
|
|
36
|
+
|
|
37
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/* eslint-disable @typescript-eslint/no-empty-interface */
|
|
2
|
+
import { ApiType } from './ApiTypes.js';
|
|
3
|
+
import { Entity } from './base.js';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* @deprecated
|
|
7
|
+
*/
|
|
8
|
+
export declare interface Environment {
|
|
9
|
+
name: string;
|
|
10
|
+
created?: number;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* @deprecated
|
|
15
|
+
*/
|
|
16
|
+
export declare interface Variable extends ApiType {
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* @deprecated
|
|
21
|
+
*/
|
|
22
|
+
export declare interface ARCEnvironment extends Environment, Entity {
|
|
23
|
+
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* @deprecated
|
|
28
|
+
*/
|
|
29
|
+
export declare interface ARCVariable extends Variable, Entity {
|
|
30
|
+
/**
|
|
31
|
+
* The name of the environment the variable is added to.
|
|
32
|
+
*/
|
|
33
|
+
environment: string;
|
|
34
|
+
/**
|
|
35
|
+
* @deprecated Use `name` instead.
|
|
36
|
+
*/
|
|
37
|
+
variable?: string;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* @deprecated
|
|
42
|
+
*/
|
|
43
|
+
export declare type SystemVariables = Readonly<{[key: string]: string}>;
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @deprecated
|
|
3
|
+
*/
|
|
4
|
+
export declare interface Entity {
|
|
5
|
+
/**
|
|
6
|
+
* Pouch DB datastore `_id`
|
|
7
|
+
*/
|
|
8
|
+
_id?: string;
|
|
9
|
+
/**
|
|
10
|
+
* Pouch DB datastore `_rev` as a revision of the object
|
|
11
|
+
*/
|
|
12
|
+
_rev?: string;
|
|
13
|
+
/**
|
|
14
|
+
* Special flag used by PouchDB to delete an object.
|
|
15
|
+
*/
|
|
16
|
+
_deleted?: boolean;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* @deprecated
|
|
21
|
+
*/
|
|
22
|
+
export declare interface DeletedEntity {
|
|
23
|
+
/**
|
|
24
|
+
* Pouch DB datastore `_id`
|
|
25
|
+
*/
|
|
26
|
+
id: string;
|
|
27
|
+
/**
|
|
28
|
+
* Pouch DB datastore revision of the deleted object
|
|
29
|
+
*/
|
|
30
|
+
rev: string;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* An entity change record base definition
|
|
35
|
+
* @deprecated
|
|
36
|
+
*/
|
|
37
|
+
export declare interface ARCEntityChangeRecord<T> {
|
|
38
|
+
/**
|
|
39
|
+
* The ID of the changed entity
|
|
40
|
+
*/
|
|
41
|
+
id: string;
|
|
42
|
+
/**
|
|
43
|
+
* The revision of the updated entity.
|
|
44
|
+
* It is not set when old revision is unavailable (new entity is created).
|
|
45
|
+
*/
|
|
46
|
+
oldRev?: string;
|
|
47
|
+
/**
|
|
48
|
+
* New revision id of updated entity
|
|
49
|
+
*/
|
|
50
|
+
rev: string;
|
|
51
|
+
/**
|
|
52
|
+
* The updated entity.
|
|
53
|
+
*/
|
|
54
|
+
item?: T;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Event detail object for data store query result object.
|
|
59
|
+
* @deprecated
|
|
60
|
+
*/
|
|
61
|
+
export declare interface ARCModelListResultDetail<T> {
|
|
62
|
+
result: Promise<ARCModelListResult<T>>;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* Base query options for the data store.
|
|
67
|
+
* @deprecated
|
|
68
|
+
*/
|
|
69
|
+
export declare interface ARCModelListOptions {
|
|
70
|
+
/**
|
|
71
|
+
* The number of results per the page.
|
|
72
|
+
*/
|
|
73
|
+
limit?: number;
|
|
74
|
+
/**
|
|
75
|
+
* A string that should be used with pagination.
|
|
76
|
+
*/
|
|
77
|
+
nextPageToken?: string;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* Data store query result object.
|
|
82
|
+
* @deprecated
|
|
83
|
+
*/
|
|
84
|
+
export declare interface ARCModelListResult<T> {
|
|
85
|
+
/**
|
|
86
|
+
* Next page token to be used with pagination.
|
|
87
|
+
* It is not set when the query has not returned any results.
|
|
88
|
+
*/
|
|
89
|
+
nextPageToken?: string;
|
|
90
|
+
/**
|
|
91
|
+
* The list of items in the response.
|
|
92
|
+
* May be empty array when there was no more results.
|
|
93
|
+
*/
|
|
94
|
+
items: T[];
|
|
95
|
+
}
|