@hostwebhook/platform-node 0.4.1 → 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.
|
@@ -98,7 +98,7 @@ export declare const SHOPIFY_CREDENTIAL_TYPE = "shopify_oauth2";
|
|
|
98
98
|
* `read_draft_orders`. (The eight above predate that being written down here
|
|
99
99
|
* and keep both spellings; they are harmless, just redundant.)
|
|
100
100
|
*/
|
|
101
|
-
export declare const SHOPIFY_DEFAULT_SCOPES: readonly ["read_orders", "write_orders", "read_customers", "write_customers", "read_products", "write_products", "read_inventory", "write_inventory", "write_draft_orders", "write_merchant_managed_fulfillment_orders", "write_third_party_fulfillment_orders"];
|
|
101
|
+
export declare const SHOPIFY_DEFAULT_SCOPES: readonly ["read_orders", "write_orders", "read_customers", "write_customers", "read_products", "write_products", "read_inventory", "write_inventory", "write_draft_orders", "write_merchant_managed_fulfillment_orders", "write_third_party_fulfillment_orders", "read_locations"];
|
|
102
102
|
/**
|
|
103
103
|
* Shopify's own pattern for a store domain, anchored at both ends.
|
|
104
104
|
*
|
|
@@ -119,6 +119,12 @@ exports.SHOPIFY_DEFAULT_SCOPES = [
|
|
|
119
119
|
'write_draft_orders',
|
|
120
120
|
'write_merchant_managed_fulfillment_orders',
|
|
121
121
|
'write_third_party_fulfillment_orders',
|
|
122
|
+
/* 2026-09-28: «List locations» (y con ella el id de sede que pide «Adjust
|
|
123
|
+
inventory»). Sin él Shopify contesta ACCESS_DENIED al campo `name` de
|
|
124
|
+
una sede — medido en la tienda de pruebas. Ariel lo declaró y publicó en
|
|
125
|
+
el Dev Dashboard ANTES de este cambio: al revés, el authorize de toda
|
|
126
|
+
tienda habría fallado. */
|
|
127
|
+
'read_locations',
|
|
122
128
|
];
|
|
123
129
|
/**
|
|
124
130
|
* Shopify's own pattern for a store domain, anchored at both ends.
|
package/dist/rate-limiter.d.ts
CHANGED
|
@@ -19,7 +19,7 @@ import { type RateLimitResult } from './un-hueco-se-toma-de-una-vez';
|
|
|
19
19
|
export type { RateLimitResult };
|
|
20
20
|
export declare function checkRateLimit(redis: Redis, webhookId: string, limitPerMinute: number): Promise<RateLimitResult>;
|
|
21
21
|
export declare function checkChatRateLimit(redis: Redis, chatTriggerId: string, scopeKey: string, limitPerMinute: number): Promise<RateLimitResult>;
|
|
22
|
-
export declare function checkOAuthRateLimit(redis: Redis, userId: string, provider: 'google' | 'mcp' | 'atlassian' | 'slack' | 'twitter' | 'mastodon' | 'linkedin' | 'mailchimp' | 'shopify' | 'notion' | 'github' | 'threads' | 'instagram' | 'facebook' | 'discord', limitPerHour: number): Promise<RateLimitResult>;
|
|
22
|
+
export declare function checkOAuthRateLimit(redis: Redis, userId: string, provider: 'google' | 'mcp' | 'atlassian' | 'slack' | 'twitter' | 'mastodon' | 'linkedin' | 'mailchimp' | 'shopify' | 'notion' | 'github' | 'calendly' | 'airtable' | 'threads' | 'instagram' | 'facebook' | 'discord', limitPerHour: number): Promise<RateLimitResult>;
|
|
23
23
|
export declare function checkFlowLinkRateLimit(redis: Redis, organizationId: string, limitPerMinute: number): Promise<RateLimitResult>;
|
|
24
24
|
/** Rate-limit incoming webhook requests at the ingress level. */
|
|
25
25
|
export declare function checkIngressRateLimit(redis: Redis, webhookId: string, limitPerMinute: number): Promise<RateLimitResult>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hostwebhook/platform-node",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.0",
|
|
4
4
|
"description": "Lo que los servicios de HostWebhook comparten del lado de NODE: cifrado y utilidades que no pueden estar escritas dos veces",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|