@friggframework/core 2.0.0--canary.658.a5177aa.0 → 2.0.0--canary.658.93c8e07.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.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@friggframework/core",
3
3
  "prettier": "@friggframework/prettier-config",
4
- "version": "2.0.0--canary.658.a5177aa.0",
4
+ "version": "2.0.0--canary.658.93c8e07.0",
5
5
  "dependencies": {
6
6
  "@aws-sdk/client-apigatewaymanagementapi": "^3.588.0",
7
7
  "@aws-sdk/client-kms": "^3.588.0",
@@ -47,9 +47,9 @@
47
47
  }
48
48
  },
49
49
  "devDependencies": {
50
- "@friggframework/eslint-config": "2.0.0--canary.658.a5177aa.0",
51
- "@friggframework/prettier-config": "2.0.0--canary.658.a5177aa.0",
52
- "@friggframework/test": "2.0.0--canary.658.a5177aa.0",
50
+ "@friggframework/eslint-config": "2.0.0--canary.658.93c8e07.0",
51
+ "@friggframework/prettier-config": "2.0.0--canary.658.93c8e07.0",
52
+ "@friggframework/test": "2.0.0--canary.658.93c8e07.0",
53
53
  "@prisma/client": "^6.19.3",
54
54
  "@types/lodash": "4.17.15",
55
55
  "@typescript-eslint/eslint-plugin": "^8.0.0",
@@ -89,5 +89,5 @@
89
89
  "publishConfig": {
90
90
  "access": "public"
91
91
  },
92
- "gitHead": "a5177aa26a8c9bd960261cfe19c3c99f08ccc701"
92
+ "gitHead": "93c8e078d4ff1bf00ed831152712b442abe615cd"
93
93
  }
@@ -1,6 +1,6 @@
1
1
  declare module "@friggframework/module-plugin" {
2
2
  import { Delegate, IFriggDelegate } from "@friggframework/core";
3
- import type { RateLimitHint } from "@friggframework/errors";
3
+ import type { RateLimitError, RateLimitHint } from "@friggframework/errors";
4
4
 
5
5
  export interface Credential {
6
6
  id?: string;
@@ -96,6 +96,12 @@ declare module "@friggframework/module-plugin" {
96
96
  parseBody(response: any): Promise<any>;
97
97
  refreshAuth(): Promise<any>;
98
98
  _adoptNewerCredential(): Promise<boolean>;
99
+ /**
100
+ * Tells the integration about a `RateLimitError` the module throws itself.
101
+ * The Requester calls it for its own errors; a module built on a vendor SDK
102
+ * calls it before its own throw.
103
+ */
104
+ _notifyRateLimited(rateLimitError: RateLimitError): Promise<void>;
99
105
 
100
106
  delegate: any;
101
107
  delegateTypes: any[];
@@ -129,6 +135,7 @@ declare module "@friggframework/module-plugin" {
129
135
  _delete(options: RequestOptions): Promise<any>;
130
136
  refreshAuth(): Promise<any>;
131
137
  _adoptNewerCredential(): Promise<boolean>;
138
+ _notifyRateLimited(rateLimitError: RateLimitError): Promise<void>;
132
139
  }
133
140
 
134
141
  type RequestOptions = {