@discordeno/rest 22.0.1-next.4eccbea → 22.0.1-next.4f697a8

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/dist/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ export * from './endpoints.js';
1
2
  export * from './invalidBucket.js';
2
3
  export * from './manager.js';
3
4
  export * from './queue.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,qBAAqB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,qBAAqB,CAAC"}
package/dist/index.js CHANGED
@@ -1,3 +1,4 @@
1
+ export * from './endpoints.js';
1
2
  export * from './invalidBucket.js';
2
3
  export * from './manager.js';
3
4
  export * from './queue.js';
@@ -5,4 +6,4 @@ export * from './routes.js';
5
6
  export * from './types.js';
6
7
  export * from './typings/routes.js';
7
8
 
8
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9pbmRleC50cyJdLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL2ludmFsaWRCdWNrZXQuanMnO1xuZXhwb3J0ICogZnJvbSAnLi9tYW5hZ2VyLmpzJztcbmV4cG9ydCAqIGZyb20gJy4vcXVldWUuanMnO1xuZXhwb3J0ICogZnJvbSAnLi9yb3V0ZXMuanMnO1xuZXhwb3J0ICogZnJvbSAnLi90eXBlcy5qcyc7XG5leHBvcnQgKiBmcm9tICcuL3R5cGluZ3Mvcm91dGVzLmpzJztcbiJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLHFCQUFxQjtBQUNuQyxjQUFjLGVBQWU7QUFDN0IsY0FBYyxhQUFhO0FBQzNCLGNBQWMsY0FBYztBQUM1QixjQUFjLGFBQWE7QUFDM0IsY0FBYyxzQkFBc0IifQ==
9
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9pbmRleC50cyJdLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL2VuZHBvaW50cy5qcyc7XG5leHBvcnQgKiBmcm9tICcuL2ludmFsaWRCdWNrZXQuanMnO1xuZXhwb3J0ICogZnJvbSAnLi9tYW5hZ2VyLmpzJztcbmV4cG9ydCAqIGZyb20gJy4vcXVldWUuanMnO1xuZXhwb3J0ICogZnJvbSAnLi9yb3V0ZXMuanMnO1xuZXhwb3J0ICogZnJvbSAnLi90eXBlcy5qcyc7XG5leHBvcnQgKiBmcm9tICcuL3R5cGluZ3Mvcm91dGVzLmpzJztcbiJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLGlCQUFpQjtBQUMvQixjQUFjLHFCQUFxQjtBQUNuQyxjQUFjLGVBQWU7QUFDN0IsY0FBYyxhQUFhO0FBQzNCLGNBQWMsY0FBYztBQUM1QixjQUFjLGFBQWE7QUFDM0IsY0FBYyxzQkFBc0IifQ==
package/dist/manager.d.ts CHANGED
@@ -8,5 +8,17 @@ export declare const RATE_LIMIT_GLOBAL_HEADER = "x-ratelimit-global";
8
8
  export declare const RATE_LIMIT_BUCKET_HEADER = "x-ratelimit-bucket";
9
9
  export declare const RATE_LIMIT_LIMIT_HEADER = "x-ratelimit-limit";
10
10
  export declare const RATE_LIMIT_SCOPE_HEADER = "x-ratelimit-scope";
11
+ /**
12
+ * The server errors a request is re-sent on.
13
+ *
14
+ * @remarks
15
+ * Both of these come from a gateway sitting in front of the api rather than from the api itself, so the request never reached anything that
16
+ * could act on it and re-sending it cannot execute it twice.
17
+ *
18
+ * `500` and `504` are deliberately not here. A `500` came from the api, which means it did get the request and may have carried part of it
19
+ * out before failing, and a `504` means the api was handed the request and did not answer in time, so it may well have run. Re-sending
20
+ * either could create a second channel for one call.
21
+ */
22
+ export declare const RETRYABLE_SERVER_ERRORS: ReadonlySet<number>;
11
23
  export declare function createRestManager(options: CreateRestManagerOptions): RestManager;
12
24
  //# sourceMappingURL=manager.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"manager.d.ts","sourceRoot":"","sources":["../src/manager.ts"],"names":[],"mappings":"AA2EA,OAAO,KAAK,EAA4B,wBAAwB,EAAsB,WAAW,EAAsB,MAAM,YAAY,CAAC;AAE1I,eAAO,MAAM,mBAAmB,KAAK,CAAC;AACtC,eAAO,MAAM,eAAe,4BAA4B,CAAC;AAEzD,eAAO,MAAM,uBAAuB,uBAAuB,CAAC;AAC5D,eAAO,MAAM,2BAA2B,0BAA0B,CAAC;AACnE,eAAO,MAAM,6BAA6B,4BAA4B,CAAC;AACvE,eAAO,MAAM,wBAAwB,uBAAuB,CAAC;AAC7D,eAAO,MAAM,wBAAwB,uBAAuB,CAAC;AAC7D,eAAO,MAAM,uBAAuB,sBAAsB,CAAC;AAC3D,eAAO,MAAM,uBAAuB,sBAAsB,CAAC;AAE3D,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,wBAAwB,GAAG,WAAW,CAgwDhF"}
1
+ {"version":3,"file":"manager.d.ts","sourceRoot":"","sources":["../src/manager.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAA4B,wBAAwB,EAAE,WAAW,EAAsB,MAAM,YAAY,CAAC;AAEtH,eAAO,MAAM,mBAAmB,KAAK,CAAC;AACtC,eAAO,MAAM,eAAe,4BAA4B,CAAC;AAEz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