@instantdb/platform 1.0.57 → 1.0.58-branch-render-boolean-vals-explorer.30865587962.1
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 +9 -9
- package/__tests__/src/consts.test.ts +11 -0
- package/dist/commonjs/consts.d.ts +2 -1
- 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 +2 -1
- package/dist/commonjs/index.js.map +1 -1
- package/dist/esm/consts.d.ts +2 -1
- package/dist/esm/consts.d.ts.map +1 -1
- package/dist/esm/consts.js +4 -1
- 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 +34 -28
- package/dist/standalone/index.umd.cjs +14 -14
- package/package.json +5 -5
- package/src/consts.ts +7 -2
- package/src/index.ts +1 -0
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
|
|
2
|
-
> @instantdb/platform@1.0.
|
|
2
|
+
> @instantdb/platform@1.0.58-branch-render-boolean-vals-explorer.30865587962.1 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.58-branch-render-boolean-vals-explorer.30865587962.1 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.58-branch-render-boolean-vals-explorer.30865587962.1 build:standalone
|
|
15
15
|
> vite build
|
|
16
16
|
|
|
17
17
|
[36mvite v5.4.14 [32mbuilding for production...[36m[39m
|
|
@@ -19,20 +19,20 @@ transforming...
|
|
|
19
19
|
[32m✓[39m 86 modules transformed.
|
|
20
20
|
rendering chunks...
|
|
21
21
|
computing gzip size...
|
|
22
|
-
[2mdist/standalone/[22m[36mindex.umd.cjs [39m[1m[2m364.
|
|
23
|
-
[2mdist/standalone/[22m[36mindex.js [39m[1m[2m486.
|
|
24
|
-
[32m✓ built in
|
|
22
|
+
[2mdist/standalone/[22m[36mindex.umd.cjs [39m[1m[2m364.71 kB[22m[1m[22m[2m │ gzip: 100.42 kB[22m
|
|
23
|
+
[2mdist/standalone/[22m[36mindex.js [39m[1m[2m486.73 kB[22m[1m[22m[2m │ gzip: 117.00 kB[22m
|
|
24
|
+
[32m✓ built in 2.12s[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.58-branch-render-boolean-vals-explorer.30865587962.1 check-exports
|
|
29
29
|
> attw --pack .
|
|
30
30
|
|
|
31
31
|
|
|
32
|
-
@instantdb/platform v1.0.
|
|
32
|
+
@instantdb/platform v1.0.58-branch-render-boolean-vals-explorer.30865587962.1
|
|
33
33
|
|
|
34
34
|
Build tools:
|
|
35
|
-
- @arethetypeswrong/cli@^0.
|
|
35
|
+
- @arethetypeswrong/cli@^0.18.5
|
|
36
36
|
- typescript@^5.9.3
|
|
37
37
|
- vite@^5.2.0
|
|
38
38
|
- tshy@^3.0.2
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { expect, test } from 'vitest';
|
|
2
|
+
import { oauthCallbackURL } from '../../src/consts.ts';
|
|
3
|
+
|
|
4
|
+
test('builds an OAuth callback URL from the API origin', () => {
|
|
5
|
+
expect(oauthCallbackURL('https://api.example.com')).toBe(
|
|
6
|
+
'https://api.example.com/runtime/oauth/callback',
|
|
7
|
+
);
|
|
8
|
+
expect(oauthCallbackURL('https://api.example.com/')).toBe(
|
|
9
|
+
'https://api.example.com/runtime/oauth/callback',
|
|
10
|
+
);
|
|
11
|
+
});
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
export declare
|
|
1
|
+
export declare function oauthCallbackURL(apiURI: string): string;
|
|
2
|
+
export declare const DEFAULT_OAUTH_CALLBACK_URL: string;
|
|
2
3
|
export declare const GOOGLE_AUTHORIZATION_ENDPOINT = "https://accounts.google.com/o/oauth2/v2/auth";
|
|
3
4
|
export declare const GOOGLE_TOKEN_ENDPOINT = "https://oauth2.googleapis.com/token";
|
|
4
5
|
export declare const GOOGLE_DISCOVERY_ENDPOINT = "https://accounts.google.com/.well-known/openid-configuration";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"consts.d.ts","sourceRoot":"","sources":["../../src/consts.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,0BAA0B,
|
|
1
|
+
{"version":3,"file":"consts.d.ts","sourceRoot":"","sources":["../../src/consts.ts"],"names":[],"mappings":"AAAA,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,MAAM,UAE9C;AAED,eAAO,MAAM,0BAA0B,QAEtC,CAAC;AAEF,eAAO,MAAM,6BAA6B,iDACM,CAAC;AACjD,eAAO,MAAM,qBAAqB,wCAAwC,CAAC;AAC3E,eAAO,MAAM,yBAAyB,iEAC0B,CAAC;AAEjE,eAAO,MAAM,4BAA4B,6CACG,CAAC;AAC7C,eAAO,MAAM,oBAAoB,yCAAyC,CAAC;AAC3E,eAAO,MAAM,wBAAwB,+DACyB,CAAC;AAE/D,eAAO,MAAM,+BAA+B,oDACO,CAAC;AACpD,eAAO,MAAM,uBAAuB,kDACa,CAAC;AAClD,eAAO,MAAM,2BAA2B,oEAC2B,CAAC"}
|
package/dist/commonjs/consts.js
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.LINKEDIN_DISCOVERY_ENDPOINT = exports.LINKEDIN_TOKEN_ENDPOINT = exports.LINKEDIN_AUTHORIZATION_ENDPOINT = exports.APPLE_DISCOVERY_ENDPOINT = exports.APPLE_TOKEN_ENDPOINT = exports.APPLE_AUTHORIZATION_ENDPOINT = exports.GOOGLE_DISCOVERY_ENDPOINT = exports.GOOGLE_TOKEN_ENDPOINT = exports.GOOGLE_AUTHORIZATION_ENDPOINT = exports.DEFAULT_OAUTH_CALLBACK_URL = void 0;
|
|
4
|
-
exports.
|
|
4
|
+
exports.oauthCallbackURL = oauthCallbackURL;
|
|
5
|
+
function oauthCallbackURL(apiURI) {
|
|
6
|
+
return `${apiURI.replace(/\/+$/, '')}/runtime/oauth/callback`;
|
|
7
|
+
}
|
|
8
|
+
exports.DEFAULT_OAUTH_CALLBACK_URL = oauthCallbackURL('https://api.instantdb.com');
|
|
5
9
|
exports.GOOGLE_AUTHORIZATION_ENDPOINT = 'https://accounts.google.com/o/oauth2/v2/auth';
|
|
6
10
|
exports.GOOGLE_TOKEN_ENDPOINT = 'https://oauth2.googleapis.com/token';
|
|
7
11
|
exports.GOOGLE_DISCOVERY_ENDPOINT = 'https://accounts.google.com/.well-known/openid-configuration';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"consts.js","sourceRoot":"","sources":["../../src/consts.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"consts.js","sourceRoot":"","sources":["../../src/consts.ts"],"names":[],"mappings":";;;AAAA,4CAEC;AAFD,SAAgB,gBAAgB,CAAC,MAAc;IAC7C,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC,MAAM,EAAE,EAAE,CAAC,yBAAyB,CAAC;AAChE,CAAC;AAEY,QAAA,0BAA0B,GAAG,gBAAgB,CACxD,2BAA2B,CAC5B,CAAC;AAEW,QAAA,6BAA6B,GACxC,8CAA8C,CAAC;AACpC,QAAA,qBAAqB,GAAG,qCAAqC,CAAC;AAC9D,QAAA,yBAAyB,GACpC,8DAA8D,CAAC;AAEpD,QAAA,4BAA4B,GACvC,0CAA0C,CAAC;AAChC,QAAA,oBAAoB,GAAG,sCAAsC,CAAC;AAC9D,QAAA,wBAAwB,GACnC,4DAA4D,CAAC;AAElD,QAAA,+BAA+B,GAC1C,iDAAiD,CAAC;AACvC,QAAA,uBAAuB,GAClC,+CAA+C,CAAC;AACrC,QAAA,2BAA2B,GACtC,iEAAiE,CAAC","sourcesContent":["export function oauthCallbackURL(apiURI: string) {\n return `${apiURI.replace(/\\/+$/, '')}/runtime/oauth/callback`;\n}\n\nexport const DEFAULT_OAUTH_CALLBACK_URL = oauthCallbackURL(\n 'https://api.instantdb.com',\n);\n\nexport 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';\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';\n\nexport const LINKEDIN_AUTHORIZATION_ENDPOINT =\n 'https://www.linkedin.com/oauth/v2/authorization';\nexport const LINKEDIN_TOKEN_ENDPOINT =\n 'https://www.linkedin.com/oauth/v2/accessToken';\nexport const LINKEDIN_DISCOVERY_ENDPOINT =\n 'https://www.linkedin.com/oauth/.well-known/openid-configuration';\n"]}
|
package/dist/commonjs/index.d.ts
CHANGED
|
@@ -12,5 +12,5 @@ import { clerkDomainFromPublishableKey } from './clerk.ts';
|
|
|
12
12
|
import { Webhooks, type WebhookAction, type WebhookStatus, type WebhookEventStatus, type WebhookInfo, type WebhookAttempt, type WebhookEventInfo, type WebhookEventsPage, type WebhookBody, type WebhookEntity, type WebhookPayload, type WebhookPayloadRecord, type WebhookPayloadRecordFor, type WebhookHandlerFn, type WebhookHandlers, type WebhookHelpers, type CreateWebhookParams, type UpdateWebhookParams, WebhooksManager } from '@instantdb/webhooks';
|
|
13
13
|
export { type InstantAPIPlatformSchema, type InstantDBOAuthAccessToken, type OAuthHandlerConfig, type OAuthScope, type InstantRules, type InstantRouteHandlerPayloadByType, type InstantRouteHandlerType, type InstantRouteHandlerBody, OAuthHandler, InstantOAuthError, generateSchemaTypescriptFile, collectSystemCatalogIdentNames, validateSchema, SchemaValidationError, generatePermsTypescriptFile, permsTypescriptFileToCode, apiSchemaToInstantSchemaDef, schemaTypescriptFileToInstantSchema, version, translatePlanSteps, PlatformApi, ProgressPromise, exchangeCodeForToken, exchangeRefreshToken, clerkDomainFromPublishableKey, i, Webhooks, WebhooksManager, type WebhookAction, type WebhookStatus, type WebhookEventStatus, type WebhookInfo, type WebhookAttempt, type WebhookEventInfo, type WebhookEventsPage, type WebhookBody, type WebhookEntity, type WebhookPayload, type WebhookPayloadRecord, type WebhookPayloadRecordFor, type WebhookHandlerFn, type WebhookHandlers, type WebhookHelpers, type CreateWebhookParams, type UpdateWebhookParams, };
|
|
14
14
|
export { diffSchemas, convertTxSteps, isRenamePromptItem, buildAutoRenameSelector, type RenameResolveFn, type MigrationTx, type MigrationTxSpecific, type MigrationTxTypes, type Identifier, } from './migrations.ts';
|
|
15
|
-
export { DEFAULT_OAUTH_CALLBACK_URL, GOOGLE_AUTHORIZATION_ENDPOINT, GOOGLE_DISCOVERY_ENDPOINT, GOOGLE_TOKEN_ENDPOINT, APPLE_AUTHORIZATION_ENDPOINT, APPLE_DISCOVERY_ENDPOINT, APPLE_TOKEN_ENDPOINT, LINKEDIN_AUTHORIZATION_ENDPOINT, LINKEDIN_DISCOVERY_ENDPOINT, LINKEDIN_TOKEN_ENDPOINT, } from './consts.ts';
|
|
15
|
+
export { DEFAULT_OAUTH_CALLBACK_URL, oauthCallbackURL, GOOGLE_AUTHORIZATION_ENDPOINT, GOOGLE_DISCOVERY_ENDPOINT, GOOGLE_TOKEN_ENDPOINT, APPLE_AUTHORIZATION_ENDPOINT, APPLE_DISCOVERY_ENDPOINT, APPLE_TOKEN_ENDPOINT, LINKEDIN_AUTHORIZATION_ENDPOINT, LINKEDIN_DISCOVERY_ENDPOINT, LINKEDIN_TOKEN_ENDPOINT, } from './consts.ts';
|
|
16
16
|
//# 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,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,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iBAAiB,EACtB,KAAK,WAAW,EAChB,KAAK,aAAa,EAClB,KAAK,cAAc,EACnB,KAAK,oBAAoB,EACzB,KAAK,uBAAuB,EAC5B,KAAK,gBAAgB,EACrB,KAAK,eAAe,EACpB,KAAK,cAAc,EACnB,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,GACzB,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,0BAA0B,EAC1B,gBAAgB,EAChB,6BAA6B,EAC7B,yBAAyB,EACzB,qBAAqB,EACrB,4BAA4B,EAC5B,wBAAwB,EACxB,oBAAoB,EACpB,+BAA+B,EAC/B,2BAA2B,EAC3B,uBAAuB,GACxB,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.LINKEDIN_TOKEN_ENDPOINT = exports.LINKEDIN_DISCOVERY_ENDPOINT = exports.LINKEDIN_AUTHORIZATION_ENDPOINT = exports.APPLE_TOKEN_ENDPOINT = exports.APPLE_DISCOVERY_ENDPOINT = exports.APPLE_AUTHORIZATION_ENDPOINT = exports.GOOGLE_TOKEN_ENDPOINT = exports.GOOGLE_DISCOVERY_ENDPOINT = exports.GOOGLE_AUTHORIZATION_ENDPOINT = exports.DEFAULT_OAUTH_CALLBACK_URL = exports.buildAutoRenameSelector = exports.isRenamePromptItem = exports.convertTxSteps = exports.diffSchemas = exports.WebhooksManager = exports.Webhooks = exports.i = exports.clerkDomainFromPublishableKey = 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.LINKEDIN_TOKEN_ENDPOINT = exports.LINKEDIN_DISCOVERY_ENDPOINT = exports.LINKEDIN_AUTHORIZATION_ENDPOINT = exports.APPLE_TOKEN_ENDPOINT = exports.APPLE_DISCOVERY_ENDPOINT = exports.APPLE_AUTHORIZATION_ENDPOINT = exports.GOOGLE_TOKEN_ENDPOINT = exports.GOOGLE_DISCOVERY_ENDPOINT = exports.GOOGLE_AUTHORIZATION_ENDPOINT = exports.oauthCallbackURL = exports.DEFAULT_OAUTH_CALLBACK_URL = exports.buildAutoRenameSelector = exports.isRenamePromptItem = exports.convertTxSteps = exports.diffSchemas = exports.WebhooksManager = exports.Webhooks = exports.i = exports.clerkDomainFromPublishableKey = 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");
|
|
@@ -43,6 +43,7 @@ Object.defineProperty(exports, "isRenamePromptItem", { enumerable: true, get: fu
|
|
|
43
43
|
Object.defineProperty(exports, "buildAutoRenameSelector", { enumerable: true, get: function () { return migrations_ts_1.buildAutoRenameSelector; } });
|
|
44
44
|
var consts_ts_1 = require("./consts.js");
|
|
45
45
|
Object.defineProperty(exports, "DEFAULT_OAUTH_CALLBACK_URL", { enumerable: true, get: function () { return consts_ts_1.DEFAULT_OAUTH_CALLBACK_URL; } });
|
|
46
|
+
Object.defineProperty(exports, "oauthCallbackURL", { enumerable: true, get: function () { return consts_ts_1.oauthCallbackURL; } });
|
|
46
47
|
Object.defineProperty(exports, "GOOGLE_AUTHORIZATION_ENDPOINT", { enumerable: true, get: function () { return consts_ts_1.GOOGLE_AUTHORIZATION_ENDPOINT; } });
|
|
47
48
|
Object.defineProperty(exports, "GOOGLE_DISCOVERY_ENDPOINT", { enumerable: true, get: function () { return consts_ts_1.GOOGLE_DISCOVERY_ENDPOINT; } });
|
|
48
49
|
Object.defineProperty(exports, "GOOGLE_TOKEN_ENDPOINT", { enumerable: true, get: function () { return consts_ts_1.GOOGLE_TOKEN_ENDPOINT; } });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;AAAA,qDAAsE;AAmEpE,kGAnEO,kCAAiB,OAmEP;AAlEnB,yCAIoB;AA6DlB,6FA9DA,uBAAY,OA8DA;AA5Dd,yCAGoB;AA+DlB,4GAjEA,sCAA2B,OAiEA;AAC3B,0GAjEA,oCAAyB,OAiEA;AA/D3B,2CAMqB;AAoDnB,6GAxDA,wCAA4B,OAwDA;AAC5B,+GAxDA,0CAA8B,OAwDA;AAC9B,+FAxDA,0BAAc,OAwDA;AACd,sGAxDA,iCAAqB,OAwDA;AAtDvB,qCAIkB;AAqDhB,4GAxDA,oCAA2B,OAwDA;AAI3B,4FA3DA,oBAAW,OA2DA;AADX,mGAzDA,2BAAkB,OAyDA;AAvDpB,iEAA6E;AAqD3E,oHArDO,0DAAmC,OAqDP;AAnDrC,8DAAmC;AAoDjC,kBApDK,oBAA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8GAhDO,wCAA6B,OAgDP;AA/C/B,kDAoB6B;AA6B3B,yFAhDA,mBAAQ,OAgDA;AACR,gGA/BA,0BAAe,OA+BA;AAoBjB,iDAUyB;AATvB,4GAAA,WAAW,OAAA;AACX,+GAAA,cAAc,OAAA;AACd,mHAAA,kBAAkB,OAAA;AAClB,wHAAA,uBAAuB,OAAA;AAQzB,yCAYqB;AAXnB,uHAAA,0BAA0B,OAAA;AAC1B,6GAAA,gBAAgB,OAAA;AAChB,0HAAA,6BAA6B,OAAA;AAC7B,sHAAA,yBAAyB,OAAA;AACzB,kHAAA,qBAAqB,OAAA;AACrB,yHAAA,4BAA4B,OAAA;AAC5B,qHAAA,wBAAwB,OAAA;AACxB,iHAAA,oBAAoB,OAAA;AACpB,4HAAA,+BAA+B,OAAA;AAC/B,wHAAA,2BAA2B,OAAA;AAC3B,oHAAA,uBAAuB,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 {\n i,\n type InstantRules,\n type InstantRouteHandlerPayloadByType,\n type InstantRouteHandlerType,\n type InstantRouteHandlerBody,\n} from '@instantdb/core';\nimport { exchangeCodeForToken, exchangeRefreshToken } from './serverOAuth.ts';\nimport { clerkDomainFromPublishableKey } from './clerk.ts';\nimport {\n Webhooks,\n type WebhookAction,\n type WebhookStatus,\n type WebhookEventStatus,\n type WebhookInfo,\n type WebhookAttempt,\n type WebhookEventInfo,\n type WebhookEventsPage,\n type WebhookBody,\n type WebhookEntity,\n type WebhookPayload,\n type WebhookPayloadRecord,\n type WebhookPayloadRecordFor,\n type WebhookHandlerFn,\n type WebhookHandlers,\n type WebhookHelpers,\n type CreateWebhookParams,\n type UpdateWebhookParams,\n WebhooksManager,\n} from '@instantdb/webhooks';\n\nexport {\n type InstantAPIPlatformSchema,\n type InstantDBOAuthAccessToken,\n type OAuthHandlerConfig,\n type OAuthScope,\n type InstantRules,\n type InstantRouteHandlerPayloadByType,\n type InstantRouteHandlerType,\n type InstantRouteHandlerBody,\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 clerkDomainFromPublishableKey,\n i,\n Webhooks,\n WebhooksManager,\n type WebhookAction,\n type WebhookStatus,\n type WebhookEventStatus,\n type WebhookInfo,\n type WebhookAttempt,\n type WebhookEventInfo,\n type WebhookEventsPage,\n type WebhookBody,\n type WebhookEntity,\n type WebhookPayload,\n type WebhookPayloadRecord,\n type WebhookPayloadRecordFor,\n type WebhookHandlerFn,\n type WebhookHandlers,\n type WebhookHelpers,\n type CreateWebhookParams,\n type UpdateWebhookParams,\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 DEFAULT_OAUTH_CALLBACK_URL,\n oauthCallbackURL,\n GOOGLE_AUTHORIZATION_ENDPOINT,\n GOOGLE_DISCOVERY_ENDPOINT,\n GOOGLE_TOKEN_ENDPOINT,\n APPLE_AUTHORIZATION_ENDPOINT,\n APPLE_DISCOVERY_ENDPOINT,\n APPLE_TOKEN_ENDPOINT,\n LINKEDIN_AUTHORIZATION_ENDPOINT,\n LINKEDIN_DISCOVERY_ENDPOINT,\n LINKEDIN_TOKEN_ENDPOINT,\n} from './consts.ts';\n"]}
|
package/dist/esm/consts.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
export declare
|
|
1
|
+
export declare function oauthCallbackURL(apiURI: string): string;
|
|
2
|
+
export declare const DEFAULT_OAUTH_CALLBACK_URL: string;
|
|
2
3
|
export declare const GOOGLE_AUTHORIZATION_ENDPOINT = "https://accounts.google.com/o/oauth2/v2/auth";
|
|
3
4
|
export declare const GOOGLE_TOKEN_ENDPOINT = "https://oauth2.googleapis.com/token";
|
|
4
5
|
export declare const GOOGLE_DISCOVERY_ENDPOINT = "https://accounts.google.com/.well-known/openid-configuration";
|
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,0BAA0B,
|
|
1
|
+
{"version":3,"file":"consts.d.ts","sourceRoot":"","sources":["../../src/consts.ts"],"names":[],"mappings":"AAAA,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,MAAM,UAE9C;AAED,eAAO,MAAM,0BAA0B,QAEtC,CAAC;AAEF,eAAO,MAAM,6BAA6B,iDACM,CAAC;AACjD,eAAO,MAAM,qBAAqB,wCAAwC,CAAC;AAC3E,eAAO,MAAM,yBAAyB,iEAC0B,CAAC;AAEjE,eAAO,MAAM,4BAA4B,6CACG,CAAC;AAC7C,eAAO,MAAM,oBAAoB,yCAAyC,CAAC;AAC3E,eAAO,MAAM,wBAAwB,+DACyB,CAAC;AAE/D,eAAO,MAAM,+BAA+B,oDACO,CAAC;AACpD,eAAO,MAAM,uBAAuB,kDACa,CAAC;AAClD,eAAO,MAAM,2BAA2B,oEAC2B,CAAC"}
|
package/dist/esm/consts.js
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
export
|
|
1
|
+
export function oauthCallbackURL(apiURI) {
|
|
2
|
+
return `${apiURI.replace(/\/+$/, '')}/runtime/oauth/callback`;
|
|
3
|
+
}
|
|
4
|
+
export const DEFAULT_OAUTH_CALLBACK_URL = oauthCallbackURL('https://api.instantdb.com');
|
|
2
5
|
export const GOOGLE_AUTHORIZATION_ENDPOINT = 'https://accounts.google.com/o/oauth2/v2/auth';
|
|
3
6
|
export const GOOGLE_TOKEN_ENDPOINT = 'https://oauth2.googleapis.com/token';
|
|
4
7
|
export const GOOGLE_DISCOVERY_ENDPOINT = 'https://accounts.google.com/.well-known/openid-configuration';
|
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,0BAA0B,
|
|
1
|
+
{"version":3,"file":"consts.js","sourceRoot":"","sources":["../../src/consts.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,gBAAgB,CAAC,MAAc;IAC7C,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC,MAAM,EAAE,EAAE,CAAC,yBAAyB,CAAC;AAChE,CAAC;AAED,MAAM,CAAC,MAAM,0BAA0B,GAAG,gBAAgB,CACxD,2BAA2B,CAC5B,CAAC;AAEF,MAAM,CAAC,MAAM,6BAA6B,GACxC,8CAA8C,CAAC;AACjD,MAAM,CAAC,MAAM,qBAAqB,GAAG,qCAAqC,CAAC;AAC3E,MAAM,CAAC,MAAM,yBAAyB,GACpC,8DAA8D,CAAC;AAEjE,MAAM,CAAC,MAAM,4BAA4B,GACvC,0CAA0C,CAAC;AAC7C,MAAM,CAAC,MAAM,oBAAoB,GAAG,sCAAsC,CAAC;AAC3E,MAAM,CAAC,MAAM,wBAAwB,GACnC,4DAA4D,CAAC;AAE/D,MAAM,CAAC,MAAM,+BAA+B,GAC1C,iDAAiD,CAAC;AACpD,MAAM,CAAC,MAAM,uBAAuB,GAClC,+CAA+C,CAAC;AAClD,MAAM,CAAC,MAAM,2BAA2B,GACtC,iEAAiE,CAAC","sourcesContent":["export function oauthCallbackURL(apiURI: string) {\n return `${apiURI.replace(/\\/+$/, '')}/runtime/oauth/callback`;\n}\n\nexport const DEFAULT_OAUTH_CALLBACK_URL = oauthCallbackURL(\n 'https://api.instantdb.com',\n);\n\nexport 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';\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';\n\nexport const LINKEDIN_AUTHORIZATION_ENDPOINT =\n 'https://www.linkedin.com/oauth/v2/authorization';\nexport const LINKEDIN_TOKEN_ENDPOINT =\n 'https://www.linkedin.com/oauth/v2/accessToken';\nexport const LINKEDIN_DISCOVERY_ENDPOINT =\n 'https://www.linkedin.com/oauth/.well-known/openid-configuration';\n"]}
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -12,5 +12,5 @@ import { clerkDomainFromPublishableKey } from './clerk.ts';
|
|
|
12
12
|
import { Webhooks, type WebhookAction, type WebhookStatus, type WebhookEventStatus, type WebhookInfo, type WebhookAttempt, type WebhookEventInfo, type WebhookEventsPage, type WebhookBody, type WebhookEntity, type WebhookPayload, type WebhookPayloadRecord, type WebhookPayloadRecordFor, type WebhookHandlerFn, type WebhookHandlers, type WebhookHelpers, type CreateWebhookParams, type UpdateWebhookParams, WebhooksManager } from '@instantdb/webhooks';
|
|
13
13
|
export { type InstantAPIPlatformSchema, type InstantDBOAuthAccessToken, type OAuthHandlerConfig, type OAuthScope, type InstantRules, type InstantRouteHandlerPayloadByType, type InstantRouteHandlerType, type InstantRouteHandlerBody, OAuthHandler, InstantOAuthError, generateSchemaTypescriptFile, collectSystemCatalogIdentNames, validateSchema, SchemaValidationError, generatePermsTypescriptFile, permsTypescriptFileToCode, apiSchemaToInstantSchemaDef, schemaTypescriptFileToInstantSchema, version, translatePlanSteps, PlatformApi, ProgressPromise, exchangeCodeForToken, exchangeRefreshToken, clerkDomainFromPublishableKey, i, Webhooks, WebhooksManager, type WebhookAction, type WebhookStatus, type WebhookEventStatus, type WebhookInfo, type WebhookAttempt, type WebhookEventInfo, type WebhookEventsPage, type WebhookBody, type WebhookEntity, type WebhookPayload, type WebhookPayloadRecord, type WebhookPayloadRecordFor, type WebhookHandlerFn, type WebhookHandlers, type WebhookHelpers, type CreateWebhookParams, type UpdateWebhookParams, };
|
|
14
14
|
export { diffSchemas, convertTxSteps, isRenamePromptItem, buildAutoRenameSelector, type RenameResolveFn, type MigrationTx, type MigrationTxSpecific, type MigrationTxTypes, type Identifier, } from './migrations.ts';
|
|
15
|
-
export { DEFAULT_OAUTH_CALLBACK_URL, GOOGLE_AUTHORIZATION_ENDPOINT, GOOGLE_DISCOVERY_ENDPOINT, GOOGLE_TOKEN_ENDPOINT, APPLE_AUTHORIZATION_ENDPOINT, APPLE_DISCOVERY_ENDPOINT, APPLE_TOKEN_ENDPOINT, LINKEDIN_AUTHORIZATION_ENDPOINT, LINKEDIN_DISCOVERY_ENDPOINT, LINKEDIN_TOKEN_ENDPOINT, } from './consts.ts';
|
|
15
|
+
export { DEFAULT_OAUTH_CALLBACK_URL, oauthCallbackURL, GOOGLE_AUTHORIZATION_ENDPOINT, GOOGLE_DISCOVERY_ENDPOINT, GOOGLE_TOKEN_ENDPOINT, APPLE_AUTHORIZATION_ENDPOINT, APPLE_DISCOVERY_ENDPOINT, APPLE_TOKEN_ENDPOINT, LINKEDIN_AUTHORIZATION_ENDPOINT, LINKEDIN_DISCOVERY_ENDPOINT, LINKEDIN_TOKEN_ENDPOINT, } from './consts.ts';
|
|
16
16
|
//# 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,EACL,CAAC,EACD,KAAK,YAAY,EACjB,KAAK,gCAAgC,EACrC,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC7B,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAC9E,OAAO,EAAE,6BAA6B,EAAE,MAAM,YAAY,CAAC;AAC3D,OAAO,EACL,QAAQ,EACR,KAAK,aAAa,EAClB,KAAK,aAAa,EAClB,KAAK,kBAAkB,EACvB,KAAK,WAAW,EAChB,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,iBAAiB,EACtB,KAAK,W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,4BAA4B,EAC5B,wBAAwB,EACxB,oBAAoB,EACpB,+BAA+B,EAC/B,2BAA2B,EAC3B,uBAAuB,GACxB,MAAM,aAAa,CAAC"}
|
package/dist/esm/index.js
CHANGED
|
@@ -12,5 +12,5 @@ import { clerkDomainFromPublishableKey } from "./clerk.js";
|
|
|
12
12
|
import { Webhooks, WebhooksManager, } from '@instantdb/webhooks';
|
|
13
13
|
export { OAuthHandler, InstantOAuthError, generateSchemaTypescriptFile, collectSystemCatalogIdentNames, validateSchema, SchemaValidationError, generatePermsTypescriptFile, permsTypescriptFileToCode, apiSchemaToInstantSchemaDef, schemaTypescriptFileToInstantSchema, version, translatePlanSteps, PlatformApi, ProgressPromise, exchangeCodeForToken, exchangeRefreshToken, clerkDomainFromPublishableKey, i, Webhooks, WebhooksManager, };
|
|
14
14
|
export { diffSchemas, convertTxSteps, isRenamePromptItem, buildAutoRenameSelector, } from "./migrations.js";
|
|
15
|
-
export { DEFAULT_OAUTH_CALLBACK_URL, GOOGLE_AUTHORIZATION_ENDPOINT, GOOGLE_DISCOVERY_ENDPOINT, GOOGLE_TOKEN_ENDPOINT, APPLE_AUTHORIZATION_ENDPOINT, APPLE_DISCOVERY_ENDPOINT, APPLE_TOKEN_ENDPOINT, LINKEDIN_AUTHORIZATION_ENDPOINT, LINKEDIN_DISCOVERY_ENDPOINT, LINKEDIN_TOKEN_ENDPOINT, } from "./consts.js";
|
|
15
|
+
export { DEFAULT_OAUTH_CALLBACK_URL, oauthCallbackURL, GOOGLE_AUTHORIZATION_ENDPOINT, GOOGLE_DISCOVERY_ENDPOINT, GOOGLE_TOKEN_ENDPOINT, APPLE_AUTHORIZATION_ENDPOINT, APPLE_DISCOVERY_ENDPOINT, APPLE_TOKEN_ENDPOINT, LINKEDIN_AUTHORIZATION_ENDPOINT, LINKEDIN_DISCOVERY_ENDPOINT, LINKEDIN_TOKEN_ENDPOINT, } from "./consts.js";
|
|
16
16
|
//# sourceMappingURL=index.js.map
|
package/dist/esm/index.js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A6B,EAC7B,yBAAyB,EACzB,qBAAqB,EACrB,4BAA4B,EAC5B,wBAAwB,EACxB,oBAAoB,EACpB,+BAA+B,EAC/B,2BAA2B,EAC3B,uBAAuB,GACxB,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 {\n i,\n type InstantRules,\n type InstantRouteHandlerPayloadByType,\n type InstantRouteHandlerType,\n type InstantRouteHandlerBody,\n} from '@instantdb/core';\nimport { exchangeCodeForToken, exchangeRefreshToken } from './serverOAuth.ts';\nimport { clerkDomainFromPublishableKey } from './clerk.ts';\nimport {\n Webhooks,\n type WebhookAction,\n type WebhookStatus,\n type WebhookEventStatus,\n type WebhookInfo,\n type WebhookAttempt,\n type WebhookEventInfo,\n type WebhookEventsPage,\n type WebhookBody,\n type WebhookEntity,\n type WebhookPayload,\n type WebhookPayloadRecord,\n type WebhookPayloadRecordFor,\n type WebhookHandlerFn,\n type WebhookHandlers,\n type WebhookHelpers,\n type CreateWebhookParams,\n type UpdateWebhookParams,\n WebhooksManager,\n} from '@instantdb/webhooks';\n\nexport {\n type InstantAPIPlatformSchema,\n type InstantDBOAuthAccessToken,\n type OAuthHandlerConfig,\n type OAuthScope,\n type InstantRules,\n type InstantRouteHandlerPayloadByType,\n type InstantRouteHandlerType,\n type InstantRouteHandlerBody,\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 clerkDomainFromPublishableKey,\n i,\n Webhooks,\n WebhooksManager,\n type WebhookAction,\n type WebhookStatus,\n type WebhookEventStatus,\n type WebhookInfo,\n type WebhookAttempt,\n type WebhookEventInfo,\n type WebhookEventsPage,\n type WebhookBody,\n type WebhookEntity,\n type WebhookPayload,\n type WebhookPayloadRecord,\n type WebhookPayloadRecordFor,\n type WebhookHandlerFn,\n type WebhookHandlers,\n type WebhookHelpers,\n type CreateWebhookParams,\n type UpdateWebhookParams,\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 DEFAULT_OAUTH_CALLBACK_URL,\n GOOGLE_AUTHORIZATION_ENDPOINT,\n GOOGLE_DISCOVERY_ENDPOINT,\n GOOGLE_TOKEN_ENDPOINT,\n APPLE_AUTHORIZATION_ENDPOINT,\n APPLE_DISCOVERY_ENDPOINT,\n APPLE_TOKEN_ENDPOINT,\n LINKEDIN_AUTHORIZATION_ENDPOINT,\n LINKEDIN_DISCOVERY_ENDPOINT,\n LINKEDIN_TOKEN_ENDPOINT,\n} from './consts.ts';\n"]}
|
|
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,EACL,CAAC,GAKF,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAC9E,OAAO,EAAE,6BAA6B,EAAE,MAAM,YAAY,CAAC;AAC3D,OAAO,EACL,QAAQ,EAkBR,eAAe,GAChB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EASL,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,6BAA6B,EAC7B,CAAC,EACD,QAAQ,EACR,eAAe,GAkBhB,CAAC;AAEF,OAAO,EACL,WAAW,EACX,cAAc,EACd,kBAAkB,EAClB,uBAAuB,GAMxB,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EACL,0BAA0B,EAC1B,gBAAgB,EAChB,6BAA6B,EAC7B,yBAAyB,EACzB,qBAAqB,EACrB,4BAA4B,EAC5B,wBAAwB,EACxB,oBAAoB,EACpB,+BAA+B,EAC/B,2BAA2B,EAC3B,uBAAuB,GACxB,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 {\n i,\n type InstantRules,\n type InstantRouteHandlerPayloadByType,\n type InstantRouteHandlerType,\n type InstantRouteHandlerBody,\n} from '@instantdb/core';\nimport { exchangeCodeForToken, exchangeRefreshToken } from './serverOAuth.ts';\nimport { clerkDomainFromPublishableKey } from './clerk.ts';\nimport {\n Webhooks,\n type WebhookAction,\n type WebhookStatus,\n type WebhookEventStatus,\n type WebhookInfo,\n type WebhookAttempt,\n type WebhookEventInfo,\n type WebhookEventsPage,\n type WebhookBody,\n type WebhookEntity,\n type WebhookPayload,\n type WebhookPayloadRecord,\n type WebhookPayloadRecordFor,\n type WebhookHandlerFn,\n type WebhookHandlers,\n type WebhookHelpers,\n type CreateWebhookParams,\n type UpdateWebhookParams,\n WebhooksManager,\n} from '@instantdb/webhooks';\n\nexport {\n type InstantAPIPlatformSchema,\n type InstantDBOAuthAccessToken,\n type OAuthHandlerConfig,\n type OAuthScope,\n type InstantRules,\n type InstantRouteHandlerPayloadByType,\n type InstantRouteHandlerType,\n type InstantRouteHandlerBody,\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 clerkDomainFromPublishableKey,\n i,\n Webhooks,\n WebhooksManager,\n type WebhookAction,\n type WebhookStatus,\n type WebhookEventStatus,\n type WebhookInfo,\n type WebhookAttempt,\n type WebhookEventInfo,\n type WebhookEventsPage,\n type WebhookBody,\n type WebhookEntity,\n type WebhookPayload,\n type WebhookPayloadRecord,\n type WebhookPayloadRecordFor,\n type WebhookHandlerFn,\n type WebhookHandlers,\n type WebhookHelpers,\n type CreateWebhookParams,\n type UpdateWebhookParams,\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 DEFAULT_OAUTH_CALLBACK_URL,\n oauthCallbackURL,\n GOOGLE_AUTHORIZATION_ENDPOINT,\n GOOGLE_DISCOVERY_ENDPOINT,\n GOOGLE_TOKEN_ENDPOINT,\n APPLE_AUTHORIZATION_ENDPOINT,\n APPLE_DISCOVERY_ENDPOINT,\n APPLE_TOKEN_ENDPOINT,\n LINKEDIN_AUTHORIZATION_ENDPOINT,\n LINKEDIN_DISCOVERY_ENDPOINT,\n LINKEDIN_TOKEN_ENDPOINT,\n} from './consts.ts';\n"]}
|
package/dist/standalone/index.js
CHANGED
|
@@ -839,7 +839,7 @@ class ve extends W {
|
|
|
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 Be = "v1.0.
|
|
842
|
+
const Be = "v1.0.58-branch-render-boolean-vals-explorer.30865587962.1";
|
|
843
843
|
class ae {
|
|
844
844
|
constructor(t, s, e, i = { indexed: !1, unique: !1 }) {
|
|
845
845
|
m(this, "valueType");
|
|
@@ -1191,7 +1191,7 @@ function vr({
|
|
|
1191
1191
|
h.location.href = u;
|
|
1192
1192
|
}), c.finally(() => o.close())) : Promise.reject({ error: "Could not open Auth window" });
|
|
1193
1193
|
}
|
|
1194
|
-
class
|
|
1194
|
+
class wo {
|
|
1195
1195
|
constructor(t) {
|
|
1196
1196
|
/** Redirect URI that the provider will call back into. */
|
|
1197
1197
|
m(this, "redirectUri");
|
|
@@ -10719,7 +10719,7 @@ function pn(r) {
|
|
|
10719
10719
|
throw new Error("Could not extract schema, did not find any entities.");
|
|
10720
10720
|
return z.schema({ entities: t, links: s, rooms: e });
|
|
10721
10721
|
}
|
|
10722
|
-
function
|
|
10722
|
+
function ko(r, t = "instant.schema.ts") {
|
|
10723
10723
|
var e;
|
|
10724
10724
|
const s = ki(r, {
|
|
10725
10725
|
sourceFilename: t,
|
|
@@ -10733,7 +10733,7 @@ function Co(r, t = "instant.schema.ts") {
|
|
|
10733
10733
|
);
|
|
10734
10734
|
return pn(s);
|
|
10735
10735
|
}
|
|
10736
|
-
function
|
|
10736
|
+
function No(r, t) {
|
|
10737
10737
|
const s = r && Object.keys(r).length ? JSON.stringify(r, null, 2) : `{
|
|
10738
10738
|
/**
|
|
10739
10739
|
* Welcome to Instant's permission system!
|
|
@@ -10775,7 +10775,7 @@ function fn(r) {
|
|
|
10775
10775
|
"Could not extract rules, did not find the rules variable declaration."
|
|
10776
10776
|
);
|
|
10777
10777
|
}
|
|
10778
|
-
function
|
|
10778
|
+
function vo(r, t) {
|
|
10779
10779
|
var e;
|
|
10780
10780
|
const s = ki(r, {
|
|
10781
10781
|
sourceFilename: t,
|
|
@@ -10888,7 +10888,7 @@ function In(r) {
|
|
|
10888
10888
|
return t += t === "{" ? "}" : `
|
|
10889
10889
|
}`, t;
|
|
10890
10890
|
}
|
|
10891
|
-
function
|
|
10891
|
+
function Oo(r, t, s) {
|
|
10892
10892
|
const e = Oi(
|
|
10893
10893
|
Oe(t.entities).map(
|
|
10894
10894
|
([l, u]) => Gt(l, u)
|
|
@@ -11666,7 +11666,7 @@ class xs {
|
|
|
11666
11666
|
}
|
|
11667
11667
|
}
|
|
11668
11668
|
re = new WeakMap(), Z = new WeakMap(), St = new WeakMap(), It = new WeakMap(), Et = new WeakMap();
|
|
11669
|
-
async function
|
|
11669
|
+
async function Do({
|
|
11670
11670
|
code: r,
|
|
11671
11671
|
clientId: t,
|
|
11672
11672
|
clientSecret: s,
|
|
@@ -12921,7 +12921,7 @@ class Me extends Error {
|
|
|
12921
12921
|
}
|
|
12922
12922
|
}
|
|
12923
12923
|
var D, B;
|
|
12924
|
-
class
|
|
12924
|
+
class Lo {
|
|
12925
12925
|
/**
|
|
12926
12926
|
* @param config – Runtime configuration.
|
|
12927
12927
|
* @param config.auth.token – OAuth access-token obtained via the oauth flow
|
|
@@ -13281,7 +13281,7 @@ function xo(r) {
|
|
|
13281
13281
|
return Buffer.from(r, "base64url").toString("utf-8");
|
|
13282
13282
|
}
|
|
13283
13283
|
}
|
|
13284
|
-
function
|
|
13284
|
+
function Mo(r) {
|
|
13285
13285
|
try {
|
|
13286
13286
|
const t = r.split("_"), s = t[t.length - 1];
|
|
13287
13287
|
return xo(s).replace("$", "");
|
|
@@ -13289,39 +13289,45 @@ function Lo(r) {
|
|
|
13289
13289
|
return console.error("Error getting domain from clerk key", t), null;
|
|
13290
13290
|
}
|
|
13291
13291
|
}
|
|
13292
|
-
|
|
13292
|
+
function Po(r) {
|
|
13293
|
+
return `${r.replace(/\/+$/, "")}/runtime/oauth/callback`;
|
|
13294
|
+
}
|
|
13295
|
+
const Fo = Po(
|
|
13296
|
+
"https://api.instantdb.com"
|
|
13297
|
+
), Bo = "https://accounts.google.com/o/oauth2/v2/auth", Ro = "https://oauth2.googleapis.com/token", _o = "https://accounts.google.com/.well-known/openid-configuration", jo = "https://appleid.apple.com/auth/authorize", Uo = "https://appleid.apple.com/auth/token", $o = "https://appleid.apple.com/.well-known/openid-configuration", qo = "https://www.linkedin.com/oauth/v2/authorization", zo = "https://www.linkedin.com/oauth/v2/accessToken", Vo = "https://www.linkedin.com/oauth/.well-known/openid-configuration";
|
|
13293
13298
|
export {
|
|
13294
|
-
|
|
13295
|
-
|
|
13296
|
-
|
|
13297
|
-
|
|
13298
|
-
|
|
13299
|
-
|
|
13300
|
-
|
|
13299
|
+
jo as APPLE_AUTHORIZATION_ENDPOINT,
|
|
13300
|
+
$o as APPLE_DISCOVERY_ENDPOINT,
|
|
13301
|
+
Uo as APPLE_TOKEN_ENDPOINT,
|
|
13302
|
+
Fo as DEFAULT_OAUTH_CALLBACK_URL,
|
|
13303
|
+
Bo as GOOGLE_AUTHORIZATION_ENDPOINT,
|
|
13304
|
+
_o as GOOGLE_DISCOVERY_ENDPOINT,
|
|
13305
|
+
Ro as GOOGLE_TOKEN_ENDPOINT,
|
|
13301
13306
|
xe as InstantOAuthError,
|
|
13302
|
-
|
|
13303
|
-
|
|
13304
|
-
|
|
13305
|
-
|
|
13306
|
-
|
|
13307
|
+
qo as LINKEDIN_AUTHORIZATION_ENDPOINT,
|
|
13308
|
+
Vo as LINKEDIN_DISCOVERY_ENDPOINT,
|
|
13309
|
+
zo as LINKEDIN_TOKEN_ENDPOINT,
|
|
13310
|
+
wo as OAuthHandler,
|
|
13311
|
+
Lo as PlatformApi,
|
|
13307
13312
|
xs as ProgressPromise,
|
|
13308
13313
|
Ie as SchemaValidationError,
|
|
13309
13314
|
Yt as Webhooks,
|
|
13310
13315
|
jn as WebhooksManager,
|
|
13311
13316
|
tt as apiSchemaToInstantSchemaDef,
|
|
13312
13317
|
Jn as buildAutoRenameSelector,
|
|
13313
|
-
|
|
13318
|
+
Mo as clerkDomainFromPublishableKey,
|
|
13314
13319
|
En as collectSystemCatalogIdentNames,
|
|
13315
13320
|
zn as convertTxSteps,
|
|
13316
13321
|
Vn as diffSchemas,
|
|
13317
|
-
|
|
13322
|
+
Do as exchangeCodeForToken,
|
|
13318
13323
|
Un as exchangeRefreshToken,
|
|
13319
|
-
|
|
13320
|
-
|
|
13324
|
+
No as generatePermsTypescriptFile,
|
|
13325
|
+
Oo as generateSchemaTypescriptFile,
|
|
13321
13326
|
z as i,
|
|
13322
13327
|
Hn as isRenamePromptItem,
|
|
13323
|
-
|
|
13324
|
-
|
|
13328
|
+
Po as oauthCallbackURL,
|
|
13329
|
+
vo as permsTypescriptFileToCode,
|
|
13330
|
+
ko as schemaTypescriptFileToInstantSchema,
|
|
13325
13331
|
Bi as translatePlanSteps,
|
|
13326
13332
|
Cn as validateSchema,
|
|
13327
13333
|
Be as version
|