fix: update enrichments and transforms

This commit is contained in:
joel@joellee.org committed 2023-04-02 21:33:10 +08:00
1 parent 4740dfffa4
commit 0532e9898c
19 files changed
+37036 -28347

No files matched your search

+550 -11
View File
@@ -34,6 +34,12 @@
}
},
"responses": {
"200": {
"description": "",
"content": {
"application/json": { "schema": { "$ref": "#/components/schemas/ProjectResponse" } }
}
},
"201": {
"description": "",
"content": {
@@ -1048,6 +1054,301 @@
"tags": ["vanity subdomain (beta)"],
"security": [{ "bearer": [] }]
}
},
"/v1/projects/{ref}/upgrade": {
"post": {
"operationId": "upgradeProject",
"summary": "Upgrades the project's Postgres version",
"parameters": [
{
"name": "ref",
"required": true,
"in": "path",
"description": "Project ref",
"schema": { "minLength": 20, "maxLength": 20, "type": "string" }
}
],
"requestBody": {
"required": true,
"content": {
"application/json": { "schema": { "$ref": "#/components/schemas/UpgradeDatabaseBody" } }
}
},
"responses": {
"201": { "description": "" },
"403": { "description": "" },
"500": { "description": "Failed to initiate project upgrade" }
},
"tags": ["database version upgrade (beta)"],
"security": [{ "bearer": [] }]
}
},
"/v1/projects/{ref}/upgrade/eligibility": {
"get": {
"operationId": "upgradeEligibilityInformation",
"summary": "Returns the project's eligibility for upgrades",
"parameters": [
{
"name": "ref",
"required": true,
"in": "path",
"description": "Project ref",
"schema": { "minLength": 20, "maxLength": 20, "type": "string" }
}
],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": { "$ref": "#/components/schemas/ProjectUpgradeEligibilityResponse" }
}
}
},
"403": { "description": "" },
"500": { "description": "Failed to determine project upgrade eligibility" }
},
"tags": ["database version upgrade (beta)"],
"security": [{ "bearer": [] }]
}
},
"/v1/projects/{ref}/upgrade/status": {
"get": {
"operationId": "getUpgradeStatus",
"summary": "Gets the latest status of the project's upgrade",
"parameters": [
{
"name": "ref",
"required": true,
"in": "path",
"description": "Project ref",
"schema": { "minLength": 20, "maxLength": 20, "type": "string" }
}
],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": { "$ref": "#/components/schemas/DatabaseUpgradeStatusResponse" }
}
}
},
"403": { "description": "" },
"500": { "description": "Failed to retrieve project upgrade status" }
},
"tags": ["database version upgrade (beta)"],
"security": [{ "bearer": [] }]
}
},
"/v1/projects/{ref}/readonly": {
"get": {
"operationId": "getReadOnlyModeStatus",
"summary": "Returns project's readonly mode status",
"parameters": [
{
"name": "ref",
"required": true,
"in": "path",
"description": "Project ref",
"schema": { "minLength": 20, "maxLength": 20, "type": "string" }
}
],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": { "$ref": "#/components/schemas/ReadOnlyStatusResponse" }
}
}
},
"500": { "description": "Failed to get project readonly mode status" }
},
"tags": ["database readonly mode"],
"security": [{ "bearer": [] }]
}
},
"/v1/projects/{ref}/readonly/temporary-disable": {
"post": {
"operationId": "temporarilyDisableReadonlyMode",
"summary": "Disables project's readonly mode for the next 15 minutes",
"parameters": [
{
"name": "ref",
"required": true,
"in": "path",
"description": "Project ref",
"schema": { "minLength": 20, "maxLength": 20, "type": "string" }
}
],
"responses": {
"201": { "description": "" },
"500": { "description": "Failed to disable project's readonly mode" }
},
"tags": ["database readonly mode"],
"security": [{ "bearer": [] }]
}
},
"/v1/projects/{ref}/config/auth/sso/providers": {
"post": {
"operationId": "createProviderForProject",
"summary": "Creates a new SSO provider",
"parameters": [
{
"name": "ref",
"required": true,
"in": "path",
"description": "Project ref",
"schema": { "minLength": 20, "maxLength": 20, "type": "string" }
}
],
"requestBody": {
"required": true,
"content": {
"application/json": { "schema": { "$ref": "#/components/schemas/CreateProviderBody" } }
}
},
"responses": {
"201": {
"description": "",
"content": {
"application/json": {
"schema": { "$ref": "#/components/schemas/CreateProviderResponse" }
}
}
},
"403": { "description": "" },
"404": { "description": "SAML 2.0 support is not enabled for this project" }
},
"tags": ["sso"],
"security": [{ "bearer": [] }]
},
"get": {
"operationId": "listAllProviders",
"summary": "Lists all SSO providers",
"parameters": [
{
"name": "ref",
"required": true,
"in": "path",
"description": "Project ref",
"schema": { "minLength": 20, "maxLength": 20, "type": "string" }
}
],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": { "$ref": "#/components/schemas/ListProvidersResponse" }
}
}
},
"403": { "description": "" },
"404": { "description": "SAML 2.0 support is not enabled for this project" }
},
"tags": ["sso"],
"security": [{ "bearer": [] }]
}
},
"/v1/projects/{ref}/config/auth/sso/providers/{provider_id}": {
"get": {
"operationId": "getProviderById",
"summary": "Gets a SSO provider by its UUID",
"parameters": [
{
"name": "ref",
"required": true,
"in": "path",
"description": "Project ref",
"schema": { "minLength": 20, "maxLength": 20, "type": "string" }
},
{ "name": "provider_id", "required": true, "in": "path", "schema": { "type": "string" } }
],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": { "$ref": "#/components/schemas/GetProviderResponse" }
}
}
},
"403": { "description": "" },
"404": {
"description": "Either SAML 2.0 was not enabled for this project, or the provider does not exist"
}
},
"tags": ["sso"],
"security": [{ "bearer": [] }]
},
"put": {
"operationId": "updateProviderById",
"summary": "Updates a SSO provider by its UUID",
"parameters": [
{
"name": "ref",
"required": true,
"in": "path",
"description": "Project ref",
"schema": { "minLength": 20, "maxLength": 20, "type": "string" }
},
{ "name": "provider_id", "required": true, "in": "path", "schema": { "type": "string" } }
],
"requestBody": {
"required": true,
"content": {
"application/json": { "schema": { "$ref": "#/components/schemas/UpdateProviderBody" } }
}
},
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": { "$ref": "#/components/schemas/UpdateProviderResponse" }
}
}
},
"403": { "description": "" },
"404": {
"description": "Either SAML 2.0 was not enabled for this project, or the provider does not exist"
}
},
"tags": ["sso"],
"security": [{ "bearer": [] }]
},
"delete": {
"operationId": "removeProviderById",
"summary": "Removes a SSO provider by its UUID",
"parameters": [
{
"name": "ref",
"required": true,
"in": "path",
"description": "Project ref",
"schema": { "minLength": 20, "maxLength": 20, "type": "string" }
},
{ "name": "provider_id", "required": true, "in": "path", "schema": { "type": "string" } }
],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": { "$ref": "#/components/schemas/DeleteProviderResponse" }
}
}
},
"403": { "description": "" },
"404": {
"description": "Either SAML 2.0 was not enabled for this project, or the provider does not exist"
}
},
"tags": ["sso"],
"security": [{ "bearer": [] }]
}
}
},
"info": { "title": "Supabase API (v1)", "description": "", "version": "1.0.0", "contact": {} },
@@ -1061,17 +1362,28 @@
"schemas": {
"DatabaseResponse": {
"type": "object",
"properties": { "host": { "type": "string" }, "version": { "type": "string" } },
"properties": {
"host": { "type": "string", "description": "Database host" },
"version": { "type": "string", "description": "Database version" }
},
"required": ["host", "version"]
},
"ProjectResponse": {
"type": "object",
"properties": {
"id": { "type": "string" },
"organization_id": { "type": "string" },
"name": { "type": "string" },
"region": { "type": "string" },
"created_at": { "type": "string" },
"id": { "type": "string", "description": "Id of your project" },
"organization_id": { "type": "string", "description": "Slug of your organization" },
"name": { "type": "string", "description": "Name of your project" },
"region": {
"type": "string",
"description": "Region of your project",
"example": "us-east-1"
},
"created_at": {
"type": "string",
"description": "Creation timestamp",
"example": "2023-03-29T16:32:59Z"
},
"database": { "$ref": "#/components/schemas/DatabaseResponse" }
},
"required": ["id", "organization_id", "name", "region", "created_at"]
@@ -1079,15 +1391,24 @@
"CreateProjectBody": {
"type": "object",
"properties": {
"db_pass": { "type": "string" },
"name": { "type": "string" },
"organization_id": { "type": "string" },
"plan": { "type": "string", "enum": ["free", "pro"] },
"db_pass": { "type": "string", "description": "Database password" },
"name": {
"type": "string",
"description": "Name of your project, should not contain dots"
},
"organization_id": { "type": "string", "description": "Slug of your organization" },
"plan": {
"type": "string",
"enum": ["free", "pro"],
"description": "Subscription plan",
"example": "free"
},
"region": {
"type": "string",
"enum": [
"us-east-1",
"us-west-1",
"us-west-2",
"ap-southeast-1",
"ap-northeast-1",
"ap-northeast-2",
@@ -1099,7 +1420,9 @@
"ca-central-1",
"ap-south-1",
"sa-east-1"
]
],
"description": "Region you want your server to reside in",
"example": "us-east-1"
},
"kps_enabled": { "type": "boolean" }
},
@@ -1208,6 +1531,7 @@
"properties": {
"entitlement": { "enum": ["disallowed", "allowed"], "type": "string" },
"config": { "$ref": "#/components/schemas/NetworkRestrictionsRequest" },
"old_config": { "$ref": "#/components/schemas/NetworkRestrictionsRequest" },
"status": { "enum": ["stored", "applied"], "type": "string" }
},
"required": ["entitlement", "config", "status"]
@@ -1297,6 +1621,221 @@
"type": "object",
"properties": { "custom_domain": { "type": "string" } },
"required": ["custom_domain"]
},
"UpgradeDatabaseBody": {
"type": "object",
"properties": { "target_version": { "type": "number" } },
"required": ["target_version"]
},
"ProjectVersion": {
"type": "object",
"properties": {
"postgres_version": { "type": "number" },
"app_version": { "type": "string" }
},
"required": ["postgres_version", "app_version"]
},
"ProjectUpgradeEligibilityResponse": {
"type": "object",
"properties": {
"eligible": { "type": "boolean" },
"current_app_version": { "type": "string" },
"latest_app_version": { "type": "string" },
"target_upgrade_versions": {
"type": "array",
"items": { "$ref": "#/components/schemas/ProjectVersion" }
},
"requires_manual_intervention": { "type": "string", "nullable": true },
"potential_breaking_changes": { "type": "array", "items": { "type": "string" } }
},
"required": [
"eligible",
"current_app_version",
"latest_app_version",
"target_upgrade_versions",
"requires_manual_intervention",
"potential_breaking_changes"
]
},
"DatabaseUpgradeStatus": {
"type": "object",
"properties": {
"initiated_at": { "type": "string" },
"target_version": { "type": "number" },
"error": {
"type": "string",
"enum": [
"1_upgraded_instance_launch_failed",
"2_volume_detachchment_from_upgraded_instance_failed",
"3_volume_attachment_to_original_instance_failed",
"4_data_upgrade_initiation_failed",
"5_data_upgrade_completion_failed",
"6_volume_detachchment_from_original_instance_failed",
"7_volume_attachment_to_upgraded_instance_failed",
"8_upgrade_completion_failed"
]
},
"progress": {
"type": "string",
"enum": [
"1_started",
"2_launched_upgraded_instance",
"3_detached_volume_from_upgraded_instance",
"4_attached_volume_to_original_instance",
"5_initiated_data_upgrade",
"6_completed_data_upgrade",
"7_detached_volume_from_original_instance",
"8_attached_volume_to_upgraded_instance",
"9_completed_upgrade"
]
},
"status": { "type": "number", "enum": [0, 1, 2] }
},
"required": ["initiated_at", "target_version", "status"]
},
"DatabaseUpgradeStatusResponse": {
"type": "object",
"properties": {
"databaseUpgradeStatus": {
"nullable": true,
"allOf": [{ "$ref": "#/components/schemas/DatabaseUpgradeStatus" }]
}
},
"required": ["databaseUpgradeStatus"]
},
"ReadOnlyStatusResponse": {
"type": "object",
"properties": {
"enabled": { "type": "boolean" },
"override_enabled": { "type": "boolean" },
"override_active_until": { "type": "string" }
},
"required": ["enabled", "override_enabled", "override_active_until"]
},
"AttributeValue": {
"type": "object",
"properties": {
"name": { "type": "string" },
"names": { "type": "array", "items": { "type": "string" } },
"default": { "type": "object" }
}
},
"AttributeMapping": {
"type": "object",
"properties": {
"keys": {
"type": "object",
"additionalProperties": { "$ref": "#/components/schemas/AttributeValue" }
}
},
"required": ["keys"]
},
"CreateProviderBody": {
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": ["saml"],
"description": "What type of provider will be created"
},
"metadata_xml": { "type": "string" },
"metadata_url": { "type": "string" },
"domains": { "type": "array", "items": { "type": "string" } },
"attribute_mapping": { "$ref": "#/components/schemas/AttributeMapping" }
},
"required": ["type"]
},
"SamlDescriptor": {
"type": "object",
"properties": {
"id": { "type": "string" },
"entity_id": { "type": "string" },
"metadata_url": { "type": "string" },
"metadata_xml": { "type": "string" },
"attribute_mapping": { "$ref": "#/components/schemas/AttributeMapping" }
},
"required": ["id", "entity_id"]
},
"Domain": {
"type": "object",
"properties": {
"id": { "type": "string" },
"domain": { "type": "string" },
"created_at": { "type": "string" },
"updated_at": { "type": "string" }
},
"required": ["id"]
},
"CreateProviderResponse": {
"type": "object",
"properties": {
"id": { "type": "string" },
"saml": { "$ref": "#/components/schemas/SamlDescriptor" },
"domains": { "type": "array", "items": { "$ref": "#/components/schemas/Domain" } },
"created_at": { "type": "string" },
"updated_at": { "type": "string" }
},
"required": ["id"]
},
"Provider": {
"type": "object",
"properties": {
"id": { "type": "string" },
"saml": { "$ref": "#/components/schemas/SamlDescriptor" },
"domains": { "type": "array", "items": { "$ref": "#/components/schemas/Domain" } },
"created_at": { "type": "string" },
"updated_at": { "type": "string" }
},
"required": ["id"]
},
"ListProvidersResponse": {
"type": "object",
"properties": {
"items": { "type": "array", "items": { "$ref": "#/components/schemas/Provider" } }
},
"required": ["items"]
},
"GetProviderResponse": {
"type": "object",
"properties": {
"id": { "type": "string" },
"saml": { "$ref": "#/components/schemas/SamlDescriptor" },
"domains": { "type": "array", "items": { "$ref": "#/components/schemas/Domain" } },
"created_at": { "type": "string" },
"updated_at": { "type": "string" }
},
"required": ["id"]
},
"UpdateProviderBody": {
"type": "object",
"properties": {
"metadata_xml": { "type": "string" },
"metadata_url": { "type": "string" },
"domains": { "type": "array", "items": { "type": "string" } },
"attribute_mapping": { "$ref": "#/components/schemas/AttributeMapping" }
}
},
"UpdateProviderResponse": {
"type": "object",
"properties": {
"id": { "type": "string" },
"saml": { "$ref": "#/components/schemas/SamlDescriptor" },
"domains": { "type": "array", "items": { "$ref": "#/components/schemas/Domain" } },
"created_at": { "type": "string" },
"updated_at": { "type": "string" }
},
"required": ["id"]
},
"DeleteProviderResponse": {
"type": "object",
"properties": {
"id": { "type": "string" },
"saml": { "$ref": "#/components/schemas/SamlDescriptor" },
"domains": { "type": "array", "items": { "$ref": "#/components/schemas/Domain" } },
"created_at": { "type": "string" },
"updated_at": { "type": "string" }
},
"required": ["id"]
}
}
}
+1 -4
View File
@@ -858,10 +858,7 @@
},
{
"title": "Misc",
"excludes": [
"reference_dart_v1",
"reference_dart_v0"
],
"excludes": ["reference_dart_v1", "reference_dart_v0"],
"items": [
{
"title": "Release Notes",
File diff suppressed because it is too large. Load diff
+102 -58
View File
@@ -418,7 +418,7 @@
"typeArguments": [
{
"type": "reference",
"id": 57,
"id": 58,
"typeArguments": [
{
"type": "reference",
@@ -509,14 +509,14 @@
]
},
{
"id": 35,
"id": 36,
"name": "FunctionsError",
"kind": 128,
"kindString": "Class",
"flags": {},
"children": [
{
"id": 36,
"id": 37,
"name": "constructor",
"kind": 512,
"kindString": "Constructor",
@@ -530,14 +530,14 @@
],
"signatures": [
{
"id": 37,
"id": 38,
"name": "new FunctionsError",
"kind": 16384,
"kindString": "Constructor signature",
"flags": {},
"parameters": [
{
"id": 38,
"id": 39,
"name": "message",
"kind": 32768,
"kindString": "Parameter",
@@ -548,7 +548,7 @@
}
},
{
"id": 39,
"id": 40,
"name": "name",
"kind": 32768,
"kindString": "Parameter",
@@ -560,7 +560,7 @@
"defaultValue": "'FunctionsError'"
},
{
"id": 40,
"id": 41,
"name": "context",
"kind": 32768,
"kindString": "Parameter",
@@ -575,7 +575,7 @@
],
"type": {
"type": "reference",
"id": 35,
"id": 36,
"name": "FunctionsError"
},
"overwrites": {
@@ -590,7 +590,7 @@
}
},
{
"id": 41,
"id": 42,
"name": "context",
"kind": 1024,
"kindString": "Property",
@@ -612,12 +612,12 @@
{
"title": "Constructors",
"kind": 512,
"children": [36]
"children": [37]
},
{
"title": "Properties",
"kind": 1024,
"children": [41]
"children": [42]
}
],
"sources": [
@@ -638,30 +638,30 @@
"extendedBy": [
{
"type": "reference",
"id": 42,
"id": 43,
"name": "FunctionsFetchError"
},
{
"type": "reference",
"id": 47,
"id": 48,
"name": "FunctionsHttpError"
},
{
"type": "reference",
"id": 52,
"id": 53,
"name": "FunctionsRelayError"
}
]
},
{
"id": 42,
"id": 43,
"name": "FunctionsFetchError",
"kind": 128,
"kindString": "Class",
"flags": {},
"children": [
{
"id": 43,
"id": 44,
"name": "constructor",
"kind": 512,
"kindString": "Constructor",
@@ -675,14 +675,14 @@
],
"signatures": [
{
"id": 44,
"id": 45,
"name": "new FunctionsFetchError",
"kind": 16384,
"kindString": "Constructor signature",
"flags": {},
"parameters": [
{
"id": 45,
"id": 46,
"name": "context",
"kind": 32768,
"kindString": "Parameter",
@@ -695,24 +695,24 @@
],
"type": {
"type": "reference",
"id": 42,
"id": 43,
"name": "FunctionsFetchError"
},
"overwrites": {
"type": "reference",
"id": 37,
"id": 38,
"name": "FunctionsError.constructor"
}
}
],
"overwrites": {
"type": "reference",
"id": 36,
"id": 37,
"name": "FunctionsError.constructor"
}
},
{
"id": 46,
"id": 47,
"name": "context",
"kind": 1024,
"kindString": "Property",
@@ -730,7 +730,7 @@
},
"inheritedFrom": {
"type": "reference",
"id": 41,
"id": 42,
"name": "FunctionsError.context"
}
}
@@ -739,12 +739,12 @@
{
"title": "Constructors",
"kind": 512,
"children": [43]
"children": [44]
},
{
"title": "Properties",
"kind": 1024,
"children": [46]
"children": [47]
}
],
"sources": [
@@ -757,20 +757,20 @@
"extendedTypes": [
{
"type": "reference",
"id": 35,
"id": 36,
"name": "FunctionsError"
}
]
},
{
"id": 47,
"id": 48,
"name": "FunctionsHttpError",
"kind": 128,
"kindString": "Class",
"flags": {},
"children": [
{
"id": 48,
"id": 49,
"name": "constructor",
"kind": 512,
"kindString": "Constructor",
@@ -784,14 +784,14 @@
],
"signatures": [
{
"id": 49,
"id": 50,
"name": "new FunctionsHttpError",
"kind": 16384,
"kindString": "Constructor signature",
"flags": {},
"parameters": [
{
"id": 50,
"id": 51,
"name": "context",
"kind": 32768,
"kindString": "Parameter",
@@ -804,24 +804,24 @@
],
"type": {
"type": "reference",
"id": 47,
"id": 48,
"name": "FunctionsHttpError"
},
"overwrites": {
"type": "reference",
"id": 37,
"id": 38,
"name": "FunctionsError.constructor"
}
}
],
"overwrites": {
"type": "reference",
"id": 36,
"id": 37,
"name": "FunctionsError.constructor"
}
},
{
"id": 51,
"id": 52,
"name": "context",
"kind": 1024,
"kindString": "Property",
@@ -839,7 +839,7 @@
},
"inheritedFrom": {
"type": "reference",
"id": 41,
"id": 42,
"name": "FunctionsError.context"
}
}
@@ -848,12 +848,12 @@
{
"title": "Constructors",
"kind": 512,
"children": [48]
"children": [49]
},
{
"title": "Properties",
"kind": 1024,
"children": [51]
"children": [52]
}
],
"sources": [
@@ -866,20 +866,20 @@
"extendedTypes": [
{
"type": "reference",
"id": 35,
"id": 36,
"name": "FunctionsError"
}
]
},
{
"id": 52,
"id": 53,
"name": "FunctionsRelayError",
"kind": 128,
"kindString": "Class",
"flags": {},
"children": [
{
"id": 53,
"id": 54,
"name": "constructor",
"kind": 512,
"kindString": "Constructor",
@@ -893,14 +893,14 @@
],
"signatures": [
{
"id": 54,
"id": 55,
"name": "new FunctionsRelayError",
"kind": 16384,
"kindString": "Constructor signature",
"flags": {},
"parameters": [
{
"id": 55,
"id": 56,
"name": "context",
"kind": 32768,
"kindString": "Parameter",
@@ -913,24 +913,24 @@
],
"type": {
"type": "reference",
"id": 52,
"id": 53,
"name": "FunctionsRelayError"
},
"overwrites": {
"type": "reference",
"id": 37,
"id": 38,
"name": "FunctionsError.constructor"
}
}
],
"overwrites": {
"type": "reference",
"id": 36,
"id": 37,
"name": "FunctionsError.constructor"
}
},
{
"id": 56,
"id": 57,
"name": "context",
"kind": 1024,
"kindString": "Property",
@@ -948,7 +948,7 @@
},
"inheritedFrom": {
"type": "reference",
"id": 41,
"id": 42,
"name": "FunctionsError.context"
}
}
@@ -957,12 +957,12 @@
{
"title": "Constructors",
"kind": 512,
"children": [53]
"children": [54]
},
{
"title": "Properties",
"kind": 1024,
"children": [56]
"children": [57]
}
],
"sources": [
@@ -975,7 +975,7 @@
"extendedTypes": [
{
"type": "reference",
"id": 35,
"id": 36,
"name": "FunctionsError"
}
]
@@ -1003,7 +1003,7 @@
"flags": {},
"children": [
{
"id": 34,
"id": 35,
"name": "body",
"kind": 1024,
"kindString": "Property",
@@ -1016,7 +1016,7 @@
"sources": [
{
"fileName": "src/types.ts",
"line": 52,
"line": 56,
"character": 2
}
],
@@ -1142,13 +1142,57 @@
}
}
}
},
{
"id": 34,
"name": "method",
"kind": 1024,
"kindString": "Property",
"flags": {
"isOptional": true
},
"comment": {
"shortText": "The HTTP verb of the request"
},
"sources": [
{
"fileName": "src/types.ts",
"line": 52,
"character": 2
}
],
"type": {
"type": "union",
"types": [
{
"type": "literal",
"value": "POST"
},
{
"type": "literal",
"value": "GET"
},
{
"type": "literal",
"value": "PUT"
},
{
"type": "literal",
"value": "PATCH"
},
{
"type": "literal",
"value": "DELETE"
}
]
}
}
],
"groups": [
{
"title": "Properties",
"kind": 1024,
"children": [34, 30]
"children": [35, 30, 34]
}
],
"sources": [
@@ -1162,7 +1206,7 @@
}
},
{
"id": 57,
"id": 58,
"name": "FunctionsResponse",
"kind": 4194304,
"kindString": "Type alias",
@@ -1176,7 +1220,7 @@
],
"typeParameter": [
{
"id": 58,
"id": 59,
"name": "T",
"kind": 131072,
"kindString": "Type parameter",
@@ -1191,7 +1235,7 @@
"typeArguments": [
{
"type": "reference",
"id": 58,
"id": 59,
"name": "T"
}
],
@@ -1209,12 +1253,12 @@
{
"title": "Classes",
"kind": 128,
"children": [1, 35, 42, 47, 52]
"children": [1, 36, 43, 48, 53]
},
{
"title": "Type Aliases",
"kind": 4194304,
"children": [28, 57]
"children": [28, 58]
}
],
"sources": [
@@ -432,7 +432,7 @@
"flags": {},
"children": [
{
"id": 34,
"id": 35,
"name": "body",
"kind": 1024,
"kindString": "Property",
@@ -445,7 +445,7 @@
"sources": [
{
"fileName": "src/types.ts",
"line": 52,
"line": 56,
"character": 2
}
],
@@ -571,13 +571,57 @@
}
}
}
},
{
"id": 34,
"name": "method",
"kind": 1024,
"kindString": "Property",
"flags": {
"isOptional": true
},
"comment": {
"shortText": "The HTTP verb of the request"
},
"sources": [
{
"fileName": "src/types.ts",
"line": 52,
"character": 2
}
],
"type": {
"type": "union",
"types": [
{
"type": "literal",
"value": "POST"
},
{
"type": "literal",
"value": "GET"
},
{
"type": "literal",
"value": "PUT"
},
{
"type": "literal",
"value": "PATCH"
},
{
"type": "literal",
"value": "DELETE"
}
]
}
}
],
"groups": [
{
"title": "Properties",
"kind": 1024,
"children": [34, 30]
"children": [35, 30, 34]
}
],
"sources": [
@@ -599,7 +643,7 @@
"typeArguments": [
{
"type": "reference",
"id": 57,
"id": 58,
"typeArguments": [
{
"type": "reference",
@@ -690,14 +734,14 @@
]
},
{
"id": 35,
"id": 36,
"name": "FunctionsError",
"kind": 128,
"kindString": "Class",
"flags": {},
"children": [
{
"id": 36,
"id": 37,
"name": "constructor",
"kind": 512,
"kindString": "Constructor",
@@ -711,14 +755,14 @@
],
"signatures": [
{
"id": 37,
"id": 38,
"name": "new FunctionsError",
"kind": 16384,
"kindString": "Constructor signature",
"flags": {},
"parameters": [
{
"id": 38,
"id": 39,
"name": "message",
"kind": 32768,
"kindString": "Parameter",
@@ -729,7 +773,7 @@
}
},
{
"id": 39,
"id": 40,
"name": "name",
"kind": 32768,
"kindString": "Parameter",
@@ -741,7 +785,7 @@
"defaultValue": "'FunctionsError'"
},
{
"id": 40,
"id": 41,
"name": "context",
"kind": 32768,
"kindString": "Parameter",
@@ -756,7 +800,7 @@
],
"type": {
"type": "reference",
"id": 35,
"id": 36,
"name": "FunctionsError"
},
"overwrites": {
@@ -771,7 +815,7 @@
}
},
{
"id": 41,
"id": 42,
"name": "context",
"kind": 1024,
"kindString": "Property",
@@ -793,12 +837,12 @@
{
"title": "Constructors",
"kind": 512,
"children": [36]
"children": [37]
},
{
"title": "Properties",
"kind": 1024,
"children": [41]
"children": [42]
}
],
"sources": [
@@ -819,30 +863,30 @@
"extendedBy": [
{
"type": "reference",
"id": 42,
"id": 43,
"name": "FunctionsFetchError"
},
{
"type": "reference",
"id": 47,
"id": 48,
"name": "FunctionsHttpError"
},
{
"type": "reference",
"id": 52,
"id": 53,
"name": "FunctionsRelayError"
}
]
},
{
"id": 42,
"id": 43,
"name": "FunctionsFetchError",
"kind": 128,
"kindString": "Class",
"flags": {},
"children": [
{
"id": 43,
"id": 44,
"name": "constructor",
"kind": 512,
"kindString": "Constructor",
@@ -856,14 +900,14 @@
],
"signatures": [
{
"id": 44,
"id": 45,
"name": "new FunctionsFetchError",
"kind": 16384,
"kindString": "Constructor signature",
"flags": {},
"parameters": [
{
"id": 45,
"id": 46,
"name": "context",
"kind": 32768,
"kindString": "Parameter",
@@ -876,24 +920,24 @@
],
"type": {
"type": "reference",
"id": 42,
"id": 43,
"name": "FunctionsFetchError"
},
"overwrites": {
"type": "reference",
"id": 37,
"id": 38,
"name": "FunctionsError.constructor"
}
}
],
"overwrites": {
"type": "reference",
"id": 36,
"id": 37,
"name": "FunctionsError.constructor"
}
},
{
"id": 46,
"id": 47,
"name": "context",
"kind": 1024,
"kindString": "Property",
@@ -911,7 +955,7 @@
},
"inheritedFrom": {
"type": "reference",
"id": 41,
"id": 42,
"name": "FunctionsError.context"
}
}
@@ -920,12 +964,12 @@
{
"title": "Constructors",
"kind": 512,
"children": [43]
"children": [44]
},
{
"title": "Properties",
"kind": 1024,
"children": [46]
"children": [47]
}
],
"sources": [
@@ -938,20 +982,20 @@
"extendedTypes": [
{
"type": "reference",
"id": 35,
"id": 36,
"name": "FunctionsError"
}
]
},
{
"id": 47,
"id": 48,
"name": "FunctionsHttpError",
"kind": 128,
"kindString": "Class",
"flags": {},
"children": [
{
"id": 48,
"id": 49,
"name": "constructor",
"kind": 512,
"kindString": "Constructor",
@@ -965,14 +1009,14 @@
],
"signatures": [
{
"id": 49,
"id": 50,
"name": "new FunctionsHttpError",
"kind": 16384,
"kindString": "Constructor signature",
"flags": {},
"parameters": [
{
"id": 50,
"id": 51,
"name": "context",
"kind": 32768,
"kindString": "Parameter",
@@ -985,24 +1029,24 @@
],
"type": {
"type": "reference",
"id": 47,
"id": 48,
"name": "FunctionsHttpError"
},
"overwrites": {
"type": "reference",
"id": 37,
"id": 38,
"name": "FunctionsError.constructor"
}
}
],
"overwrites": {
"type": "reference",
"id": 36,
"id": 37,
"name": "FunctionsError.constructor"
}
},
{
"id": 51,
"id": 52,
"name": "context",
"kind": 1024,
"kindString": "Property",
@@ -1020,7 +1064,7 @@
},
"inheritedFrom": {
"type": "reference",
"id": 41,
"id": 42,
"name": "FunctionsError.context"
}
}
@@ -1029,12 +1073,12 @@
{
"title": "Constructors",
"kind": 512,
"children": [48]
"children": [49]
},
{
"title": "Properties",
"kind": 1024,
"children": [51]
"children": [52]
}
],
"sources": [
@@ -1047,20 +1091,20 @@
"extendedTypes": [
{
"type": "reference",
"id": 35,
"id": 36,
"name": "FunctionsError"
}
]
},
{
"id": 52,
"id": 53,
"name": "FunctionsRelayError",
"kind": 128,
"kindString": "Class",
"flags": {},
"children": [
{
"id": 53,
"id": 54,
"name": "constructor",
"kind": 512,
"kindString": "Constructor",
@@ -1074,14 +1118,14 @@
],
"signatures": [
{
"id": 54,
"id": 55,
"name": "new FunctionsRelayError",
"kind": 16384,
"kindString": "Constructor signature",
"flags": {},
"parameters": [
{
"id": 55,
"id": 56,
"name": "context",
"kind": 32768,
"kindString": "Parameter",
@@ -1094,24 +1138,24 @@
],
"type": {
"type": "reference",
"id": 52,
"id": 53,
"name": "FunctionsRelayError"
},
"overwrites": {
"type": "reference",
"id": 37,
"id": 38,
"name": "FunctionsError.constructor"
}
}
],
"overwrites": {
"type": "reference",
"id": 36,
"id": 37,
"name": "FunctionsError.constructor"
}
},
{
"id": 56,
"id": 57,
"name": "context",
"kind": 1024,
"kindString": "Property",
@@ -1129,7 +1173,7 @@
},
"inheritedFrom": {
"type": "reference",
"id": 41,
"id": 42,
"name": "FunctionsError.context"
}
}
@@ -1138,12 +1182,12 @@
{
"title": "Constructors",
"kind": 512,
"children": [53]
"children": [54]
},
{
"title": "Properties",
"kind": 1024,
"children": [56]
"children": [57]
}
],
"sources": [
@@ -1156,7 +1200,7 @@
"extendedTypes": [
{
"type": "reference",
"id": 35,
"id": 36,
"name": "FunctionsError"
}
]
@@ -1184,7 +1228,7 @@
"flags": {},
"children": [
{
"id": 34,
"id": 35,
"name": "body",
"kind": 1024,
"kindString": "Property",
@@ -1197,7 +1241,7 @@
"sources": [
{
"fileName": "src/types.ts",
"line": 52,
"line": 56,
"character": 2
}
],
@@ -1323,13 +1367,57 @@
}
}
}
},
{
"id": 34,
"name": "method",
"kind": 1024,
"kindString": "Property",
"flags": {
"isOptional": true
},
"comment": {
"shortText": "The HTTP verb of the request"
},
"sources": [
{
"fileName": "src/types.ts",
"line": 52,
"character": 2
}
],
"type": {
"type": "union",
"types": [
{
"type": "literal",
"value": "POST"
},
{
"type": "literal",
"value": "GET"
},
{
"type": "literal",
"value": "PUT"
},
{
"type": "literal",
"value": "PATCH"
},
{
"type": "literal",
"value": "DELETE"
}
]
}
}
],
"groups": [
{
"title": "Properties",
"kind": 1024,
"children": [34, 30]
"children": [35, 30, 34]
}
],
"sources": [
@@ -1343,7 +1431,7 @@
}
},
{
"id": 57,
"id": 58,
"name": "FunctionsResponse",
"kind": 4194304,
"kindString": "Type alias",
@@ -1357,7 +1445,7 @@
],
"typeParameter": [
{
"id": 58,
"id": 59,
"name": "T",
"kind": 131072,
"kindString": "Type parameter",
@@ -1374,12 +1462,12 @@
{
"title": "Classes",
"kind": 128,
"children": [1, 35, 42, 47, 52]
"children": [1, 36, 43, 48, 53]
},
{
"title": "Type Aliases",
"kind": 4194304,
"children": [28, 57]
"children": [28, 58]
}
],
"sources": [
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
+93 -70
View File
@@ -13,14 +13,14 @@
"flags": {},
"children": [
{
"id": 403,
"id": 404,
"name": "StorageApiError",
"kind": 128,
"kindString": "Class",
"flags": {},
"children": [
{
"id": 404,
"id": 405,
"name": "constructor",
"kind": 512,
"kindString": "Constructor",
@@ -34,14 +34,14 @@
],
"signatures": [
{
"id": 405,
"id": 406,
"name": "new StorageApiError",
"kind": 16384,
"kindString": "Constructor signature",
"flags": {},
"parameters": [
{
"id": 406,
"id": 407,
"name": "message",
"kind": 32768,
"kindString": "Parameter",
@@ -52,7 +52,7 @@
}
},
{
"id": 407,
"id": 408,
"name": "status",
"kind": 32768,
"kindString": "Parameter",
@@ -65,24 +65,24 @@
],
"type": {
"type": "reference",
"id": 403,
"id": 404,
"name": "StorageApiError"
},
"overwrites": {
"type": "reference",
"id": 400,
"id": 401,
"name": "StorageError.constructor"
}
}
],
"overwrites": {
"type": "reference",
"id": 399,
"id": 400,
"name": "StorageError.constructor"
}
},
{
"id": 408,
"id": 409,
"name": "status",
"kind": 1024,
"kindString": "Property",
@@ -100,7 +100,7 @@
}
},
{
"id": 409,
"id": 410,
"name": "toJSON",
"kind": 2048,
"kindString": "Method",
@@ -114,7 +114,7 @@
],
"signatures": [
{
"id": 410,
"id": 411,
"name": "toJSON",
"kind": 4096,
"kindString": "Call signature",
@@ -122,14 +122,14 @@
"type": {
"type": "reflection",
"declaration": {
"id": 411,
"id": 412,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
"flags": {},
"children": [
{
"id": 413,
"id": 414,
"name": "message",
"kind": 1024,
"kindString": "Property",
@@ -148,7 +148,7 @@
"defaultValue": "..."
},
{
"id": 412,
"id": 413,
"name": "name",
"kind": 1024,
"kindString": "Property",
@@ -167,7 +167,7 @@
"defaultValue": "..."
},
{
"id": 414,
"id": 415,
"name": "status",
"kind": 1024,
"kindString": "Property",
@@ -190,7 +190,7 @@
{
"title": "Properties",
"kind": 1024,
"children": [413, 412, 414]
"children": [414, 413, 415]
}
]
}
@@ -203,17 +203,17 @@
{
"title": "Constructors",
"kind": 512,
"children": [404]
"children": [405]
},
{
"title": "Properties",
"kind": 1024,
"children": [408]
"children": [409]
},
{
"title": "Methods",
"kind": 2048,
"children": [409]
"children": [410]
}
],
"sources": [
@@ -226,7 +226,7 @@
"extendedTypes": [
{
"type": "reference",
"id": 398,
"id": 399,
"name": "StorageError"
}
]
@@ -606,7 +606,7 @@
],
"type": {
"type": "reference",
"id": 398,
"id": 399,
"name": "StorageError"
}
}
@@ -815,7 +815,7 @@
],
"type": {
"type": "reference",
"id": 398,
"id": 399,
"name": "StorageError"
}
}
@@ -1024,7 +1024,7 @@
],
"type": {
"type": "reference",
"id": 398,
"id": 399,
"name": "StorageError"
}
}
@@ -1248,7 +1248,7 @@
],
"type": {
"type": "reference",
"id": 398,
"id": 399,
"name": "StorageError"
}
}
@@ -1412,7 +1412,7 @@
],
"type": {
"type": "reference",
"id": 398,
"id": 399,
"name": "StorageError"
}
}
@@ -1668,7 +1668,7 @@
],
"type": {
"type": "reference",
"id": 398,
"id": 399,
"name": "StorageError"
}
}
@@ -1731,14 +1731,14 @@
]
},
{
"id": 398,
"id": 399,
"name": "StorageError",
"kind": 128,
"kindString": "Class",
"flags": {},
"children": [
{
"id": 399,
"id": 400,
"name": "constructor",
"kind": 512,
"kindString": "Constructor",
@@ -1752,14 +1752,14 @@
],
"signatures": [
{
"id": 400,
"id": 401,
"name": "new StorageError",
"kind": 16384,
"kindString": "Constructor signature",
"flags": {},
"parameters": [
{
"id": 401,
"id": 402,
"name": "message",
"kind": 32768,
"kindString": "Parameter",
@@ -1772,7 +1772,7 @@
],
"type": {
"type": "reference",
"id": 398,
"id": 399,
"name": "StorageError"
},
"overwrites": {
@@ -1791,7 +1791,7 @@
{
"title": "Constructors",
"kind": 512,
"children": [399]
"children": [400]
}
],
"sources": [
@@ -1812,25 +1812,25 @@
"extendedBy": [
{
"type": "reference",
"id": 403,
"id": 404,
"name": "StorageApiError"
},
{
"type": "reference",
"id": 416,
"id": 417,
"name": "StorageUnknownError"
}
]
},
{
"id": 416,
"id": 417,
"name": "StorageUnknownError",
"kind": 128,
"kindString": "Class",
"flags": {},
"children": [
{
"id": 417,
"id": 418,
"name": "constructor",
"kind": 512,
"kindString": "Constructor",
@@ -1844,14 +1844,14 @@
],
"signatures": [
{
"id": 418,
"id": 419,
"name": "new StorageUnknownError",
"kind": 16384,
"kindString": "Constructor signature",
"flags": {},
"parameters": [
{
"id": 419,
"id": 420,
"name": "message",
"kind": 32768,
"kindString": "Parameter",
@@ -1862,7 +1862,7 @@
}
},
{
"id": 420,
"id": 421,
"name": "originalError",
"kind": 32768,
"kindString": "Parameter",
@@ -1875,24 +1875,24 @@
],
"type": {
"type": "reference",
"id": 416,
"id": 417,
"name": "StorageUnknownError"
},
"overwrites": {
"type": "reference",
"id": 400,
"id": 401,
"name": "StorageError.constructor"
}
}
],
"overwrites": {
"type": "reference",
"id": 399,
"id": 400,
"name": "StorageError.constructor"
}
},
{
"id": 421,
"id": 422,
"name": "originalError",
"kind": 1024,
"kindString": "Property",
@@ -1914,12 +1914,12 @@
{
"title": "Constructors",
"kind": 512,
"children": [417]
"children": [418]
},
{
"title": "Properties",
"kind": 1024,
"children": [421]
"children": [422]
}
],
"sources": [
@@ -1932,7 +1932,7 @@
"extendedTypes": [
{
"type": "reference",
"id": 398,
"id": 399,
"name": "StorageError"
}
]
@@ -2634,7 +2634,7 @@
"flags": {},
"children": [
{
"id": 394,
"id": 395,
"name": "format",
"kind": 1024,
"kindString": "Property",
@@ -2648,7 +2648,7 @@
"sources": [
{
"fileName": "src/lib/types.ts",
"line": 98,
"line": 102,
"character": 2
}
],
@@ -2680,6 +2680,29 @@
"name": "number"
}
},
{
"id": 394,
"name": "quality",
"kind": 1024,
"kindString": "Property",
"flags": {
"isOptional": true
},
"comment": {
"shortText": "Set the quality of the returned image, this is percentage based, default 80"
},
"sources": [
{
"fileName": "src/lib/types.ts",
"line": 95,
"character": 2
}
],
"type": {
"type": "intrinsic",
"name": "number"
}
},
{
"id": 393,
"name": "resize",
@@ -2744,7 +2767,7 @@
{
"title": "Properties",
"kind": 1024,
"children": [394, 392, 393, 391]
"children": [395, 392, 394, 393, 391]
}
],
"sources": [
@@ -2756,7 +2779,7 @@
]
},
{
"id": 395,
"id": 396,
"name": "isStorageError",
"kind": 64,
"kindString": "Function",
@@ -2770,14 +2793,14 @@
],
"signatures": [
{
"id": 396,
"id": 397,
"name": "isStorageError",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"parameters": [
{
"id": 397,
"id": 398,
"name": "error",
"kind": 32768,
"kindString": "Parameter",
@@ -2794,7 +2817,7 @@
"asserts": false,
"targetType": {
"type": "reference",
"id": 398,
"id": 399,
"name": "StorageError"
}
}
@@ -2806,7 +2829,7 @@
{
"title": "Classes",
"kind": 128,
"children": [403, 266, 398, 416]
"children": [404, 266, 399, 417]
},
{
"title": "Interfaces",
@@ -2816,7 +2839,7 @@
{
"title": "Functions",
"kind": 64,
"children": [395]
"children": [396]
}
],
"sources": [
@@ -3199,7 +3222,7 @@
],
"type": {
"type": "reference",
"id": 398,
"id": 399,
"name": "StorageError"
}
}
@@ -3398,7 +3421,7 @@
],
"type": {
"type": "reference",
"id": 398,
"id": 399,
"name": "StorageError"
}
}
@@ -3597,7 +3620,7 @@
],
"type": {
"type": "reference",
"id": 398,
"id": 399,
"name": "StorageError"
}
}
@@ -3764,7 +3787,7 @@
],
"type": {
"type": "reference",
"id": 398,
"id": 399,
"name": "StorageError"
}
}
@@ -3918,7 +3941,7 @@
],
"type": {
"type": "reference",
"id": 398,
"id": 399,
"name": "StorageError"
}
}
@@ -4164,7 +4187,7 @@
],
"type": {
"type": "reference",
"id": 398,
"id": 399,
"name": "StorageError"
}
}
@@ -4602,7 +4625,7 @@
],
"type": {
"type": "reference",
"id": 398,
"id": 399,
"name": "StorageError"
}
}
@@ -4899,7 +4922,7 @@
],
"type": {
"type": "reference",
"id": 398,
"id": 399,
"name": "StorageError"
}
}
@@ -5230,7 +5253,7 @@
],
"type": {
"type": "reference",
"id": 398,
"id": 399,
"name": "StorageError"
}
}
@@ -5450,7 +5473,7 @@
],
"type": {
"type": "reference",
"id": 398,
"id": 399,
"name": "StorageError"
}
}
@@ -5846,7 +5869,7 @@
],
"type": {
"type": "reference",
"id": 398,
"id": 399,
"name": "StorageError"
}
}
@@ -6059,7 +6082,7 @@
],
"type": {
"type": "reference",
"id": 398,
"id": 399,
"name": "StorageError"
}
}
@@ -6232,7 +6255,7 @@
],
"type": {
"type": "reference",
"id": 398,
"id": 399,
"name": "StorageError"
}
}
@@ -6526,7 +6549,7 @@
],
"type": {
"type": "reference",
"id": 398,
"id": 399,
"name": "StorageError"
}
}
@@ -6820,7 +6843,7 @@
],
"type": {
"type": "reference",
"id": 398,
"id": 399,
"name": "StorageError"
}
}
@@ -13,14 +13,14 @@
"flags": {},
"children": [
{
"id": 403,
"id": 404,
"name": "StorageApiError",
"kind": 128,
"kindString": "Class",
"flags": {},
"children": [
{
"id": 404,
"id": 405,
"name": "constructor",
"kind": 512,
"kindString": "Constructor",
@@ -34,14 +34,14 @@
],
"signatures": [
{
"id": 405,
"id": 406,
"name": "new StorageApiError",
"kind": 16384,
"kindString": "Constructor signature",
"flags": {},
"parameters": [
{
"id": 406,
"id": 407,
"name": "message",
"kind": 32768,
"kindString": "Parameter",
@@ -52,7 +52,7 @@
}
},
{
"id": 407,
"id": 408,
"name": "status",
"kind": 32768,
"kindString": "Parameter",
@@ -65,24 +65,24 @@
],
"type": {
"type": "reference",
"id": 403,
"id": 404,
"name": "StorageApiError"
},
"overwrites": {
"type": "reference",
"id": 400,
"id": 401,
"name": "StorageError.constructor"
}
}
],
"overwrites": {
"type": "reference",
"id": 399,
"id": 400,
"name": "StorageError.constructor"
}
},
{
"id": 408,
"id": 409,
"name": "status",
"kind": 1024,
"kindString": "Property",
@@ -100,7 +100,7 @@
}
},
{
"id": 409,
"id": 410,
"name": "toJSON",
"kind": 2048,
"kindString": "Method",
@@ -114,7 +114,7 @@
],
"signatures": [
{
"id": 410,
"id": 411,
"name": "toJSON",
"kind": 4096,
"kindString": "Call signature",
@@ -122,14 +122,14 @@
"type": {
"type": "reflection",
"declaration": {
"id": 411,
"id": 412,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
"flags": {},
"children": [
{
"id": 413,
"id": 414,
"name": "message",
"kind": 1024,
"kindString": "Property",
@@ -148,7 +148,7 @@
"defaultValue": "..."
},
{
"id": 412,
"id": 413,
"name": "name",
"kind": 1024,
"kindString": "Property",
@@ -167,7 +167,7 @@
"defaultValue": "..."
},
{
"id": 414,
"id": 415,
"name": "status",
"kind": 1024,
"kindString": "Property",
@@ -190,7 +190,7 @@
{
"title": "Properties",
"kind": 1024,
"children": [413, 412, 414]
"children": [414, 413, 415]
}
]
}
@@ -203,17 +203,17 @@
{
"title": "Constructors",
"kind": 512,
"children": [404]
"children": [405]
},
{
"title": "Properties",
"kind": 1024,
"children": [408]
"children": [409]
},
{
"title": "Methods",
"kind": 2048,
"children": [409]
"children": [410]
}
],
"sources": [
@@ -226,7 +226,7 @@
"extendedTypes": [
{
"type": "reference",
"id": 398,
"id": 399,
"name": "StorageError"
}
]
@@ -606,7 +606,7 @@
],
"type": {
"type": "reference",
"id": 398,
"id": 399,
"name": "StorageError"
}
}
@@ -815,7 +815,7 @@
],
"type": {
"type": "reference",
"id": 398,
"id": 399,
"name": "StorageError"
}
}
@@ -1024,7 +1024,7 @@
],
"type": {
"type": "reference",
"id": 398,
"id": 399,
"name": "StorageError"
}
}
@@ -1248,7 +1248,7 @@
],
"type": {
"type": "reference",
"id": 398,
"id": 399,
"name": "StorageError"
}
}
@@ -1412,7 +1412,7 @@
],
"type": {
"type": "reference",
"id": 398,
"id": 399,
"name": "StorageError"
}
}
@@ -1668,7 +1668,7 @@
],
"type": {
"type": "reference",
"id": 398,
"id": 399,
"name": "StorageError"
}
}
@@ -1731,14 +1731,14 @@
]
},
{
"id": 398,
"id": 399,
"name": "StorageError",
"kind": 128,
"kindString": "Class",
"flags": {},
"children": [
{
"id": 399,
"id": 400,
"name": "constructor",
"kind": 512,
"kindString": "Constructor",
@@ -1752,14 +1752,14 @@
],
"signatures": [
{
"id": 400,
"id": 401,
"name": "new StorageError",
"kind": 16384,
"kindString": "Constructor signature",
"flags": {},
"parameters": [
{
"id": 401,
"id": 402,
"name": "message",
"kind": 32768,
"kindString": "Parameter",
@@ -1772,7 +1772,7 @@
],
"type": {
"type": "reference",
"id": 398,
"id": 399,
"name": "StorageError"
},
"overwrites": {
@@ -1791,7 +1791,7 @@
{
"title": "Constructors",
"kind": 512,
"children": [399]
"children": [400]
}
],
"sources": [
@@ -1812,25 +1812,25 @@
"extendedBy": [
{
"type": "reference",
"id": 403,
"id": 404,
"name": "StorageApiError"
},
{
"type": "reference",
"id": 416,
"id": 417,
"name": "StorageUnknownError"
}
]
},
{
"id": 416,
"id": 417,
"name": "StorageUnknownError",
"kind": 128,
"kindString": "Class",
"flags": {},
"children": [
{
"id": 417,
"id": 418,
"name": "constructor",
"kind": 512,
"kindString": "Constructor",
@@ -1844,14 +1844,14 @@
],
"signatures": [
{
"id": 418,
"id": 419,
"name": "new StorageUnknownError",
"kind": 16384,
"kindString": "Constructor signature",
"flags": {},
"parameters": [
{
"id": 419,
"id": 420,
"name": "message",
"kind": 32768,
"kindString": "Parameter",
@@ -1862,7 +1862,7 @@
}
},
{
"id": 420,
"id": 421,
"name": "originalError",
"kind": 32768,
"kindString": "Parameter",
@@ -1875,24 +1875,24 @@
],
"type": {
"type": "reference",
"id": 416,
"id": 417,
"name": "StorageUnknownError"
},
"overwrites": {
"type": "reference",
"id": 400,
"id": 401,
"name": "StorageError.constructor"
}
}
],
"overwrites": {
"type": "reference",
"id": 399,
"id": 400,
"name": "StorageError.constructor"
}
},
{
"id": 421,
"id": 422,
"name": "originalError",
"kind": 1024,
"kindString": "Property",
@@ -1914,12 +1914,12 @@
{
"title": "Constructors",
"kind": 512,
"children": [417]
"children": [418]
},
{
"title": "Properties",
"kind": 1024,
"children": [421]
"children": [422]
}
],
"sources": [
@@ -1932,7 +1932,7 @@
"extendedTypes": [
{
"type": "reference",
"id": 398,
"id": 399,
"name": "StorageError"
}
]
@@ -2828,7 +2828,7 @@
"flags": {},
"children": [
{
"id": 394,
"id": 395,
"name": "format",
"kind": 1024,
"kindString": "Property",
@@ -2842,7 +2842,7 @@
"sources": [
{
"fileName": "src/lib/types.ts",
"line": 98,
"line": 102,
"character": 2
}
],
@@ -2874,6 +2874,29 @@
"name": "number"
}
},
{
"id": 394,
"name": "quality",
"kind": 1024,
"kindString": "Property",
"flags": {
"isOptional": true
},
"comment": {
"shortText": "Set the quality of the returned image, this is percentage based, default 80"
},
"sources": [
{
"fileName": "src/lib/types.ts",
"line": 95,
"character": 2
}
],
"type": {
"type": "intrinsic",
"name": "number"
}
},
{
"id": 393,
"name": "resize",
@@ -2938,7 +2961,7 @@
{
"title": "Properties",
"kind": 1024,
"children": [394, 392, 393, 391]
"children": [395, 392, 394, 393, 391]
}
],
"sources": [
@@ -2950,7 +2973,7 @@
]
},
{
"id": 395,
"id": 396,
"name": "isStorageError",
"kind": 64,
"kindString": "Function",
@@ -2964,14 +2987,14 @@
],
"signatures": [
{
"id": 396,
"id": 397,
"name": "isStorageError",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"parameters": [
{
"id": 397,
"id": 398,
"name": "error",
"kind": 32768,
"kindString": "Parameter",
@@ -2988,7 +3011,7 @@
"asserts": false,
"targetType": {
"type": "reference",
"id": 398,
"id": 399,
"name": "StorageError"
}
}
@@ -3000,7 +3023,7 @@
{
"title": "Classes",
"kind": 128,
"children": [403, 266, 398, 416]
"children": [404, 266, 399, 417]
},
{
"title": "Interfaces",
@@ -3010,7 +3033,7 @@
{
"title": "Functions",
"kind": 64,
"children": [395]
"children": [396]
}
],
"sources": [
@@ -3393,7 +3416,7 @@
],
"type": {
"type": "reference",
"id": 398,
"id": 399,
"name": "StorageError"
}
}
@@ -3592,7 +3615,7 @@
],
"type": {
"type": "reference",
"id": 398,
"id": 399,
"name": "StorageError"
}
}
@@ -3791,7 +3814,7 @@
],
"type": {
"type": "reference",
"id": 398,
"id": 399,
"name": "StorageError"
}
}
@@ -3958,7 +3981,7 @@
],
"type": {
"type": "reference",
"id": 398,
"id": 399,
"name": "StorageError"
}
}
@@ -4112,7 +4135,7 @@
],
"type": {
"type": "reference",
"id": 398,
"id": 399,
"name": "StorageError"
}
}
@@ -4358,7 +4381,7 @@
],
"type": {
"type": "reference",
"id": 398,
"id": 399,
"name": "StorageError"
}
}
@@ -4796,7 +4819,7 @@
],
"type": {
"type": "reference",
"id": 398,
"id": 399,
"name": "StorageError"
}
}
@@ -4951,7 +4974,7 @@
"flags": {},
"children": [
{
"id": 394,
"id": 395,
"name": "format",
"kind": 1024,
"kindString": "Property",
@@ -4965,7 +4988,7 @@
"sources": [
{
"fileName": "src/lib/types.ts",
"line": 98,
"line": 102,
"character": 2
}
],
@@ -4997,6 +5020,29 @@
"name": "number"
}
},
{
"id": 394,
"name": "quality",
"kind": 1024,
"kindString": "Property",
"flags": {
"isOptional": true
},
"comment": {
"shortText": "Set the quality of the returned image, this is percentage based, default 80"
},
"sources": [
{
"fileName": "src/lib/types.ts",
"line": 95,
"character": 2
}
],
"type": {
"type": "intrinsic",
"name": "number"
}
},
{
"id": 393,
"name": "resize",
@@ -5061,7 +5107,7 @@
{
"title": "Properties",
"kind": 1024,
"children": [394, 392, 393, 391]
"children": [395, 392, 394, 393, 391]
}
],
"sources": [
@@ -5222,7 +5268,7 @@
],
"type": {
"type": "reference",
"id": 398,
"id": 399,
"name": "StorageError"
}
}
@@ -5553,7 +5599,7 @@
],
"type": {
"type": "reference",
"id": 398,
"id": 399,
"name": "StorageError"
}
}
@@ -5662,7 +5708,7 @@
"flags": {},
"children": [
{
"id": 394,
"id": 395,
"name": "format",
"kind": 1024,
"kindString": "Property",
@@ -5676,7 +5722,7 @@
"sources": [
{
"fileName": "src/lib/types.ts",
"line": 98,
"line": 102,
"character": 2
}
],
@@ -5708,6 +5754,29 @@
"name": "number"
}
},
{
"id": 394,
"name": "quality",
"kind": 1024,
"kindString": "Property",
"flags": {
"isOptional": true
},
"comment": {
"shortText": "Set the quality of the returned image, this is percentage based, default 80"
},
"sources": [
{
"fileName": "src/lib/types.ts",
"line": 95,
"character": 2
}
],
"type": {
"type": "intrinsic",
"name": "number"
}
},
{
"id": 393,
"name": "resize",
@@ -5772,7 +5841,7 @@
{
"title": "Properties",
"kind": 1024,
"children": [394, 392, 393, 391]
"children": [395, 392, 394, 393, 391]
}
],
"sources": [
@@ -5902,7 +5971,7 @@
],
"type": {
"type": "reference",
"id": 398,
"id": 399,
"name": "StorageError"
}
}
@@ -6043,7 +6112,7 @@
"flags": {},
"children": [
{
"id": 394,
"id": 395,
"name": "format",
"kind": 1024,
"kindString": "Property",
@@ -6057,7 +6126,7 @@
"sources": [
{
"fileName": "src/lib/types.ts",
"line": 98,
"line": 102,
"character": 2
}
],
@@ -6089,6 +6158,29 @@
"name": "number"
}
},
{
"id": 394,
"name": "quality",
"kind": 1024,
"kindString": "Property",
"flags": {
"isOptional": true
},
"comment": {
"shortText": "Set the quality of the returned image, this is percentage based, default 80"
},
"sources": [
{
"fileName": "src/lib/types.ts",
"line": 95,
"character": 2
}
],
"type": {
"type": "intrinsic",
"name": "number"
}
},
{
"id": 393,
"name": "resize",
@@ -6153,7 +6245,7 @@
{
"title": "Properties",
"kind": 1024,
"children": [394, 392, 393, 391]
"children": [395, 392, 394, 393, 391]
}
],
"sources": [
@@ -6654,7 +6746,7 @@
],
"type": {
"type": "reference",
"id": 398,
"id": 399,
"name": "StorageError"
}
}
@@ -6867,7 +6959,7 @@
],
"type": {
"type": "reference",
"id": 398,
"id": 399,
"name": "StorageError"
}
}
@@ -7040,7 +7132,7 @@
],
"type": {
"type": "reference",
"id": 398,
"id": 399,
"name": "StorageError"
}
}
@@ -7426,7 +7518,7 @@
],
"type": {
"type": "reference",
"id": 398,
"id": 399,
"name": "StorageError"
}
}
@@ -7812,7 +7904,7 @@
],
"type": {
"type": "reference",
"id": 398,
"id": 399,
"name": "StorageError"
}
}
+111 -47
View File
@@ -269,7 +269,7 @@
}
},
{
"id": 115,
"id": 116,
"name": "authUrl",
"kind": 1024,
"kindString": "Property",
@@ -279,7 +279,7 @@
"sources": [
{
"fileName": "src/SupabaseClient.ts",
"line": 57,
"line": 58,
"character": 12
}
],
@@ -356,10 +356,21 @@
"kindString": "Parameter",
"flags": {},
"type": {
"type": "reference",
"qualifiedName": "RequestInfo",
"package": "typescript",
"name": "RequestInfo"
"type": "union",
"types": [
{
"type": "reference",
"qualifiedName": "RequestInfo",
"package": "typescript",
"name": "RequestInfo"
},
{
"type": "reference",
"qualifiedName": "URL",
"package": "typescript",
"name": "URL"
}
]
}
},
{
@@ -398,7 +409,7 @@
}
},
{
"id": 117,
"id": 118,
"name": "functionsUrl",
"kind": 1024,
"kindString": "Property",
@@ -408,7 +419,7 @@
"sources": [
{
"fileName": "src/SupabaseClient.ts",
"line": 59,
"line": 60,
"character": 12
}
],
@@ -467,18 +478,16 @@
}
},
{
"id": 118,
"id": 114,
"name": "realtime",
"kind": 1024,
"kindString": "Property",
"flags": {
"isProtected": true
},
"flags": {},
"sources": [
{
"fileName": "src/SupabaseClient.ts",
"line": 60,
"character": 12
"line": 55,
"character": 2
}
],
"type": {
@@ -489,7 +498,7 @@
}
},
{
"id": 114,
"id": 115,
"name": "realtimeUrl",
"kind": 1024,
"kindString": "Property",
@@ -499,7 +508,7 @@
"sources": [
{
"fileName": "src/SupabaseClient.ts",
"line": 56,
"line": 57,
"character": 12
}
],
@@ -600,7 +609,7 @@
}
},
{
"id": 116,
"id": 117,
"name": "storageUrl",
"kind": 1024,
"kindString": "Property",
@@ -610,7 +619,7 @@
"sources": [
{
"fileName": "src/SupabaseClient.ts",
"line": 58,
"line": 59,
"character": 12
}
],
@@ -976,10 +985,21 @@
"kindString": "Parameter",
"flags": {},
"type": {
"type": "reference",
"qualifiedName": "RequestInfo",
"package": "typescript",
"name": "RequestInfo"
"type": "union",
"types": [
{
"type": "reference",
"qualifiedName": "RequestInfo",
"package": "typescript",
"name": "RequestInfo"
},
{
"type": "reference",
"qualifiedName": "URL",
"package": "typescript",
"name": "URL"
}
]
}
},
{
@@ -1375,6 +1395,10 @@
"elementType": {
"type": "union",
"types": [
{
"type": "literal",
"value": "error"
},
{
"type": "literal",
"value": "ok"
@@ -1382,10 +1406,6 @@
{
"type": "literal",
"value": "timed out"
},
{
"type": "literal",
"value": "error"
}
]
}
@@ -1445,6 +1465,10 @@
{
"type": "union",
"types": [
{
"type": "literal",
"value": "error"
},
{
"type": "literal",
"value": "ok"
@@ -1452,10 +1476,6 @@
{
"type": "literal",
"value": "timed out"
},
{
"type": "literal",
"value": "error"
}
]
}
@@ -1758,7 +1778,7 @@
{
"title": "Properties",
"kind": 1024,
"children": [113, 115, 126, 121, 117, 127, 118, 114, 119, 120, 116, 132, 131]
"children": [113, 116, 126, 121, 118, 127, 114, 115, 119, 120, 117, 132, 131]
},
{
"title": "Accessors",
@@ -2329,10 +2349,21 @@
"kindString": "Parameter",
"flags": {},
"type": {
"type": "reference",
"qualifiedName": "RequestInfo",
"package": "typescript",
"name": "RequestInfo"
"type": "union",
"types": [
{
"type": "reference",
"qualifiedName": "RequestInfo",
"package": "typescript",
"name": "RequestInfo"
},
{
"type": "reference",
"qualifiedName": "URL",
"package": "typescript",
"name": "URL"
}
]
}
},
{
@@ -2394,10 +2425,21 @@
"kindString": "Parameter",
"flags": {},
"type": {
"type": "reference",
"qualifiedName": "RequestInfo",
"package": "typescript",
"name": "RequestInfo"
"type": "union",
"types": [
{
"type": "reference",
"qualifiedName": "RequestInfo",
"package": "typescript",
"name": "RequestInfo"
},
{
"type": "reference",
"qualifiedName": "URL",
"package": "typescript",
"name": "URL"
}
]
}
},
{
@@ -2489,10 +2531,21 @@
"kindString": "Parameter",
"flags": {},
"type": {
"type": "reference",
"qualifiedName": "RequestInfo",
"package": "typescript",
"name": "RequestInfo"
"type": "union",
"types": [
{
"type": "reference",
"qualifiedName": "RequestInfo",
"package": "typescript",
"name": "RequestInfo"
},
{
"type": "reference",
"qualifiedName": "URL",
"package": "typescript",
"name": "URL"
}
]
}
},
{
@@ -2554,10 +2607,21 @@
"kindString": "Parameter",
"flags": {},
"type": {
"type": "reference",
"qualifiedName": "RequestInfo",
"package": "typescript",
"name": "RequestInfo"
"type": "union",
"types": [
{
"type": "reference",
"qualifiedName": "RequestInfo",
"package": "typescript",
"name": "RequestInfo"
},
{
"type": "reference",
"qualifiedName": "URL",
"package": "typescript",
"name": "URL"
}
]
}
},
{
@@ -700,7 +700,7 @@
}
},
{
"id": 115,
"id": 116,
"name": "authUrl",
"kind": 1024,
"kindString": "Property",
@@ -710,7 +710,7 @@
"sources": [
{
"fileName": "src/SupabaseClient.ts",
"line": 57,
"line": 58,
"character": 12
}
],
@@ -787,10 +787,21 @@
"kindString": "Parameter",
"flags": {},
"type": {
"type": "reference",
"qualifiedName": "RequestInfo",
"package": "typescript",
"name": "RequestInfo"
"type": "union",
"types": [
{
"type": "reference",
"qualifiedName": "RequestInfo",
"package": "typescript",
"name": "RequestInfo"
},
{
"type": "reference",
"qualifiedName": "URL",
"package": "typescript",
"name": "URL"
}
]
}
},
{
@@ -829,7 +840,7 @@
}
},
{
"id": 117,
"id": 118,
"name": "functionsUrl",
"kind": 1024,
"kindString": "Property",
@@ -839,7 +850,7 @@
"sources": [
{
"fileName": "src/SupabaseClient.ts",
"line": 59,
"line": 60,
"character": 12
}
],
@@ -898,18 +909,16 @@
}
},
{
"id": 118,
"id": 114,
"name": "realtime",
"kind": 1024,
"kindString": "Property",
"flags": {
"isProtected": true
},
"flags": {},
"sources": [
{
"fileName": "src/SupabaseClient.ts",
"line": 60,
"character": 12
"line": 55,
"character": 2
}
],
"type": {
@@ -920,7 +929,7 @@
}
},
{
"id": 114,
"id": 115,
"name": "realtimeUrl",
"kind": 1024,
"kindString": "Property",
@@ -930,7 +939,7 @@
"sources": [
{
"fileName": "src/SupabaseClient.ts",
"line": 56,
"line": 57,
"character": 12
}
],
@@ -1031,7 +1040,7 @@
}
},
{
"id": 116,
"id": 117,
"name": "storageUrl",
"kind": 1024,
"kindString": "Property",
@@ -1041,7 +1050,7 @@
"sources": [
{
"fileName": "src/SupabaseClient.ts",
"line": 58,
"line": 59,
"character": 12
}
],
@@ -1427,10 +1436,21 @@
"kindString": "Parameter",
"flags": {},
"type": {
"type": "reference",
"qualifiedName": "RequestInfo",
"package": "typescript",
"name": "RequestInfo"
"type": "union",
"types": [
{
"type": "reference",
"qualifiedName": "RequestInfo",
"package": "typescript",
"name": "RequestInfo"
},
{
"type": "reference",
"qualifiedName": "URL",
"package": "typescript",
"name": "URL"
}
]
}
},
{
@@ -1828,6 +1848,10 @@
"elementType": {
"type": "union",
"types": [
{
"type": "literal",
"value": "error"
},
{
"type": "literal",
"value": "ok"
@@ -1835,10 +1859,6 @@
{
"type": "literal",
"value": "timed out"
},
{
"type": "literal",
"value": "error"
}
]
}
@@ -1898,6 +1918,10 @@
{
"type": "union",
"types": [
{
"type": "literal",
"value": "error"
},
{
"type": "literal",
"value": "ok"
@@ -1905,10 +1929,6 @@
{
"type": "literal",
"value": "timed out"
},
{
"type": "literal",
"value": "error"
}
]
}
@@ -2212,7 +2232,7 @@
{
"title": "Properties",
"kind": 1024,
"children": [113, 115, 126, 121, 117, 127, 118, 114, 119, 120, 116, 132, 131]
"children": [113, 116, 126, 121, 118, 127, 114, 115, 119, 120, 117, 132, 131]
},
{
"title": "Accessors",
@@ -3214,10 +3234,21 @@
"kindString": "Parameter",
"flags": {},
"type": {
"type": "reference",
"qualifiedName": "RequestInfo",
"package": "typescript",
"name": "RequestInfo"
"type": "union",
"types": [
{
"type": "reference",
"qualifiedName": "RequestInfo",
"package": "typescript",
"name": "RequestInfo"
},
{
"type": "reference",
"qualifiedName": "URL",
"package": "typescript",
"name": "URL"
}
]
}
},
{
@@ -3279,10 +3310,21 @@
"kindString": "Parameter",
"flags": {},
"type": {
"type": "reference",
"qualifiedName": "RequestInfo",
"package": "typescript",
"name": "RequestInfo"
"type": "union",
"types": [
{
"type": "reference",
"qualifiedName": "RequestInfo",
"package": "typescript",
"name": "RequestInfo"
},
{
"type": "reference",
"qualifiedName": "URL",
"package": "typescript",
"name": "URL"
}
]
}
},
{
@@ -3374,10 +3416,21 @@
"kindString": "Parameter",
"flags": {},
"type": {
"type": "reference",
"qualifiedName": "RequestInfo",
"package": "typescript",
"name": "RequestInfo"
"type": "union",
"types": [
{
"type": "reference",
"qualifiedName": "RequestInfo",
"package": "typescript",
"name": "RequestInfo"
},
{
"type": "reference",
"qualifiedName": "URL",
"package": "typescript",
"name": "URL"
}
]
}
},
{
@@ -3439,10 +3492,21 @@
"kindString": "Parameter",
"flags": {},
"type": {
"type": "reference",
"qualifiedName": "RequestInfo",
"package": "typescript",
"name": "RequestInfo"
"type": "union",
"types": [
{
"type": "reference",
"qualifiedName": "RequestInfo",
"package": "typescript",
"name": "RequestInfo"
},
{
"type": "reference",
"qualifiedName": "URL",
"package": "typescript",
"name": "URL"
}
]
}
},
{
+142 -2
View File
@@ -43,7 +43,9 @@
"properties": {
"name": { "type": "string", "example": "avatars" },
"id": { "type": "string", "example": "avatars" },
"public": { "type": "boolean", "example": false }
"public": { "type": "boolean", "example": false },
"file_size_limit": { "anyOf": [{ "type": "integer" }, { "type": "string" }] },
"allowed_mime_types": { "type": "array", "items": { "type": "string" } }
},
"required": ["name"]
}
@@ -111,6 +113,11 @@
"name": { "type": "string" },
"owner": { "type": "string" },
"public": { "type": "boolean" },
"file_size_limit": { "type": "integer" },
"allowed_mime_types": {
"type": ["null", "array"],
"items": { "type": "string" }
},
"created_at": { "type": "string" },
"updated_at": { "type": "string" }
},
@@ -237,6 +244,11 @@
"name": { "type": "string" },
"owner": { "type": "string" },
"public": { "type": "boolean" },
"file_size_limit": { "type": "integer" },
"allowed_mime_types": {
"type": ["null", "array"],
"items": { "type": "string" }
},
"created_at": { "type": "string" },
"updated_at": { "type": "string" }
},
@@ -278,7 +290,11 @@
"application/json": {
"schema": {
"type": "object",
"properties": { "public": { "type": "boolean", "example": false } }
"properties": {
"public": { "type": "boolean", "example": false },
"file_size_limit": { "anyOf": [{ "type": "integer" }, { "type": "string" }] },
"allowed_mime_types": { "type": "array", "items": { "type": "string" } }
}
}
}
}
@@ -611,6 +627,7 @@
"owner": { "type": "string" },
"id": { "anyOf": [{ "type": "string" }, { "type": "null" }] },
"updated_at": { "anyOf": [{ "type": "string" }, { "type": "null" }] },
"version": { "type": "string" },
"created_at": { "anyOf": [{ "type": "string" }, { "type": "null" }] },
"last_accessed_at": { "anyOf": [{ "type": "string" }, { "type": "null" }] },
"metadata": {
@@ -626,6 +643,11 @@
"name": { "type": "string" },
"owner": { "type": "string" },
"public": { "type": "boolean" },
"file_size_limit": { "type": "integer" },
"allowed_mime_types": {
"type": ["null", "array"],
"items": { "type": "string" }
},
"created_at": { "type": "string" },
"updated_at": { "type": "string" }
},
@@ -708,6 +730,118 @@
}
}
},
"/object/upload/sign/{bucketName}/{wildcard}": {
"post": {
"summary": "Generate a presigned url to upload an object",
"tags": ["object"],
"parameters": [
{
"schema": { "type": "string", "example": "avatars" },
"example": "avatars",
"in": "path",
"name": "bucketName",
"required": true
},
{
"schema": { "type": "string", "example": "folder/cat.png" },
"example": "folder/cat.png",
"in": "path",
"name": "*",
"required": true
},
{
"in": "header",
"name": "authorization",
"required": true,
"schema": { "type": "string" },
"example": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZS1kZW1vIiwicm9sZSI6ImFub24ifQ.625_WdcF3KHqz5amU0x2X5WWHP-OEs_4qj0ssLNHzTs"
}
],
"responses": {
"200": {
"description": "Successful response",
"content": {
"application/json": {
"schema": {
"description": "Successful response",
"type": "object",
"properties": {
"url": {
"type": "string",
"example": "/object/sign/upload/avatars/folder/cat.png?token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1cmwiOiJhdmF0YXJzL2ZvbGRlci9jYXQucG5nIiwiaWF0IjoxNjE3NzI2MjczLCJleHAiOjE2MTc3MjcyNzN9.s7Gt8ME80iREVxPhH01ZNv8oUn4XtaWsmiQ5csiUHn4"
}
},
"required": ["url"]
}
}
}
},
"4XX": {
"description": "Error response",
"content": {
"application/json": {
"schema": { "description": "Error response", "$ref": "#/components/schemas/def-1" }
}
}
}
}
},
"put": {
"summary": "Uploads an object via a presigned URL",
"tags": ["object"],
"parameters": [
{
"schema": {
"type": "string",
"example": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1cmwiOiJidWNrZXQyL3B1YmxpYy9zYWRjYXQtdXBsb2FkMjMucG5nIiwiaWF0IjoxNjE3NzI2MjczLCJleHAiOjE2MTc3MjcyNzN9.uBQcXzuvXxfw-9WgzWMBfE_nR3VOgpvfZe032sfLSSk"
},
"example": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1cmwiOiJidWNrZXQyL3B1YmxpYy9zYWRjYXQtdXBsb2FkMjMucG5nIiwiaWF0IjoxNjE3NzI2MjczLCJleHAiOjE2MTc3MjcyNzN9.uBQcXzuvXxfw-9WgzWMBfE_nR3VOgpvfZe032sfLSSk",
"in": "query",
"name": "token",
"required": true
},
{
"schema": { "type": "string", "example": "avatars" },
"example": "avatars",
"in": "path",
"name": "bucketName",
"required": true
},
{
"schema": { "type": "string", "example": "folder/cat.png" },
"example": "folder/cat.png",
"in": "path",
"name": "*",
"required": true
}
],
"responses": {
"200": {
"description": "Succesful response",
"content": {
"application/json": {
"schema": {
"description": "Succesful response",
"type": "object",
"properties": {
"Key": { "type": "string", "example": "projectref/avatars/folder/cat.png" }
},
"required": ["Key"]
}
}
}
},
"4XX": {
"description": "Error response",
"content": {
"application/json": {
"schema": { "$ref": "#/components/schemas/def-1", "description": "Error response" }
}
}
}
}
}
},
"/object/sign/{bucketName}/{wildcard}": {
"post": {
"summary": "Generate a presigned url to retrieve an object",
@@ -1031,6 +1165,7 @@
"owner": { "type": "string" },
"id": { "anyOf": [{ "type": "string" }, { "type": "null" }] },
"updated_at": { "anyOf": [{ "type": "string" }, { "type": "null" }] },
"version": { "type": "string" },
"created_at": { "anyOf": [{ "type": "string" }, { "type": "null" }] },
"last_accessed_at": { "anyOf": [{ "type": "string" }, { "type": "null" }] },
"metadata": {
@@ -1046,6 +1181,11 @@
"name": { "type": "string" },
"owner": { "type": "string" },
"public": { "type": "boolean" },
"file_size_limit": { "type": "integer" },
"allowed_mime_types": {
"type": ["null", "array"],
"items": { "type": "string" }
},
"created_at": { "type": "string" },
"updated_at": { "type": "string" }
},
+2 -6
View File
@@ -1164,7 +1164,6 @@ functions:
description: |
Only relevant for range columns. Match only rows where every element in column is greater than any element in range.
examples:
- id: with-select
name: With `select()`
@@ -1267,7 +1266,6 @@ functions:
values.
hideCodeBlock: true
- id: range-lte
title: rangeLte()
description: |
@@ -2084,7 +2082,7 @@ functions:
description: |
- getOAuthSignInURL() provides the URL which needs to be opened in a SFSafariViewController instance.
- The redirectTo URL needs to be setup correctly in your project under Authentication -> URL Configuration -> Redirect URLs.
- For full implementation example check out [Supabase-Swift Github](https://github.com/supabase-community/supabase-swift#social-login-implementation).
- For full implementation example check out [Supabase-Swift Github](https://github.com/supabase-community/supabase-swift#social-login-implementation).
code: |
```js
let url = try await supabase.auth
@@ -2101,7 +2099,7 @@ functions:
- See [redirect URLs and wildcards](/docs/guides/auth/overview#redirect-urls-and-wildcards) to add additional redirect URLs to your project.
- getOAuthSignInURL() provides the URL which needs to be opened in a SFSafariViewController instance.
- The redirectTo URL needs to be setup correctly in your project under Authentication -> URL Configuration -> Redirect URLs.
- For full implementation example check out [Supabase-Swift Github](https://github.com/supabase-community/supabase-swift#social-login-implementation).
- For full implementation example check out [Supabase-Swift Github](https://github.com/supabase-community/supabase-swift#social-login-implementation).
code: |
```js
let url = try await supabase.auth
@@ -2687,5 +2685,3 @@ functions:
.from(id: "avatars")
.list()
```
File diff suppressed because it is too large. Load diff
@@ -58,6 +58,22 @@
"public": {
"type": "boolean",
"example": false
},
"file_size_limit": {
"anyOf": [
{
"type": "integer"
},
{
"type": "string"
}
]
},
"allowed_mime_types": {
"type": "array",
"items": {
"type": "string"
}
}
},
"required": ["name"]
@@ -159,6 +175,15 @@
"public": {
"type": "boolean"
},
"file_size_limit": {
"type": "integer"
},
"allowed_mime_types": {
"type": ["null", "array"],
"items": {
"type": "string"
}
},
"created_at": {
"type": "string"
},
@@ -342,6 +367,15 @@
"public": {
"type": "boolean"
},
"file_size_limit": {
"type": "integer"
},
"allowed_mime_types": {
"type": ["null", "array"],
"items": {
"type": "string"
}
},
"created_at": {
"type": "string"
},
@@ -407,6 +441,22 @@
"public": {
"type": "boolean",
"example": false
},
"file_size_limit": {
"anyOf": [
{
"type": "integer"
},
{
"type": "string"
}
]
},
"allowed_mime_types": {
"type": "array",
"items": {
"type": "string"
}
}
}
}
@@ -923,6 +973,9 @@
}
]
},
"version": {
"type": "string"
},
"created_at": {
"anyOf": [
{
@@ -969,6 +1022,15 @@
"public": {
"type": "boolean"
},
"file_size_limit": {
"type": "integer"
},
"allowed_mime_types": {
"type": ["null", "array"],
"items": {
"type": "string"
}
},
"created_at": {
"type": "string"
},
@@ -1097,6 +1159,167 @@
}
}
},
"/object/upload/sign/{bucketName}/{wildcard}": {
"post": {
"summary": "Generate a presigned url to upload an object",
"tags": ["object"],
"parameters": [
{
"schema": {
"type": "string",
"example": "avatars"
},
"example": "avatars",
"in": "path",
"name": "bucketName",
"required": true
},
{
"schema": {
"type": "string",
"example": "folder/cat.png"
},
"example": "folder/cat.png",
"in": "path",
"name": "*",
"required": true
},
{
"in": "header",
"name": "authorization",
"required": true,
"schema": {
"type": "string"
},
"example": "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZS1kZW1vIiwicm9sZSI6ImFub24ifQ.625_WdcF3KHqz5amU0x2X5WWHP-OEs_4qj0ssLNHzTs"
}
],
"responses": {
"200": {
"description": "Successful response",
"content": {
"application/json": {
"schema": {
"description": "Successful response",
"type": "object",
"properties": {
"url": {
"type": "string",
"example": "/object/sign/upload/avatars/folder/cat.png?token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1cmwiOiJhdmF0YXJzL2ZvbGRlci9jYXQucG5nIiwiaWF0IjoxNjE3NzI2MjczLCJleHAiOjE2MTc3MjcyNzN9.s7Gt8ME80iREVxPhH01ZNv8oUn4XtaWsmiQ5csiUHn4"
}
},
"required": ["url"]
}
}
}
},
"4XX": {
"description": "Error response",
"content": {
"application/json": {
"schema": {
"description": "Error response",
"type": "object",
"properties": {
"statusCode": {
"type": "string"
},
"error": {
"type": "string"
},
"message": {
"type": "string"
}
},
"required": ["statusCode", "error", "message"],
"title": "errorSchema"
}
}
}
}
}
},
"put": {
"summary": "Uploads an object via a presigned URL",
"tags": ["object"],
"parameters": [
{
"schema": {
"type": "string",
"example": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1cmwiOiJidWNrZXQyL3B1YmxpYy9zYWRjYXQtdXBsb2FkMjMucG5nIiwiaWF0IjoxNjE3NzI2MjczLCJleHAiOjE2MTc3MjcyNzN9.uBQcXzuvXxfw-9WgzWMBfE_nR3VOgpvfZe032sfLSSk"
},
"example": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1cmwiOiJidWNrZXQyL3B1YmxpYy9zYWRjYXQtdXBsb2FkMjMucG5nIiwiaWF0IjoxNjE3NzI2MjczLCJleHAiOjE2MTc3MjcyNzN9.uBQcXzuvXxfw-9WgzWMBfE_nR3VOgpvfZe032sfLSSk",
"in": "query",
"name": "token",
"required": true
},
{
"schema": {
"type": "string",
"example": "avatars"
},
"example": "avatars",
"in": "path",
"name": "bucketName",
"required": true
},
{
"schema": {
"type": "string",
"example": "folder/cat.png"
},
"example": "folder/cat.png",
"in": "path",
"name": "*",
"required": true
}
],
"responses": {
"200": {
"description": "Succesful response",
"content": {
"application/json": {
"schema": {
"description": "Succesful response",
"type": "object",
"properties": {
"Key": {
"type": "string",
"example": "projectref/avatars/folder/cat.png"
}
},
"required": ["Key"]
}
}
}
},
"4XX": {
"description": "Error response",
"content": {
"application/json": {
"schema": {
"description": "Error response",
"type": "object",
"properties": {
"statusCode": {
"type": "string"
},
"error": {
"type": "string"
},
"message": {
"type": "string"
}
},
"required": ["statusCode", "error", "message"],
"title": "errorSchema"
}
}
}
}
}
}
},
"/object/sign/{bucketName}/{wildcard}": {
"post": {
"summary": "Generate a presigned url to retrieve an object",
@@ -1603,6 +1826,9 @@
}
]
},
"version": {
"type": "string"
},
"created_at": {
"anyOf": [
{
@@ -1649,6 +1875,15 @@
"public": {
"type": "boolean"
},
"file_size_limit": {
"type": "integer"
},
"allowed_mime_types": {
"type": ["null", "array"],
"items": {
"type": "string"
}
},
"created_at": {
"type": "string"
},