firebase-tools 13.17.0 → 13.18.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.
Files changed (35) hide show
  1. package/lib/commands/dataconnect-services-list.js +4 -3
  2. package/lib/commands/dataconnect-sql-grant.js +37 -0
  3. package/lib/commands/dataconnect-sql-migrate.js +2 -1
  4. package/lib/commands/deploy.js +2 -0
  5. package/lib/commands/index.js +1 -0
  6. package/lib/dataconnect/client.js +1 -1
  7. package/lib/dataconnect/dataplaneClient.js +1 -1
  8. package/lib/dataconnect/ensureApis.js +7 -1
  9. package/lib/dataconnect/load.js +3 -1
  10. package/lib/dataconnect/provisionCloudSql.js +34 -21
  11. package/lib/dataconnect/schemaMigration.js +126 -73
  12. package/lib/deploy/dataconnect/deploy.js +16 -13
  13. package/lib/deploy/dataconnect/prepare.js +36 -0
  14. package/lib/deploy/dataconnect/release.js +9 -2
  15. package/lib/deploy/extensions/prepare.js +22 -9
  16. package/lib/deploy/firestore/prepare.js +10 -0
  17. package/lib/deploy/firestore/release.js +3 -6
  18. package/lib/deploy/functions/checkIam.js +7 -2
  19. package/lib/deploy/functions/ensure.js +10 -2
  20. package/lib/deploy/functions/prepare.js +2 -2
  21. package/lib/deploy/index.js +9 -5
  22. package/lib/emulator/downloadableEmulators.js +9 -9
  23. package/lib/firestore/checkDatabaseType.js +10 -3
  24. package/lib/frameworks/angular/index.js +15 -3
  25. package/lib/frameworks/next/utils.js +1 -1
  26. package/lib/gcp/cloudsql/permissions.js +6 -1
  27. package/lib/gcp/secretManager.js +12 -5
  28. package/lib/init/features/dataconnect/index.js +24 -11
  29. package/lib/init/features/firestore/index.js +20 -1
  30. package/lib/init/features/firestore/indexes.js +4 -4
  31. package/package.json +1 -1
  32. package/schema/connector-yaml.json +43 -17
  33. package/templates/init/dataconnect/connector.yaml +0 -1
  34. package/templates/init/dataconnect/dataconnect-fdccompatiblemode.yaml +12 -0
  35. package/templates/init/dataconnect/dataconnect.yaml +1 -1
@@ -43,6 +43,16 @@
43
43
  "description": "Path to the directory where generated files should be written to."
44
44
  }
45
45
  }
46
+ },
47
+ "llmTools": {
48
+ "additionalProperties": true,
49
+ "type": "object",
50
+ "properties": {
51
+ "outputFile": {
52
+ "type": "string",
53
+ "description": "Path where the JSON LLM tool definitions file should be generated."
54
+ }
55
+ }
46
56
  }
47
57
  },
48
58
  "properties": {
@@ -50,35 +60,51 @@
50
60
  "type": "string",
51
61
  "description": "The ID of the Firebase Data Connect connector."
52
62
  },
53
- "authMode": {
54
- "type": "string",
55
- "description": "The authentication strategy to use for this connector"
56
-
57
- },
58
63
  "generate": {
59
64
  "type": "object",
60
65
  "additionalProperties": false,
61
66
  "properties": {
62
67
  "javascriptSdk": {
63
- "type": "array",
64
- "items": {
65
- "$ref": "#/definitions/javascriptSdk"
66
- },
68
+ "oneOf": [
69
+ { "$ref": "#/definitions/javascriptSdk" },
70
+ {
71
+ "type": "array",
72
+ "items": {
73
+ "$ref": "#/definitions/javascriptSdk"
74
+ }
75
+ }
76
+ ],
67
77
  "description": "Configuration for a generated Javascript SDK"
68
78
  },
69
79
  "kotlinSdk": {
70
- "type": "array",
71
- "items": {
72
- "$ref": "#/definitions/kotlinSdk"
73
- },
80
+ "oneOf": [
81
+ { "$ref": "#/definitions/kotlinSdk" },
82
+ {
83
+ "type": "array",
84
+ "items": {
85
+ "$ref": "#/definitions/kotlinSdk"
86
+ }
87
+ }
88
+ ],
74
89
  "description": "Configuration for a generated Kotlin SDK"
75
90
  },
76
91
  "swiftSdk": {
77
- "type": "array",
78
- "items": {
79
- "$ref": "#/definitions/swiftSdk"
80
- },
92
+ "oneOf": [
93
+ { "$ref": "#/definitions/swiftSdk" },
94
+ {
95
+ "type": "array",
96
+ "items": {
97
+ "$ref": "#/definitions/swiftSdk"
98
+ }
99
+ }
100
+ ],
81
101
  "description": "Configuration for a generated Swift SDK"
102
+ },
103
+ "llmTools": {
104
+ "oneOf": [
105
+ { "$ref": "#/definitions/llmTools" },
106
+ { "type": "array", "items": { "$ref": "#/definitions/llmTools" } }
107
+ ]
82
108
  }
83
109
  }
84
110
  }
@@ -1,5 +1,4 @@
1
1
  connectorId: __connectorId__
2
- authMode: "PUBLIC"
3
2
  ## ## Here's an example of how to add generated SDKs.
4
3
  ## ## You'll need to replace the outputDirs with ones pointing to where you want the generated code in your app.
5
4
  # generate:
@@ -0,0 +1,12 @@
1
+ specVersion: "v1alpha"
2
+ serviceId: __serviceId__
3
+ location: __location__
4
+ schema:
5
+ source: "./schema"
6
+ datasource:
7
+ postgresql:
8
+ database: __cloudSqlDatabase__
9
+ cloudSql:
10
+ instanceId: __cloudSqlInstanceId__
11
+ # schemaValidation: "COMPATIBLE"
12
+ connectorDirs: __connectorDirs__
@@ -1,4 +1,4 @@
1
- specVersion: "v1alpha"
1
+ specVersion: "v1beta"
2
2
  serviceId: __serviceId__
3
3
  location: __location__
4
4
  schema: