oblaka-iac 0.0.9 → 0.0.11

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,6 +1,6 @@
1
1
  {
2
2
  "name": "oblaka-iac",
3
- "version": "0.0.9",
3
+ "version": "0.0.11",
4
4
  "main": "./src/index.ts",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -0,0 +1,10 @@
1
+ import type { Bindable, Config } from '../types'
2
+
3
+ export class AiGateway implements Bindable {
4
+ configureBinding(args: { config: Config; binding: string; env: string }): Config {
5
+ return {
6
+ ...args.config,
7
+ ai: { binding: args.binding },
8
+ }
9
+ }
10
+ }
@@ -9,6 +9,7 @@ import { VectorizeIndexDestroyer } from './vectorize'
9
9
  import { WorkerDestroyer } from './worker'
10
10
  import { WorkflowDestroyer } from './workflow'
11
11
 
12
+ export * from './ai-gateway'
12
13
  export * from './analytics-engine'
13
14
  export * from './browser'
14
15
  export * from './container'
@@ -13,7 +13,7 @@ interface QueueProducerBindingOptions {
13
13
  }
14
14
 
15
15
  interface QueueConsumerBindingOptions {
16
- type?: string
16
+ type?: 'worker'
17
17
  maxBatchSize?: number
18
18
  maxBatchTimeout?: number
19
19
  maxRetries?: number