@yaakapp/api 0.5.3 → 0.6.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.
@@ -171,6 +171,10 @@ export type FormInputBase = {
171
171
  */
172
172
  defaultValue?: string;
173
173
  disabled?: boolean;
174
+ /**
175
+ * Longer description of the input, likely shown in a tooltip
176
+ */
177
+ description?: string;
174
178
  };
175
179
  export type FormInputCheckbox = {
176
180
  /**
@@ -199,6 +203,10 @@ export type FormInputCheckbox = {
199
203
  */
200
204
  defaultValue?: string;
201
205
  disabled?: boolean;
206
+ /**
207
+ * Longer description of the input, likely shown in a tooltip
208
+ */
209
+ description?: string;
202
210
  };
203
211
  export type FormInputEditor = {
204
212
  /**
@@ -241,6 +249,10 @@ export type FormInputEditor = {
241
249
  */
242
250
  defaultValue?: string;
243
251
  disabled?: boolean;
252
+ /**
253
+ * Longer description of the input, likely shown in a tooltip
254
+ */
255
+ description?: string;
244
256
  };
245
257
  export type FormInputFile = {
246
258
  /**
@@ -280,6 +292,10 @@ export type FormInputFile = {
280
292
  */
281
293
  defaultValue?: string;
282
294
  disabled?: boolean;
295
+ /**
296
+ * Longer description of the input, likely shown in a tooltip
297
+ */
298
+ description?: string;
283
299
  };
284
300
  export type FormInputHttpRequest = {
285
301
  /**
@@ -308,6 +324,10 @@ export type FormInputHttpRequest = {
308
324
  */
309
325
  defaultValue?: string;
310
326
  disabled?: boolean;
327
+ /**
328
+ * Longer description of the input, likely shown in a tooltip
329
+ */
330
+ description?: string;
311
331
  };
312
332
  export type FormInputMarkdown = {
313
333
  content: string;
@@ -344,6 +364,10 @@ export type FormInputSelect = {
344
364
  */
345
365
  defaultValue?: string;
346
366
  disabled?: boolean;
367
+ /**
368
+ * Longer description of the input, likely shown in a tooltip
369
+ */
370
+ description?: string;
347
371
  };
348
372
  export type FormInputSelectOption = {
349
373
  label: string;
@@ -389,6 +413,10 @@ export type FormInputText = {
389
413
  */
390
414
  defaultValue?: string;
391
415
  disabled?: boolean;
416
+ /**
417
+ * Longer description of the input, likely shown in a tooltip
418
+ */
419
+ description?: string;
392
420
  };
393
421
  export type GenericCompletionOption = {
394
422
  label: string;
@@ -397,6 +425,12 @@ export type GenericCompletionOption = {
397
425
  type?: CompletionOptionType;
398
426
  boost?: number;
399
427
  };
428
+ export type GetCookieValueRequest = {
429
+ name: string;
430
+ };
431
+ export type GetCookieValueResponse = {
432
+ value: string | null;
433
+ };
400
434
  export type GetHttpAuthenticationConfigRequest = {
401
435
  contextId: string;
402
436
  values: {
@@ -498,6 +532,14 @@ export type InternalEventPayload = {
498
532
  } & SendHttpRequestRequest | {
499
533
  "type": "send_http_request_response";
500
534
  } & SendHttpRequestResponse | {
535
+ "type": "list_cookie_names_request";
536
+ } & ListCookieNamesRequest | {
537
+ "type": "list_cookie_names_response";
538
+ } & ListCookieNamesResponse | {
539
+ "type": "get_cookie_value_request";
540
+ } & GetCookieValueRequest | {
541
+ "type": "get_cookie_value_response";
542
+ } & GetCookieValueResponse | {
501
543
  "type": "get_http_request_actions_request";
502
544
  } & EmptyPayload | {
503
545
  "type": "get_http_request_actions_response";
@@ -581,6 +623,10 @@ export type InternalEventPayload = {
581
623
  "type": "error_response";
582
624
  } & ErrorResponse;
583
625
  export type JsonPrimitive = string | number | boolean | null;
626
+ export type ListCookieNamesRequest = {};
627
+ export type ListCookieNamesResponse = {
628
+ names: Array<string>;
629
+ };
584
630
  export type OpenWindowRequest = {
585
631
  url: string;
586
632
  /**
@@ -22,15 +22,12 @@ export type Folder = {
22
22
  updatedAt: string;
23
23
  workspaceId: string;
24
24
  folderId: string | null;
25
- name: string;
25
+ authentication: Record<string, any>;
26
+ authenticationType: string | null;
26
27
  description: string;
27
- sortPriority: number;
28
- };
29
- export type GrpcMetadataEntry = {
30
- enabled?: boolean;
28
+ headers: Array<HttpRequestHeader>;
31
29
  name: string;
32
- value: string;
33
- id?: string;
30
+ sortPriority: number;
34
31
  };
35
32
  export type GrpcRequest = {
36
33
  model: "grpc_request";
@@ -43,7 +40,7 @@ export type GrpcRequest = {
43
40
  authentication: Record<string, any>;
44
41
  description: string;
45
42
  message: string;
46
- metadata: Array<GrpcMetadataEntry>;
43
+ metadata: Array<HttpRequestHeader>;
47
44
  method: string | null;
48
45
  name: string;
49
46
  service: string | null;
@@ -128,8 +125,11 @@ export type Workspace = {
128
125
  id: string;
129
126
  createdAt: string;
130
127
  updatedAt: string;
131
- name: string;
128
+ authentication: Record<string, any>;
129
+ authenticationType: string | null;
132
130
  description: string;
131
+ headers: Array<HttpRequestHeader>;
132
+ name: string;
133
133
  encryptionKeyChallenge: string | null;
134
134
  settingValidateCertificates: boolean;
135
135
  settingFollowRedirects: boolean;
@@ -1,4 +1,4 @@
1
- import type { FindHttpResponsesRequest, FindHttpResponsesResponse, GetHttpRequestByIdRequest, GetHttpRequestByIdResponse, OpenWindowRequest, PromptTextRequest, PromptTextResponse, RenderHttpRequestRequest, RenderHttpRequestResponse, SendHttpRequestRequest, SendHttpRequestResponse, ShowToastRequest, TemplateRenderRequest, TemplateRenderResponse } from '../bindings/gen_events.ts';
1
+ import type { FindHttpResponsesRequest, FindHttpResponsesResponse, GetCookieValueRequest, GetCookieValueResponse, GetHttpRequestByIdRequest, GetHttpRequestByIdResponse, ListCookieNamesResponse, OpenWindowRequest, PromptTextRequest, PromptTextResponse, RenderHttpRequestRequest, RenderHttpRequestResponse, SendHttpRequestRequest, SendHttpRequestResponse, ShowToastRequest, TemplateRenderRequest, TemplateRenderResponse } from '../bindings/gen_events.ts';
2
2
  export interface Context {
3
3
  clipboard: {
4
4
  copyText(text: string): Promise<void>;
@@ -24,6 +24,10 @@ export interface Context {
24
24
  close: () => void;
25
25
  }>;
26
26
  };
27
+ cookies: {
28
+ listNames(): Promise<ListCookieNamesResponse['names']>;
29
+ getValue(args: GetCookieValueRequest): Promise<GetCookieValueResponse['value']>;
30
+ };
27
31
  httpRequest: {
28
32
  send(args: SendHttpRequestRequest): Promise<SendHttpRequestResponse['httpResponse']>;
29
33
  getById(args: GetHttpRequestByIdRequest): Promise<GetHttpRequestByIdResponse['httpRequest']>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yaakapp/api",
3
- "version": "0.5.3",
3
+ "version": "0.6.0",
4
4
  "main": "lib/index.js",
5
5
  "typings": "./lib/index.d.ts",
6
6
  "files": [