@instantdb/platform 1.0.10 → 1.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/.turbo/turbo-build.log +8 -8
- package/dist/commonjs/consts.d.ts +4 -0
- package/dist/commonjs/consts.d.ts.map +1 -1
- package/dist/commonjs/consts.js +5 -1
- package/dist/commonjs/consts.js.map +1 -1
- package/dist/commonjs/index.d.ts +1 -1
- package/dist/commonjs/index.d.ts.map +1 -1
- package/dist/commonjs/index.js +5 -1
- package/dist/commonjs/index.js.map +1 -1
- package/dist/esm/consts.d.ts +4 -0
- package/dist/esm/consts.d.ts.map +1 -1
- package/dist/esm/consts.js +4 -0
- package/dist/esm/consts.js.map +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/standalone/index.js +6 -2
- package/dist/standalone/index.umd.cjs +5 -5
- package/package.json +3 -3
- package/src/consts.ts +8 -0
- package/src/index.ts +4 -0
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
|
|
2
|
-
> @instantdb/platform@1.0.
|
|
2
|
+
> @instantdb/platform@1.0.11 build /home/runner/work/instant/instant/client/packages/platform
|
|
3
3
|
> rm -rf dist; npm run build:tshy && npm run build:standalone && npm run check-exports
|
|
4
4
|
|
|
5
5
|
npm warn Unknown env config "verify-deps-before-run". This will stop working in the next major version of npm. See `npm help npmrc` for supported config options.
|
|
6
6
|
npm warn Unknown user config "always-auth". This will stop working in the next major version of npm. See `npm help npmrc` for supported config options.
|
|
7
7
|
|
|
8
|
-
> @instantdb/platform@1.0.
|
|
8
|
+
> @instantdb/platform@1.0.11 build:tshy
|
|
9
9
|
> tshy
|
|
10
10
|
|
|
11
11
|
npm warn Unknown env config "verify-deps-before-run". This will stop working in the next major version of npm. See `npm help npmrc` for supported config options.
|
|
12
12
|
npm warn Unknown user config "always-auth". This will stop working in the next major version of npm. See `npm help npmrc` for supported config options.
|
|
13
13
|
|
|
14
|
-
> @instantdb/platform@1.0.
|
|
14
|
+
> @instantdb/platform@1.0.11 build:standalone
|
|
15
15
|
> vite build
|
|
16
16
|
|
|
17
17
|
[36mvite v5.4.14 [32mbuilding for production...[36m[39m
|
|
@@ -19,17 +19,17 @@ transforming...
|
|
|
19
19
|
[32m✓[39m 83 modules transformed.
|
|
20
20
|
rendering chunks...
|
|
21
21
|
computing gzip size...
|
|
22
|
-
[2mdist/standalone/[22m[36mindex.umd.cjs [39m[1m[2m354.
|
|
23
|
-
[2mdist/standalone/[22m[36mindex.js [39m[1m[2m462.
|
|
24
|
-
[32m✓ built in 3.
|
|
22
|
+
[2mdist/standalone/[22m[36mindex.umd.cjs [39m[1m[2m354.69 kB[22m[1m[22m[2m │ gzip: 96.96 kB[22m
|
|
23
|
+
[2mdist/standalone/[22m[36mindex.js [39m[1m[2m462.98 kB[22m[1m[22m[2m │ gzip: 109.34 kB[22m
|
|
24
|
+
[32m✓ built in 3.33s[39m
|
|
25
25
|
npm warn Unknown env config "verify-deps-before-run". This will stop working in the next major version of npm. See `npm help npmrc` for supported config options.
|
|
26
26
|
npm warn Unknown user config "always-auth". This will stop working in the next major version of npm. See `npm help npmrc` for supported config options.
|
|
27
27
|
|
|
28
|
-
> @instantdb/platform@1.0.
|
|
28
|
+
> @instantdb/platform@1.0.11 check-exports
|
|
29
29
|
> attw --pack .
|
|
30
30
|
|
|
31
31
|
|
|
32
|
-
@instantdb/platform v1.0.
|
|
32
|
+
@instantdb/platform v1.0.11
|
|
33
33
|
|
|
34
34
|
Build tools:
|
|
35
35
|
- @arethetypeswrong/cli@^0.17.4
|
|
@@ -2,4 +2,8 @@ export declare const GOOGLE_AUTHORIZATION_ENDPOINT = "https://accounts.google.co
|
|
|
2
2
|
export declare const GOOGLE_TOKEN_ENDPOINT = "https://oauth2.googleapis.com/token";
|
|
3
3
|
export declare const GOOGLE_DISCOVERY_ENDPOINT = "https://accounts.google.com/.well-known/openid-configuration";
|
|
4
4
|
export declare const GOOGLE_DEFAULT_CALLBACK_URL = "https://api.instantdb.com/runtime/oauth/callback";
|
|
5
|
+
export declare const APPLE_AUTHORIZATION_ENDPOINT = "https://appleid.apple.com/auth/authorize";
|
|
6
|
+
export declare const APPLE_TOKEN_ENDPOINT = "https://appleid.apple.com/auth/token";
|
|
7
|
+
export declare const APPLE_DISCOVERY_ENDPOINT = "https://appleid.apple.com/.well-known/openid-configuration";
|
|
8
|
+
export declare const APPLE_DEFAULT_CALLBACK_URL = "https://api.instantdb.com/runtime/oauth/callback";
|
|
5
9
|
//# sourceMappingURL=consts.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"consts.d.ts","sourceRoot":"","sources":["../../src/consts.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,6BAA6B,iDACM,CAAC;AACjD,eAAO,MAAM,qBAAqB,wCAAwC,CAAC;AAC3E,eAAO,MAAM,yBAAyB,iEAC0B,CAAC;AACjE,eAAO,MAAM,2BAA2B,qDACY,CAAC"}
|
|
1
|
+
{"version":3,"file":"consts.d.ts","sourceRoot":"","sources":["../../src/consts.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,6BAA6B,iDACM,CAAC;AACjD,eAAO,MAAM,qBAAqB,wCAAwC,CAAC;AAC3E,eAAO,MAAM,yBAAyB,iEAC0B,CAAC;AACjE,eAAO,MAAM,2BAA2B,qDACY,CAAC;AAErD,eAAO,MAAM,4BAA4B,6CACG,CAAC;AAC7C,eAAO,MAAM,oBAAoB,yCAAyC,CAAC;AAC3E,eAAO,MAAM,wBAAwB,+DACyB,CAAC;AAC/D,eAAO,MAAM,0BAA0B,qDACa,CAAC"}
|
package/dist/commonjs/consts.js
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GOOGLE_DEFAULT_CALLBACK_URL = exports.GOOGLE_DISCOVERY_ENDPOINT = exports.GOOGLE_TOKEN_ENDPOINT = exports.GOOGLE_AUTHORIZATION_ENDPOINT = void 0;
|
|
3
|
+
exports.APPLE_DEFAULT_CALLBACK_URL = exports.APPLE_DISCOVERY_ENDPOINT = exports.APPLE_TOKEN_ENDPOINT = exports.APPLE_AUTHORIZATION_ENDPOINT = exports.GOOGLE_DEFAULT_CALLBACK_URL = exports.GOOGLE_DISCOVERY_ENDPOINT = exports.GOOGLE_TOKEN_ENDPOINT = exports.GOOGLE_AUTHORIZATION_ENDPOINT = void 0;
|
|
4
4
|
exports.GOOGLE_AUTHORIZATION_ENDPOINT = 'https://accounts.google.com/o/oauth2/v2/auth';
|
|
5
5
|
exports.GOOGLE_TOKEN_ENDPOINT = 'https://oauth2.googleapis.com/token';
|
|
6
6
|
exports.GOOGLE_DISCOVERY_ENDPOINT = 'https://accounts.google.com/.well-known/openid-configuration';
|
|
7
7
|
exports.GOOGLE_DEFAULT_CALLBACK_URL = 'https://api.instantdb.com/runtime/oauth/callback';
|
|
8
|
+
exports.APPLE_AUTHORIZATION_ENDPOINT = 'https://appleid.apple.com/auth/authorize';
|
|
9
|
+
exports.APPLE_TOKEN_ENDPOINT = 'https://appleid.apple.com/auth/token';
|
|
10
|
+
exports.APPLE_DISCOVERY_ENDPOINT = 'https://appleid.apple.com/.well-known/openid-configuration';
|
|
11
|
+
exports.APPLE_DEFAULT_CALLBACK_URL = 'https://api.instantdb.com/runtime/oauth/callback';
|
|
8
12
|
//# sourceMappingURL=consts.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"consts.js","sourceRoot":"","sources":["../../src/consts.ts"],"names":[],"mappings":";;;AAAa,QAAA,6BAA6B,GACxC,8CAA8C,CAAC;AACpC,QAAA,qBAAqB,GAAG,qCAAqC,CAAC;AAC9D,QAAA,yBAAyB,GACpC,8DAA8D,CAAC;AACpD,QAAA,2BAA2B,GACtC,kDAAkD,CAAC","sourcesContent":["export const GOOGLE_AUTHORIZATION_ENDPOINT =\n 'https://accounts.google.com/o/oauth2/v2/auth';\nexport const GOOGLE_TOKEN_ENDPOINT = 'https://oauth2.googleapis.com/token';\nexport const GOOGLE_DISCOVERY_ENDPOINT =\n 'https://accounts.google.com/.well-known/openid-configuration';\nexport const GOOGLE_DEFAULT_CALLBACK_URL =\n 'https://api.instantdb.com/runtime/oauth/callback';\n"]}
|
|
1
|
+
{"version":3,"file":"consts.js","sourceRoot":"","sources":["../../src/consts.ts"],"names":[],"mappings":";;;AAAa,QAAA,6BAA6B,GACxC,8CAA8C,CAAC;AACpC,QAAA,qBAAqB,GAAG,qCAAqC,CAAC;AAC9D,QAAA,yBAAyB,GACpC,8DAA8D,CAAC;AACpD,QAAA,2BAA2B,GACtC,kDAAkD,CAAC;AAExC,QAAA,4BAA4B,GACvC,0CAA0C,CAAC;AAChC,QAAA,oBAAoB,GAAG,sCAAsC,CAAC;AAC9D,QAAA,wBAAwB,GACnC,4DAA4D,CAAC;AAClD,QAAA,0BAA0B,GACrC,kDAAkD,CAAC","sourcesContent":["export const GOOGLE_AUTHORIZATION_ENDPOINT =\n 'https://accounts.google.com/o/oauth2/v2/auth';\nexport const GOOGLE_TOKEN_ENDPOINT = 'https://oauth2.googleapis.com/token';\nexport const GOOGLE_DISCOVERY_ENDPOINT =\n 'https://accounts.google.com/.well-known/openid-configuration';\nexport const GOOGLE_DEFAULT_CALLBACK_URL =\n 'https://api.instantdb.com/runtime/oauth/callback';\n\nexport const APPLE_AUTHORIZATION_ENDPOINT =\n 'https://appleid.apple.com/auth/authorize';\nexport const APPLE_TOKEN_ENDPOINT = 'https://appleid.apple.com/auth/token';\nexport const APPLE_DISCOVERY_ENDPOINT =\n 'https://appleid.apple.com/.well-known/openid-configuration';\nexport const APPLE_DEFAULT_CALLBACK_URL =\n 'https://api.instantdb.com/runtime/oauth/callback';\n"]}
|
package/dist/commonjs/index.d.ts
CHANGED
|
@@ -10,5 +10,5 @@ import { i, type InstantRules } from '@instantdb/core';
|
|
|
10
10
|
import { exchangeCodeForToken, exchangeRefreshToken } from './serverOAuth.ts';
|
|
11
11
|
export { type InstantAPIPlatformSchema, type InstantDBOAuthAccessToken, type OAuthHandlerConfig, type OAuthScope, type InstantRules, OAuthHandler, InstantOAuthError, generateSchemaTypescriptFile, collectSystemCatalogIdentNames, validateSchema, SchemaValidationError, generatePermsTypescriptFile, permsTypescriptFileToCode, apiSchemaToInstantSchemaDef, schemaTypescriptFileToInstantSchema, version, translatePlanSteps, PlatformApi, ProgressPromise, exchangeCodeForToken, exchangeRefreshToken, i, };
|
|
12
12
|
export { diffSchemas, convertTxSteps, isRenamePromptItem, buildAutoRenameSelector, type RenameResolveFn, type MigrationTx, type MigrationTxSpecific, type MigrationTxTypes, type Identifier, } from './migrations.ts';
|
|
13
|
-
export { GOOGLE_AUTHORIZATION_ENDPOINT, GOOGLE_DEFAULT_CALLBACK_URL, GOOGLE_DISCOVERY_ENDPOINT, GOOGLE_TOKEN_ENDPOINT, } from './consts.ts';
|
|
13
|
+
export { GOOGLE_AUTHORIZATION_ENDPOINT, GOOGLE_DEFAULT_CALLBACK_URL, GOOGLE_DISCOVERY_ENDPOINT, GOOGLE_TOKEN_ENDPOINT, APPLE_AUTHORIZATION_ENDPOINT, APPLE_DEFAULT_CALLBACK_URL, APPLE_DISCOVERY_ENDPOINT, APPLE_TOKEN_ENDPOINT, } from './consts.ts';
|
|
14
14
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,KAAK,UAAU,EAAE,MAAM,kBAAkB,CAAC;AACtE,OAAO,EACL,KAAK,yBAAyB,EAC9B,KAAK,kBAAkB,EACvB,YAAY,EACb,MAAM,YAAY,CAAC;AACpB,OAAO,EACL,2BAA2B,EAC3B,yBAAyB,EAC1B,MAAM,YAAY,CAA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AC5B,0BAA0B,EAC1B,wBAAwB,EACxB,oBAAoB,GACrB,MAAM,aAAa,CAAC"}
|
package/dist/commonjs/index.js
CHANGED
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.GOOGLE_TOKEN_ENDPOINT = exports.GOOGLE_DISCOVERY_ENDPOINT = exports.GOOGLE_DEFAULT_CALLBACK_URL = exports.GOOGLE_AUTHORIZATION_ENDPOINT = exports.buildAutoRenameSelector = exports.isRenamePromptItem = exports.convertTxSteps = exports.diffSchemas = exports.i = exports.exchangeRefreshToken = exports.exchangeCodeForToken = exports.ProgressPromise = exports.PlatformApi = exports.translatePlanSteps = exports.version = exports.schemaTypescriptFileToInstantSchema = exports.apiSchemaToInstantSchemaDef = exports.permsTypescriptFileToCode = exports.generatePermsTypescriptFile = exports.SchemaValidationError = exports.validateSchema = exports.collectSystemCatalogIdentNames = exports.generateSchemaTypescriptFile = exports.InstantOAuthError = exports.OAuthHandler = void 0;
|
|
6
|
+
exports.APPLE_TOKEN_ENDPOINT = exports.APPLE_DISCOVERY_ENDPOINT = exports.APPLE_DEFAULT_CALLBACK_URL = exports.APPLE_AUTHORIZATION_ENDPOINT = exports.GOOGLE_TOKEN_ENDPOINT = exports.GOOGLE_DISCOVERY_ENDPOINT = exports.GOOGLE_DEFAULT_CALLBACK_URL = exports.GOOGLE_AUTHORIZATION_ENDPOINT = exports.buildAutoRenameSelector = exports.isRenamePromptItem = exports.convertTxSteps = exports.diffSchemas = exports.i = exports.exchangeRefreshToken = exports.exchangeCodeForToken = exports.ProgressPromise = exports.PlatformApi = exports.translatePlanSteps = exports.version = exports.schemaTypescriptFileToInstantSchema = exports.apiSchemaToInstantSchemaDef = exports.permsTypescriptFileToCode = exports.generatePermsTypescriptFile = exports.SchemaValidationError = exports.validateSchema = exports.collectSystemCatalogIdentNames = exports.generateSchemaTypescriptFile = exports.InstantOAuthError = exports.OAuthHandler = void 0;
|
|
7
7
|
const oauthCommon_ts_1 = require("./oauthCommon.js");
|
|
8
8
|
Object.defineProperty(exports, "InstantOAuthError", { enumerable: true, get: function () { return oauthCommon_ts_1.InstantOAuthError; } });
|
|
9
9
|
const oauth_ts_1 = require("./oauth.js");
|
|
@@ -41,4 +41,8 @@ Object.defineProperty(exports, "GOOGLE_AUTHORIZATION_ENDPOINT", { enumerable: tr
|
|
|
41
41
|
Object.defineProperty(exports, "GOOGLE_DEFAULT_CALLBACK_URL", { enumerable: true, get: function () { return consts_ts_1.GOOGLE_DEFAULT_CALLBACK_URL; } });
|
|
42
42
|
Object.defineProperty(exports, "GOOGLE_DISCOVERY_ENDPOINT", { enumerable: true, get: function () { return consts_ts_1.GOOGLE_DISCOVERY_ENDPOINT; } });
|
|
43
43
|
Object.defineProperty(exports, "GOOGLE_TOKEN_ENDPOINT", { enumerable: true, get: function () { return consts_ts_1.GOOGLE_TOKEN_ENDPOINT; } });
|
|
44
|
+
Object.defineProperty(exports, "APPLE_AUTHORIZATION_ENDPOINT", { enumerable: true, get: function () { return consts_ts_1.APPLE_AUTHORIZATION_ENDPOINT; } });
|
|
45
|
+
Object.defineProperty(exports, "APPLE_DEFAULT_CALLBACK_URL", { enumerable: true, get: function () { return consts_ts_1.APPLE_DEFAULT_CALLBACK_URL; } });
|
|
46
|
+
Object.defineProperty(exports, "APPLE_DISCOVERY_ENDPOINT", { enumerable: true, get: function () { return consts_ts_1.APPLE_DISCOVERY_ENDPOINT; } });
|
|
47
|
+
Object.defineProperty(exports, "APPLE_TOKEN_ENDPOINT", { enumerable: true, get: function () { return consts_ts_1.APPLE_TOKEN_ENDPOINT; } });
|
|
44
48
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;A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zBA,oCAA2B,OAyBA;AAI3B,4FA5BA,oBAAW,OA4BA;AADX,mGA1BA,2BAAkB,OA0BA;AAxBpB,iEAA6E;AAsB3E,oHAtBO,0DAAmC,OAsBP;AApBrC,8DAAmC;AAqBjC,kBArBK,oBAAO,CAqBL;AApBT,6DAAuD;AAuBrD,gGAvBO,oCAAe,OAuBP;AAtBjB,0CAAuD;AAyBrD,kFAzBO,QAAC,OAyBP;AAxBH,qDAA8E;AAsB5E,qGAtBO,qCAAoB,OAsBP;AACpB,qGAvB6B,qCAAoB,OAuB7B;AAItB,iDAUyB;AATvB,4GAAA,WAAW,OAAA;AACX,+GAAA,cAAc,OAAA;AACd,mHAAA,kBAAkB,OAAA;AAClB,wHAAA,uBAAuB,OAAA;AAQzB,yCASqB;AARnB,0HAAA,6BAA6B,OAAA;AAC7B,wHAAA,2BAA2B,OAAA;AAC3B,sHAAA,yBAAyB,OAAA;AACzB,kHAAA,qBAAqB,OAAA;AACrB,yHAAA,4BAA4B,OAAA;AAC5B,uHAAA,0BAA0B,OAAA;AAC1B,qHAAA,wBAAwB,OAAA;AACxB,iHAAA,oBAAoB,OAAA","sourcesContent":["import { InstantOAuthError, type OAuthScope } from './oauthCommon.ts';\nimport {\n type InstantDBOAuthAccessToken,\n type OAuthHandlerConfig,\n OAuthHandler,\n} from './oauth.ts';\nimport {\n generatePermsTypescriptFile,\n permsTypescriptFileToCode,\n} from './perms.ts';\nimport {\n type InstantAPIPlatformSchema,\n generateSchemaTypescriptFile,\n collectSystemCatalogIdentNames,\n validateSchema,\n SchemaValidationError,\n} from './schema.ts';\nimport {\n apiSchemaToInstantSchemaDef,\n PlatformApi,\n translatePlanSteps,\n} from './api.ts';\nimport { schemaTypescriptFileToInstantSchema } from './typescript-schema.ts';\n\nimport version from './version.ts';\nimport { ProgressPromise } from './ProgressPromise.ts';\nimport { i, type InstantRules } from '@instantdb/core';\nimport { exchangeCodeForToken, exchangeRefreshToken } from './serverOAuth.ts';\n\nexport {\n type InstantAPIPlatformSchema,\n type InstantDBOAuthAccessToken,\n type OAuthHandlerConfig,\n type OAuthScope,\n type InstantRules,\n OAuthHandler,\n InstantOAuthError,\n generateSchemaTypescriptFile,\n collectSystemCatalogIdentNames,\n validateSchema,\n SchemaValidationError,\n generatePermsTypescriptFile,\n permsTypescriptFileToCode,\n apiSchemaToInstantSchemaDef,\n schemaTypescriptFileToInstantSchema,\n version,\n translatePlanSteps,\n PlatformApi,\n ProgressPromise,\n exchangeCodeForToken,\n exchangeRefreshToken,\n i,\n};\n\nexport {\n diffSchemas,\n convertTxSteps,\n isRenamePromptItem,\n buildAutoRenameSelector,\n type RenameResolveFn,\n type MigrationTx,\n type MigrationTxSpecific,\n type MigrationTxTypes,\n type Identifier,\n} from './migrations.ts';\n\nexport {\n GOOGLE_AUTHORIZATION_ENDPOINT,\n GOOGLE_DEFAULT_CALLBACK_URL,\n GOOGLE_DISCOVERY_ENDPOINT,\n GOOGLE_TOKEN_ENDPOINT,\n APPLE_AUTHORIZATION_ENDPOINT,\n APPLE_DEFAULT_CALLBACK_URL,\n APPLE_DISCOVERY_ENDPOINT,\n APPLE_TOKEN_ENDPOINT,\n} from './consts.ts';\n"]}
|
package/dist/esm/consts.d.ts
CHANGED
|
@@ -2,4 +2,8 @@ export declare const GOOGLE_AUTHORIZATION_ENDPOINT = "https://accounts.google.co
|
|
|
2
2
|
export declare const GOOGLE_TOKEN_ENDPOINT = "https://oauth2.googleapis.com/token";
|
|
3
3
|
export declare const GOOGLE_DISCOVERY_ENDPOINT = "https://accounts.google.com/.well-known/openid-configuration";
|
|
4
4
|
export declare const GOOGLE_DEFAULT_CALLBACK_URL = "https://api.instantdb.com/runtime/oauth/callback";
|
|
5
|
+
export declare const APPLE_AUTHORIZATION_ENDPOINT = "https://appleid.apple.com/auth/authorize";
|
|
6
|
+
export declare const APPLE_TOKEN_ENDPOINT = "https://appleid.apple.com/auth/token";
|
|
7
|
+
export declare const APPLE_DISCOVERY_ENDPOINT = "https://appleid.apple.com/.well-known/openid-configuration";
|
|
8
|
+
export declare const APPLE_DEFAULT_CALLBACK_URL = "https://api.instantdb.com/runtime/oauth/callback";
|
|
5
9
|
//# sourceMappingURL=consts.d.ts.map
|
package/dist/esm/consts.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"consts.d.ts","sourceRoot":"","sources":["../../src/consts.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,6BAA6B,iDACM,CAAC;AACjD,eAAO,MAAM,qBAAqB,wCAAwC,CAAC;AAC3E,eAAO,MAAM,yBAAyB,iEAC0B,CAAC;AACjE,eAAO,MAAM,2BAA2B,qDACY,CAAC"}
|
|
1
|
+
{"version":3,"file":"consts.d.ts","sourceRoot":"","sources":["../../src/consts.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,6BAA6B,iDACM,CAAC;AACjD,eAAO,MAAM,qBAAqB,wCAAwC,CAAC;AAC3E,eAAO,MAAM,yBAAyB,iEAC0B,CAAC;AACjE,eAAO,MAAM,2BAA2B,qDACY,CAAC;AAErD,eAAO,MAAM,4BAA4B,6CACG,CAAC;AAC7C,eAAO,MAAM,oBAAoB,yCAAyC,CAAC;AAC3E,eAAO,MAAM,wBAAwB,+DACyB,CAAC;AAC/D,eAAO,MAAM,0BAA0B,qDACa,CAAC"}
|
package/dist/esm/consts.js
CHANGED
|
@@ -2,4 +2,8 @@ export const GOOGLE_AUTHORIZATION_ENDPOINT = 'https://accounts.google.com/o/oaut
|
|
|
2
2
|
export const GOOGLE_TOKEN_ENDPOINT = 'https://oauth2.googleapis.com/token';
|
|
3
3
|
export const GOOGLE_DISCOVERY_ENDPOINT = 'https://accounts.google.com/.well-known/openid-configuration';
|
|
4
4
|
export const GOOGLE_DEFAULT_CALLBACK_URL = 'https://api.instantdb.com/runtime/oauth/callback';
|
|
5
|
+
export const APPLE_AUTHORIZATION_ENDPOINT = 'https://appleid.apple.com/auth/authorize';
|
|
6
|
+
export const APPLE_TOKEN_ENDPOINT = 'https://appleid.apple.com/auth/token';
|
|
7
|
+
export const APPLE_DISCOVERY_ENDPOINT = 'https://appleid.apple.com/.well-known/openid-configuration';
|
|
8
|
+
export const APPLE_DEFAULT_CALLBACK_URL = 'https://api.instantdb.com/runtime/oauth/callback';
|
|
5
9
|
//# sourceMappingURL=consts.js.map
|
package/dist/esm/consts.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"consts.js","sourceRoot":"","sources":["../../src/consts.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,6BAA6B,GACxC,8CAA8C,CAAC;AACjD,MAAM,CAAC,MAAM,qBAAqB,GAAG,qCAAqC,CAAC;AAC3E,MAAM,CAAC,MAAM,yBAAyB,GACpC,8DAA8D,CAAC;AACjE,MAAM,CAAC,MAAM,2BAA2B,GACtC,kDAAkD,CAAC","sourcesContent":["export const GOOGLE_AUTHORIZATION_ENDPOINT =\n 'https://accounts.google.com/o/oauth2/v2/auth';\nexport const GOOGLE_TOKEN_ENDPOINT = 'https://oauth2.googleapis.com/token';\nexport const GOOGLE_DISCOVERY_ENDPOINT =\n 'https://accounts.google.com/.well-known/openid-configuration';\nexport const GOOGLE_DEFAULT_CALLBACK_URL =\n 'https://api.instantdb.com/runtime/oauth/callback';\n"]}
|
|
1
|
+
{"version":3,"file":"consts.js","sourceRoot":"","sources":["../../src/consts.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,6BAA6B,GACxC,8CAA8C,CAAC;AACjD,MAAM,CAAC,MAAM,qBAAqB,GAAG,qCAAqC,CAAC;AAC3E,MAAM,CAAC,MAAM,yBAAyB,GACpC,8DAA8D,CAAC;AACjE,MAAM,CAAC,MAAM,2BAA2B,GACtC,kDAAkD,CAAC;AAErD,MAAM,CAAC,MAAM,4BAA4B,GACvC,0CAA0C,CAAC;AAC7C,MAAM,CAAC,MAAM,oBAAoB,GAAG,sCAAsC,CAAC;AAC3E,MAAM,CAAC,MAAM,wBAAwB,GACnC,4DAA4D,CAAC;AAC/D,MAAM,CAAC,MAAM,0BAA0B,GACrC,kDAAkD,CAAC","sourcesContent":["export const GOOGLE_AUTHORIZATION_ENDPOINT =\n 'https://accounts.google.com/o/oauth2/v2/auth';\nexport const GOOGLE_TOKEN_ENDPOINT = 'https://oauth2.googleapis.com/token';\nexport const GOOGLE_DISCOVERY_ENDPOINT =\n 'https://accounts.google.com/.well-known/openid-configuration';\nexport const GOOGLE_DEFAULT_CALLBACK_URL =\n 'https://api.instantdb.com/runtime/oauth/callback';\n\nexport const APPLE_AUTHORIZATION_ENDPOINT =\n 'https://appleid.apple.com/auth/authorize';\nexport const APPLE_TOKEN_ENDPOINT = 'https://appleid.apple.com/auth/token';\nexport const APPLE_DISCOVERY_ENDPOINT =\n 'https://appleid.apple.com/.well-known/openid-configuration';\nexport const APPLE_DEFAULT_CALLBACK_URL =\n 'https://api.instantdb.com/runtime/oauth/callback';\n"]}
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -10,5 +10,5 @@ import { i, type InstantRules } from '@instantdb/core';
|
|
|
10
10
|
import { exchangeCodeForToken, exchangeRefreshToken } from './serverOAuth.ts';
|
|
11
11
|
export { type InstantAPIPlatformSchema, type InstantDBOAuthAccessToken, type OAuthHandlerConfig, type OAuthScope, type InstantRules, OAuthHandler, InstantOAuthError, generateSchemaTypescriptFile, collectSystemCatalogIdentNames, validateSchema, SchemaValidationError, generatePermsTypescriptFile, permsTypescriptFileToCode, apiSchemaToInstantSchemaDef, schemaTypescriptFileToInstantSchema, version, translatePlanSteps, PlatformApi, ProgressPromise, exchangeCodeForToken, exchangeRefreshToken, i, };
|
|
12
12
|
export { diffSchemas, convertTxSteps, isRenamePromptItem, buildAutoRenameSelector, type RenameResolveFn, type MigrationTx, type MigrationTxSpecific, type MigrationTxTypes, type Identifier, } from './migrations.ts';
|
|
13
|
-
export { GOOGLE_AUTHORIZATION_ENDPOINT, GOOGLE_DEFAULT_CALLBACK_URL, GOOGLE_DISCOVERY_ENDPOINT, GOOGLE_TOKEN_ENDPOINT, } from './consts.ts';
|
|
13
|
+
export { GOOGLE_AUTHORIZATION_ENDPOINT, GOOGLE_DEFAULT_CALLBACK_URL, GOOGLE_DISCOVERY_ENDPOINT, GOOGLE_TOKEN_ENDPOINT, APPLE_AUTHORIZATION_ENDPOINT, APPLE_DEFAULT_CALLBACK_URL, APPLE_DISCOVERY_ENDPOINT, APPLE_TOKEN_ENDPOINT, } from './consts.ts';
|
|
14
14
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/esm/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,KAAK,UAAU,EAAE,MAAM,kBAAkB,CAAC;AACtE,OAAO,EACL,KAAK,yBAAyB,EAC9B,KAAK,kBAAkB,EACvB,YAAY,EACb,MAAM,YAAY,CAAC;AACpB,OAAO,EACL,2BAA2B,EAC3B,yBAAyB,EAC1B,MAAM,YAAY,CAAC;AACpB,OAAO,EACL,KAAK,wBAAwB,EAC7B,4BAA4B,EAC5B,8BAA8B,EAC9B,cAAc,EACd,qBAAqB,EACtB,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,2BAA2B,EAC3B,WAAW,EACX,kBAAkB,EACnB,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,mCAAmC,EAAE,MAAM,wBAAwB,CAAC;AAE7E,OAAO,OAAO,MAAM,cAAc,CAAC;AACnC,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,CAAC,EAAE,KAAK,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACvD,OAAO,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAE9E,OAAO,EACL,KAAK,wBAAwB,EAC7B,KAAK,yBAAyB,EAC9B,KAAK,kBAAkB,EACvB,KAAK,UAAU,EACf,KAAK,YAA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AAoB,EAAE,MAAM,kBAAkB,CAAC;AAE9E,OAAO,EACL,KAAK,wBAAwB,EAC7B,KAAK,yBAAyB,EAC9B,KAAK,kBAAkB,EACvB,KAAK,UAAU,EACf,KAAK,YAAY,EACjB,YAAY,EACZ,iBAAiB,EACjB,4BAA4B,EAC5B,8BAA8B,EAC9B,cAAc,EACd,qBAAqB,EACrB,2BAA2B,EAC3B,yBAAyB,EACzB,2BAA2B,EAC3B,mCAAmC,EACnC,OAAO,EACP,kBAAkB,EAClB,WAAW,EACX,eAAe,EACf,oBAAoB,EACpB,oBAAoB,EACpB,CAAC,GACF,CAAC;AAEF,OAAO,EACL,WAAW,EACX,cAAc,EACd,kBAAkB,EAClB,uBAAuB,EACvB,KAAK,eAAe,EACpB,KAAK,WAAW,EAChB,KAAK,mBAAmB,EACxB,KAAK,gBAAgB,EACrB,KAAK,UAAU,GAChB,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EACL,6BAA6B,EAC7B,2BAA2B,EAC3B,yBAAyB,EACzB,qBAAqB,EACrB,4BAA4B,EAC5B,0BAA0B,EAC1B,wBAAwB,EACxB,oBAAoB,GACrB,MAAM,aAAa,CAAC"}
|
package/dist/esm/index.js
CHANGED
|
@@ -10,5 +10,5 @@ import { i } from '@instantdb/core';
|
|
|
10
10
|
import { exchangeCodeForToken, exchangeRefreshToken } from "./serverOAuth.js";
|
|
11
11
|
export { OAuthHandler, InstantOAuthError, generateSchemaTypescriptFile, collectSystemCatalogIdentNames, validateSchema, SchemaValidationError, generatePermsTypescriptFile, permsTypescriptFileToCode, apiSchemaToInstantSchemaDef, schemaTypescriptFileToInstantSchema, version, translatePlanSteps, PlatformApi, ProgressPromise, exchangeCodeForToken, exchangeRefreshToken, i, };
|
|
12
12
|
export { diffSchemas, convertTxSteps, isRenamePromptItem, buildAutoRenameSelector, } from "./migrations.js";
|
|
13
|
-
export { GOOGLE_AUTHORIZATION_ENDPOINT, GOOGLE_DEFAULT_CALLBACK_URL, GOOGLE_DISCOVERY_ENDPOINT, GOOGLE_TOKEN_ENDPOINT, } from "./consts.js";
|
|
13
|
+
export { GOOGLE_AUTHORIZATION_ENDPOINT, GOOGLE_DEFAULT_CALLBACK_URL, GOOGLE_DISCOVERY_ENDPOINT, GOOGLE_TOKEN_ENDPOINT, APPLE_AUTHORIZATION_ENDPOINT, APPLE_DEFAULT_CALLBACK_URL, APPLE_DISCOVERY_ENDPOINT, APPLE_TOKEN_ENDPOINT, } from "./consts.js";
|
|
14
14
|
//# sourceMappingURL=index.js.map
|
package/dist/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAmB,MAAM,kBAAkB,CAAC;AACtE,OAAO,EAGL,YAAY,GACb,MAAM,YAAY,CAAC;AACpB,OAAO,EACL,2BAA2B,EAC3B,yBAAyB,GAC1B,MAAM,YAAY,CAAC;AACpB,OAAO,EAEL,4BAA4B,EAC5B,8BAA8B,EAC9B,cAAc,EACd,qBAAqB,GACtB,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,2BAA2B,EAC3B,WAAW,EACX,kBAAkB,GACnB,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,mCAAmC,EAAE,MAAM,wBAAwB,CAAC;AAE7E,OAAO,OAAO,MAAM,cAAc,CAAC;AACnC,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,CAAC,EAAqB,MAAM,iBAAiB,CAAC;AACvD,OAAO,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAE9E,OAAO,EAML,YAAY,EACZ,iBAAiB,EACjB,4BAA4B,EAC5B,8BAA8B,EAC9B,cAAc,EACd,qBAAqB,EACrB,2BAA2B,EAC3B,yBAAyB,EACzB,2BAA2B,EAC3B,mCAAmC,EACnC,OAAO,EACP,kBAAkB,EAClB,WAAW,EACX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zB,OAAO,EACL,6BAA6B,EAC7B,2BAA2B,EAC3B,yBAAyB,EACzB,qBAAqB,EACrB,4BAA4B,EAC5B,0BAA0B,EAC1B,wBAAwB,EACxB,oBAAoB,GACrB,MAAM,aAAa,CAAC","sourcesContent":["import { InstantOAuthError, type OAuthScope } from './oauthCommon.ts';\nimport {\n type InstantDBOAuthAccessToken,\n type OAuthHandlerConfig,\n OAuthHandler,\n} from './oauth.ts';\nimport {\n generatePermsTypescriptFile,\n permsTypescriptFileToCode,\n} from './perms.ts';\nimport {\n type InstantAPIPlatformSchema,\n generateSchemaTypescriptFile,\n collectSystemCatalogIdentNames,\n validateSchema,\n SchemaValidationError,\n} from './schema.ts';\nimport {\n apiSchemaToInstantSchemaDef,\n PlatformApi,\n translatePlanSteps,\n} from './api.ts';\nimport { schemaTypescriptFileToInstantSchema } from './typescript-schema.ts';\n\nimport version from './version.ts';\nimport { ProgressPromise } from './ProgressPromise.ts';\nimport { i, type InstantRules } from '@instantdb/core';\nimport { exchangeCodeForToken, exchangeRefreshToken } from './serverOAuth.ts';\n\nexport {\n type InstantAPIPlatformSchema,\n type InstantDBOAuthAccessToken,\n type OAuthHandlerConfig,\n type OAuthScope,\n type InstantRules,\n OAuthHandler,\n InstantOAuthError,\n generateSchemaTypescriptFile,\n collectSystemCatalogIdentNames,\n validateSchema,\n SchemaValidationError,\n generatePermsTypescriptFile,\n permsTypescriptFileToCode,\n apiSchemaToInstantSchemaDef,\n schemaTypescriptFileToInstantSchema,\n version,\n translatePlanSteps,\n PlatformApi,\n ProgressPromise,\n exchangeCodeForToken,\n exchangeRefreshToken,\n i,\n};\n\nexport {\n diffSchemas,\n convertTxSteps,\n isRenamePromptItem,\n buildAutoRenameSelector,\n type RenameResolveFn,\n type MigrationTx,\n type MigrationTxSpecific,\n type MigrationTxTypes,\n type Identifier,\n} from './migrations.ts';\n\nexport {\n GOOGLE_AUTHORIZATION_ENDPOINT,\n GOOGLE_DEFAULT_CALLBACK_URL,\n GOOGLE_DISCOVERY_ENDPOINT,\n GOOGLE_TOKEN_ENDPOINT,\n APPLE_AUTHORIZATION_ENDPOINT,\n APPLE_DEFAULT_CALLBACK_URL,\n APPLE_DISCOVERY_ENDPOINT,\n APPLE_TOKEN_ENDPOINT,\n} from './consts.ts';\n"]}
|
package/dist/standalone/index.js
CHANGED
|
@@ -839,7 +839,7 @@ class Ve extends qt {
|
|
|
839
839
|
}
|
|
840
840
|
}
|
|
841
841
|
typeof window < "u" && typeof window.localStorage < "u" && (window.localStorage.getItem("devBackend"), window.localStorage.getItem("__instantLogging"), window.localStorage.getItem("__devtoolLocalDash"));
|
|
842
|
-
const Ue = "v1.0.
|
|
842
|
+
const Ue = "v1.0.11";
|
|
843
843
|
class Q {
|
|
844
844
|
constructor(t, s, e, i = { indexed: !1, unique: !1 }) {
|
|
845
845
|
m(this, "valueType");
|
|
@@ -12623,8 +12623,12 @@ class so {
|
|
|
12623
12623
|
}
|
|
12624
12624
|
}
|
|
12625
12625
|
O = new WeakMap(), R = new WeakMap();
|
|
12626
|
-
const io = "https://accounts.google.com/o/oauth2/v2/auth", ro = "https://oauth2.googleapis.com/token", ao = "https://accounts.google.com/.well-known/openid-configuration", no = "https://api.instantdb.com/runtime/oauth/callback";
|
|
12626
|
+
const io = "https://accounts.google.com/o/oauth2/v2/auth", ro = "https://oauth2.googleapis.com/token", ao = "https://accounts.google.com/.well-known/openid-configuration", no = "https://api.instantdb.com/runtime/oauth/callback", oo = "https://appleid.apple.com/auth/authorize", co = "https://appleid.apple.com/auth/token", ho = "https://appleid.apple.com/.well-known/openid-configuration", lo = "https://api.instantdb.com/runtime/oauth/callback";
|
|
12627
12627
|
export {
|
|
12628
|
+
oo as APPLE_AUTHORIZATION_ENDPOINT,
|
|
12629
|
+
lo as APPLE_DEFAULT_CALLBACK_URL,
|
|
12630
|
+
ho as APPLE_DISCOVERY_ENDPOINT,
|
|
12631
|
+
co as APPLE_TOKEN_ENDPOINT,
|
|
12628
12632
|
io as GOOGLE_AUTHORIZATION_ENDPOINT,
|
|
12629
12633
|
no as GOOGLE_DEFAULT_CALLBACK_URL,
|
|
12630
12634
|
ao as GOOGLE_DISCOVERY_ENDPOINT,
|