@awsless/awsless 0.0.366 → 0.0.368
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/app.json +1 -1
- package/dist/bin.js +662 -261
- package/dist/build-json-schema.js +143 -109
- package/dist/prebuild/rpc/HASH +1 -0
- package/dist/prebuild/rpc/bundle.zip +0 -0
- package/dist/prebuild.js +153 -0
- package/dist/server.d.ts +10 -1
- package/dist/stack.json +1 -1
- package/package.json +12 -10
package/dist/server.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { AwsCredentialIdentityProvider } from '@aws-sdk/types';
|
|
|
2
2
|
import { Mock } from 'vitest';
|
|
3
3
|
import { QoS } from '@awsless/iot';
|
|
4
4
|
export { QoS } from '@awsless/iot';
|
|
5
|
+
import { DurationFormat } from '@awsless/duration';
|
|
5
6
|
|
|
6
7
|
declare const regions: readonly ["us-east-2", "us-east-1", "us-west-1", "us-west-2", "af-south-1", "ap-east-1", "ap-south-2", "ap-southeast-3", "ap-southeast-4", "ap-south-1", "ap-northeast-3", "ap-northeast-2", "ap-southeast-1", "ap-southeast-2", "ap-northeast-1", "ca-central-1", "eu-central-1", "eu-west-1", "eu-west-2", "eu-south-1", "eu-west-3", "eu-south-2", "eu-north-1", "eu-central-2", "me-south-1", "me-central-1", "sa-east-1"];
|
|
7
8
|
type Region = (typeof regions)[number];
|
|
@@ -95,6 +96,14 @@ interface QueueResources {
|
|
|
95
96
|
}
|
|
96
97
|
declare const Queue: QueueResources;
|
|
97
98
|
|
|
99
|
+
type RpcAuthorizerResponse = {
|
|
100
|
+
authorized: false;
|
|
101
|
+
} | {
|
|
102
|
+
authorized: true;
|
|
103
|
+
context?: unknown;
|
|
104
|
+
ttl: DurationFormat;
|
|
105
|
+
};
|
|
106
|
+
|
|
98
107
|
declare const getSearchName: <N extends string, S extends string = "stack">(resourceName: N, stackName?: S) => `app--${S}--search--${N}`;
|
|
99
108
|
declare const getSearchProps: (name: string, stack?: string) => {
|
|
100
109
|
readonly domain: string | undefined;
|
|
@@ -128,4 +137,4 @@ declare const Topic: TopicResources;
|
|
|
128
137
|
declare const APP: "app";
|
|
129
138
|
declare const STACK: "stack";
|
|
130
139
|
|
|
131
|
-
export { APP, Auth, type AuthResources, Cache, type CacheResources, type CommandContext, type CommandHandler, CommandOptions, Config, type ConfigResources, Fn, Function, type FunctionMock, type FunctionMockResponse, type FunctionResources, PubSub, type PublishOptions, Queue, type QueueMock, type QueueMockResponse, type QueueResources, STACK, Search, type SearchResources, Store, type StoreResources, Table, type TableResources, Task, type TaskMock, type TaskMockResponse, type TaskResources, Topic, type TopicMock, type TopicMockResponse, type TopicResources, getAuthProps, getCacheProps, getConfigName, getConfigValue, getFunctionName, getPubSubTopic, getQueueName, getQueueUrl, getSearchName, getSearchProps, getSiteBucketName, getStoreName, getTableName, getTaskName, getTopicName, mockFunction, mockPubSub, mockQueue, mockTask, mockTopic, setConfigValue };
|
|
140
|
+
export { APP, Auth, type AuthResources, Cache, type CacheResources, type CommandContext, type CommandHandler, CommandOptions, Config, type ConfigResources, Fn, Function, type FunctionMock, type FunctionMockResponse, type FunctionResources, PubSub, type PublishOptions, Queue, type QueueMock, type QueueMockResponse, type QueueResources, type RpcAuthorizerResponse, STACK, Search, type SearchResources, Store, type StoreResources, Table, type TableResources, Task, type TaskMock, type TaskMockResponse, type TaskResources, Topic, type TopicMock, type TopicMockResponse, type TopicResources, getAuthProps, getCacheProps, getConfigName, getConfigValue, getFunctionName, getPubSubTopic, getQueueName, getQueueUrl, getSearchName, getSearchProps, getSiteBucketName, getStoreName, getTableName, getTaskName, getTopicName, mockFunction, mockPubSub, mockQueue, mockTask, mockTopic, setConfigValue };
|