@flowrunner/cli 0.1.8 → 0.1.9

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.
@@ -72,7 +72,7 @@ export interface DictionaryResultItem {
72
72
  }
73
73
  export type DictionaryResultItems = DictionaryResultItem[];
74
74
  export interface DictionaryResult {
75
- cursor?: string;
75
+ cursor?: string | null;
76
76
  items: DictionaryResultItems;
77
77
  }
78
78
  export interface DictionaryProps<TShape extends ExtensionShape = AnyShape, TCriteria extends AnySchema = AnySchema> {
@@ -477,7 +477,7 @@ export declare const WorkspaceNotificationTypes: {
477
477
  };
478
478
  readonly ACCESS_KEY_ROTATED: {
479
479
  readonly severity: "critical";
480
- readonly title: "Access key rotated";
480
+ readonly title: "API key regenerated";
481
481
  readonly message: (data: Record<string, unknown>) => string;
482
482
  readonly tags: ["security"];
483
483
  readonly dataSchema: z.ZodObject<{
@@ -806,7 +806,7 @@ export declare const AllNotificationTypes: {
806
806
  };
807
807
  readonly ACCESS_KEY_ROTATED: {
808
808
  readonly severity: "critical";
809
- readonly title: "Access key rotated";
809
+ readonly title: "API key regenerated";
810
810
  readonly message: (data: Record<string, unknown>) => string;
811
811
  readonly tags: ["security"];
812
812
  readonly dataSchema: z.ZodObject<{
@@ -59,7 +59,7 @@ const ext = Flowrunner.createExtension({
59
59
  'X-Api-Key' : context.apiKey,
60
60
  }
61
61
 
62
- return Flowrunner.Request[method.toLowerCase()](`${ context.baseUrl }${ path }`)
62
+ return new Flowrunner.Request(`${ context.baseUrl }${ path }`, method)
63
63
  .set(headers)
64
64
  .query(query)
65
65
  .send(body)
@@ -74,7 +74,7 @@ const ext = Flowrunner.createExtension({
74
74
  : headers
75
75
 
76
76
  try {
77
- return await Flowrunner.Request[method.toLowerCase()](url)
77
+ return await new Flowrunner.Request(url, method)
78
78
  .set(allHeaders)
79
79
  .query(query)
80
80
  .send(body)
@@ -82,7 +82,7 @@ const ext = Flowrunner.createExtension({
82
82
  logger.debug(`[${ method.toUpperCase() }] ${ url } (harness ${ context.harnessVersion })`)
83
83
 
84
84
  try {
85
- return await Flowrunner.Request[method.toLowerCase()](url)
85
+ return await new Flowrunner.Request(url, method)
86
86
  .set(headers)
87
87
  .query(query)
88
88
  .send(body)