sharetribe-flex-build-sdk 1.17.2 → 1.17.3

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.
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Admin identity lookup
3
+ *
4
+ * Backs the login command, which verifies an API key before storing it.
5
+ */
6
+ export interface CurrentAdmin {
7
+ /** Email address of the admin the API key belongs to */
8
+ email: string;
9
+ }
10
+ /**
11
+ * Fetches the admin an API key belongs to
12
+ *
13
+ * flex-cli's login calls this before writing the key to auth.edn, so a key that
14
+ * the Build API rejects is never stored. A bad key raises the SDK's ApiError
15
+ * with status 401, which the CLI renders as its access denied page.
16
+ *
17
+ * @param apiKey - Key to verify. Unlike the other SDK calls this is required,
18
+ * since the point is to check a key that is not stored yet.
19
+ * @returns The admin's email address
20
+ */
21
+ export declare function getCurrentAdmin(apiKey: string): Promise<CurrentAdmin>;
22
+ //# sourceMappingURL=admin.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"admin.d.ts","sourceRoot":"","sources":["../../src/admin.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,MAAM,WAAW,YAAY;IAC3B,wDAAwD;IACxD,KAAK,EAAE,MAAM,CAAC;CACf;AAED;;;;;;;;;;GAUG;AACH,wBAAsB,eAAe,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC,CAQ3E"}
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ /**
3
+ * Admin identity lookup
4
+ *
5
+ * Backs the login command, which verifies an API key before storing it.
6
+ */
7
+ Object.defineProperty(exports, "__esModule", { value: true });
8
+ exports.getCurrentAdmin = getCurrentAdmin;
9
+ const client_js_1 = require("./api/client.js");
10
+ /**
11
+ * Fetches the admin an API key belongs to
12
+ *
13
+ * flex-cli's login calls this before writing the key to auth.edn, so a key that
14
+ * the Build API rejects is never stored. A bad key raises the SDK's ApiError
15
+ * with status 401, which the CLI renders as its access denied page.
16
+ *
17
+ * @param apiKey - Key to verify. Unlike the other SDK calls this is required,
18
+ * since the point is to check a key that is not stored yet.
19
+ * @returns The admin's email address
20
+ */
21
+ async function getCurrentAdmin(apiKey) {
22
+ const response = await (0, client_js_1.apiGet)(apiKey, '/current_admin/show', {});
23
+ return { email: response.data['admin/email'] };
24
+ }
25
+ //# sourceMappingURL=admin.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"admin.js","sourceRoot":"","sources":["../../src/admin.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;AAoBH,0CAQC;AA1BD,+CAAyC;AAOzC;;;;;;;;;;GAUG;AACI,KAAK,UAAU,eAAe,CAAC,MAAc;IAClD,MAAM,QAAQ,GAAG,MAAM,IAAA,kBAAM,EAC3B,MAAM,EACN,qBAAqB,EACrB,EAAE,CACH,CAAC;IAEF,OAAO,EAAE,KAAK,EAAE,QAAQ,CAAC,IAAI,CAAC,aAAa,CAAC,EAAE,CAAC;AACjD,CAAC"}
@@ -4,6 +4,7 @@
4
4
  * Programmatic API matching all CLI capabilities
5
5
  */
6
6
  export { listProcesses, listProcessVersions, getProcess, createProcess, pushProcess, createAlias, updateAlias, deleteAlias, type ProcessListItem, type ProcessVersion, type ProcessDetails, type ProcessTemplate, type CreateProcessResult, type PushProcessResult, type AliasResult, } from './processes.js';
7
+ export { getCurrentAdmin, type CurrentAdmin, } from './admin.js';
7
8
  export { listSearchSchemas, setSearchSchema, unsetSearchSchema, type SearchSchema, type SetSearchSchemaOptions, type UnsetSearchSchemaOptions, } from './search.js';
8
9
  export { queryEvents, pollEvents, type EventData, type QueryEventsOptions, } from './events.js';
9
10
  export type { ProcessState, ProcessTransition, ProcessNotification, ProcessAction, ProcessDefinition, } from './types.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,EACL,aAAa,EACb,mBAAmB,EACnB,UAAU,EACV,aAAa,EACb,WAAW,EACX,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EACb,YAAY,EACZ,oBAAoB,GACrB,MAAM,aAAa,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,EACL,aAAa,EACb,mBAAmB,EACnB,UAAU,EACV,aAAa,EACb,WAAW,EACX,WAAW,EACX,WAAW,EACX,WAAW,EACX,KAAK,eAAe,EACpB,KAAK,cAAc,EACnB,KAAK,cAAc,EACnB,KAAK,eAAe,EACpB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,WAAW,GACjB,MAAM,gBAAgB,CAAC;AAGxB,OAAO,EACL,eAAe,EACf,KAAK,YAAY,GAClB,MAAM,YAAY,CAAC;AAGpB,OAAO,EACL,iBAAiB,EACjB,eAAe,EACf,iBAAiB,EACjB,KAAK,YAAY,EACjB,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,GAC9B,MAAM,aAAa,CAAC;AAGrB,OAAO,EACL,WAAW,EACX,UAAU,EACV,KAAK,SAAS,EACd,KAAK,kBAAkB,GACxB,MAAM,aAAa,CAAC;AAGrB,YAAY,EACV,YAAY,EACZ,iBAAiB,EACjB,mBAAmB,EACnB,aAAa,EACb,iBAAiB,GAClB,MAAM,YAAY,CAAC;AAGpB,OAAO,EACL,gBAAgB,EAChB,gBAAgB,GACjB,MAAM,kBAAkB,CAAC;AAG1B,OAAO,EACL,QAAQ,EACR,SAAS,EACT,SAAS,EACT,YAAY,EACZ,gBAAgB,EAChB,eAAe,EACf,KAAK,QAAQ,EACb,KAAK,YAAY,GAClB,MAAM,mBAAmB,CAAC;AAG3B,OAAO,EACL,UAAU,EACV,UAAU,EACV,UAAU,EACV,KAAK,KAAK,EACV,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,GACtB,MAAM,aAAa,CAAC;AAGrB,OAAO,EACL,gBAAgB,EAChB,mBAAmB,EACnB,KAAK,aAAa,EAClB,KAAK,mBAAmB,GACzB,MAAM,oBAAoB,CAAC;AAG5B,OAAO,EACL,wBAAwB,EACxB,qBAAqB,EACrB,sBAAsB,GACvB,MAAM,uBAAuB,CAAC;AAG/B,OAAO,EACL,mBAAmB,EACnB,yBAAyB,EACzB,KAAK,gBAAgB,GACtB,MAAM,aAAa,CAAC;AAGrB,OAAO,EACL,KAAK,QAAQ,GACd,MAAM,iBAAiB,CAAC;AAGzB,OAAO,EACL,aAAa,EACb,YAAY,EACZ,oBAAoB,GACrB,MAAM,aAAa,CAAC"}
package/dist/cjs/index.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * Programmatic API matching all CLI capabilities
6
6
  */
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
8
- exports.DEFAULT_API_BASE_URL = exports.getConfigMap = exports.getApiBaseUrl = exports.SUPPORTED_STRIPE_VERSIONS = exports.updateStripeVersion = exports.disableListingApproval = exports.enableListingApproval = exports.getListingApprovalStatus = exports.previewNotification = exports.sendNotification = exports.stageAsset = exports.pushAssets = exports.pullAssets = exports.getAuthFilePath = exports.resolveConfigDir = exports.configDirFor = exports.clearAuth = exports.writeAuth = exports.readAuth = exports.serializeProcess = exports.parseProcessFile = exports.pollEvents = exports.queryEvents = exports.unsetSearchSchema = exports.setSearchSchema = exports.listSearchSchemas = exports.deleteAlias = exports.updateAlias = exports.createAlias = exports.pushProcess = exports.createProcess = exports.getProcess = exports.listProcessVersions = exports.listProcesses = void 0;
8
+ exports.DEFAULT_API_BASE_URL = exports.getConfigMap = exports.getApiBaseUrl = exports.SUPPORTED_STRIPE_VERSIONS = exports.updateStripeVersion = exports.disableListingApproval = exports.enableListingApproval = exports.getListingApprovalStatus = exports.previewNotification = exports.sendNotification = exports.stageAsset = exports.pushAssets = exports.pullAssets = exports.getAuthFilePath = exports.resolveConfigDir = exports.configDirFor = exports.clearAuth = exports.writeAuth = exports.readAuth = exports.serializeProcess = exports.parseProcessFile = exports.pollEvents = exports.queryEvents = exports.unsetSearchSchema = exports.setSearchSchema = exports.listSearchSchemas = exports.getCurrentAdmin = exports.deleteAlias = exports.updateAlias = exports.createAlias = exports.pushProcess = exports.createProcess = exports.getProcess = exports.listProcessVersions = exports.listProcesses = void 0;
9
9
  // Export process management functions
10
10
  var processes_js_1 = require("./processes.js");
11
11
  Object.defineProperty(exports, "listProcesses", { enumerable: true, get: function () { return processes_js_1.listProcesses; } });
@@ -16,6 +16,9 @@ Object.defineProperty(exports, "pushProcess", { enumerable: true, get: function
16
16
  Object.defineProperty(exports, "createAlias", { enumerable: true, get: function () { return processes_js_1.createAlias; } });
17
17
  Object.defineProperty(exports, "updateAlias", { enumerable: true, get: function () { return processes_js_1.updateAlias; } });
18
18
  Object.defineProperty(exports, "deleteAlias", { enumerable: true, get: function () { return processes_js_1.deleteAlias; } });
19
+ // Export admin identity lookup, which login uses to verify a key
20
+ var admin_js_1 = require("./admin.js");
21
+ Object.defineProperty(exports, "getCurrentAdmin", { enumerable: true, get: function () { return admin_js_1.getCurrentAdmin; } });
19
22
  // Export search schema management functions
20
23
  var search_js_1 = require("./search.js");
21
24
  Object.defineProperty(exports, "listSearchSchemas", { enumerable: true, get: function () { return search_js_1.listSearchSchemas; } });
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAEH,sCAAsC;AACtC,+CAgBwB;AAftB,6GAAA,aAAa,OAAA;AACb,mHAAA,mBAAmB,OAAA;AACnB,0GAAA,UAAU,OAAA;AACV,6GAAA,aAAa,OAAA;AACb,2GAAA,WAAW,OAAA;AACX,2GAAA,WAAW,OAAA;AACX,2GAAA,WAAW,OAAA;AACX,2GAAA,WAAW,OAAA;AAUb,4CAA4C;AAC5C,yCAOqB;AANnB,8GAAA,iBAAiB,OAAA;AACjB,4GAAA,eAAe,OAAA;AACf,8GAAA,iBAAiB,OAAA;AAMnB,gCAAgC;AAChC,yCAKqB;AAJnB,wGAAA,WAAW,OAAA;AACX,uGAAA,UAAU,OAA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GAAA,iBAAiB,OAAA;AAMnB,gCAAgC;AAChC,yCAKqB;AAJnB,wGAAA,WAAW,OAAA;AACX,uGAAA,UAAU,OAAA;AAcZ,+BAA+B;AAC/B,mDAG0B;AAFxB,kHAAA,gBAAgB,OAAA;AAChB,kHAAA,gBAAgB,OAAA;AAGlB,kCAAkC;AAClC,qDAS2B;AARzB,2GAAA,QAAQ,OAAA;AACR,4GAAA,SAAS,OAAA;AACT,4GAAA,SAAS,OAAA;AACT,+GAAA,YAAY,OAAA;AACZ,mHAAA,gBAAgB,OAAA;AAChB,kHAAA,eAAe,OAAA;AAKjB,oCAAoC;AACpC,yCAQqB;AAPnB,uGAAA,UAAU,OAAA;AACV,uGAAA,UAAU,OAAA;AACV,uGAAA,UAAU,OAAA;AAOZ,2CAA2C;AAC3C,uDAK4B;AAJ1B,oHAAA,gBAAgB,OAAA;AAChB,uHAAA,mBAAmB,OAAA;AAKrB,oCAAoC;AACpC,6DAI+B;AAH7B,+HAAA,wBAAwB,OAAA;AACxB,4HAAA,qBAAqB,OAAA;AACrB,6HAAA,sBAAsB,OAAA;AAGxB,sCAAsC;AACtC,yCAIqB;AAHnB,gHAAA,mBAAmB,OAAA;AACnB,sHAAA,yBAAyB,OAAA;AAS3B,+BAA+B;AAC/B,yCAIqB;AAHnB,0GAAA,aAAa,OAAA;AACb,yGAAA,YAAY,OAAA;AACZ,iHAAA,oBAAoB,OAAA"}
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Admin identity lookup
3
+ *
4
+ * Backs the login command, which verifies an API key before storing it.
5
+ */
6
+ export interface CurrentAdmin {
7
+ /** Email address of the admin the API key belongs to */
8
+ email: string;
9
+ }
10
+ /**
11
+ * Fetches the admin an API key belongs to
12
+ *
13
+ * flex-cli's login calls this before writing the key to auth.edn, so a key that
14
+ * the Build API rejects is never stored. A bad key raises the SDK's ApiError
15
+ * with status 401, which the CLI renders as its access denied page.
16
+ *
17
+ * @param apiKey - Key to verify. Unlike the other SDK calls this is required,
18
+ * since the point is to check a key that is not stored yet.
19
+ * @returns The admin's email address
20
+ */
21
+ export declare function getCurrentAdmin(apiKey: string): Promise<CurrentAdmin>;
22
+ //# sourceMappingURL=admin.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"admin.d.ts","sourceRoot":"","sources":["../../src/admin.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,MAAM,WAAW,YAAY;IAC3B,wDAAwD;IACxD,KAAK,EAAE,MAAM,CAAC;CACf;AAED;;;;;;;;;;GAUG;AACH,wBAAsB,eAAe,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC,CAQ3E"}
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Admin identity lookup
3
+ *
4
+ * Backs the login command, which verifies an API key before storing it.
5
+ */
6
+ import { apiGet } from './api/client.js';
7
+ /**
8
+ * Fetches the admin an API key belongs to
9
+ *
10
+ * flex-cli's login calls this before writing the key to auth.edn, so a key that
11
+ * the Build API rejects is never stored. A bad key raises the SDK's ApiError
12
+ * with status 401, which the CLI renders as its access denied page.
13
+ *
14
+ * @param apiKey - Key to verify. Unlike the other SDK calls this is required,
15
+ * since the point is to check a key that is not stored yet.
16
+ * @returns The admin's email address
17
+ */
18
+ export async function getCurrentAdmin(apiKey) {
19
+ const response = await apiGet(apiKey, '/current_admin/show', {});
20
+ return { email: response.data['admin/email'] };
21
+ }
22
+ //# sourceMappingURL=admin.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"admin.js","sourceRoot":"","sources":["../../src/admin.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAOzC;;;;;;;;;;GAUG;AACH,MAAM,CAAC,KAAK,UAAU,eAAe,CAAC,MAAc;IAClD,MAAM,QAAQ,GAAG,MAAM,MAAM,CAC3B,MAAM,EACN,qBAAqB,EACrB,EAAE,CACH,CAAC;IAEF,OAAO,EAAE,KAAK,EAAE,QAAQ,CAAC,IAAI,CAAC,aAAa,CAAC,EAAE,CAAC;AACjD,CAAC"}
@@ -4,6 +4,7 @@
4
4
  * Programmatic API matching all CLI capabilities
5
5
  */
6
6
  export { listProcesses, listProcessVersions, getProcess, createProcess, pushProcess, createAlias, updateAlias, deleteAlias, type ProcessListItem, type ProcessVersion, type ProcessDetails, type ProcessTemplate, type CreateProcessResult, type PushProcessResult, type AliasResult, } from './processes.js';
7
+ export { getCurrentAdmin, type CurrentAdmin, } from './admin.js';
7
8
  export { listSearchSchemas, setSearchSchema, unsetSearchSchema, type SearchSchema, type SetSearchSchemaOptions, type UnsetSearchSchemaOptions, } from './search.js';
8
9
  export { queryEvents, pollEvents, type EventData, type QueryEventsOptions, } from './events.js';
9
10
  export type { ProcessState, ProcessTransition, ProcessNotification, ProcessAction, ProcessDefinition, } from './types.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,EACL,aAAa,EACb,mBAAmB,EACnB,UAAU,EACV,aAAa,EACb,WAAW,EACX,WAAW,EACX,WAAW,EACX,WAAW,EACX,KAAK,eAAe,EACpB,KAAK,cAAc,EACnB,KAAK,cAAc,EACnB,KAAK,eAAe,EACpB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,WAAW,GACjB,MAAM,gBAAgB,CAAC;AAGxB,OAAO,EACL,iBAAiB,EACjB,eAAe,EACf,iBAAiB,EACjB,KAAK,YAAY,EACjB,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,GAC9B,MAAM,aAAa,CAAC;AAGrB,OAAO,EACL,WAAW,EACX,UAAU,EACV,KAAK,SAAS,EACd,KAAK,kBAAkB,GACxB,MAAM,aAAa,CAAC;AAGrB,YAAY,EACV,YAAY,EACZ,iBAAiB,EACjB,mBAAmB,EACnB,aAAa,EACb,iBAAiB,GAClB,MAAM,YAAY,CAAC;AAGpB,OAAO,EACL,gBAAgB,EAChB,gBAAgB,GACjB,MAAM,kBAAkB,CAAC;AAG1B,OAAO,EACL,QAAQ,EACR,SAAS,EACT,SAAS,EACT,YAAY,EACZ,gBAAgB,EAChB,eAAe,EACf,KAAK,QAAQ,EACb,KAAK,YAAY,GAClB,MAAM,mBAAmB,CAAC;AAG3B,OAAO,EACL,UAAU,EACV,UAAU,EACV,UAAU,EACV,KAAK,KAAK,EACV,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,GACtB,MAAM,aAAa,CAAC;AAGrB,OAAO,EACL,gBAAgB,EAChB,mBAAmB,EACnB,KAAK,aAAa,EAClB,KAAK,mBAAmB,GACzB,MAAM,oBAAoB,CAAC;AAG5B,OAAO,EACL,wBAAwB,EACxB,qBAAqB,EACrB,sBAAsB,GACvB,MAAM,uBAAuB,CAAC;AAG/B,OAAO,EACL,mBAAmB,EACnB,yBAAyB,EACzB,KAAK,gBAAgB,GACtB,MAAM,aAAa,CAAC;AAGrB,OAAO,EACL,KAAK,QAAQ,GACd,MAAM,iBAAiB,CAAC;AAGzB,OAAO,EACL,aAAa,EACb,YAAY,EACZ,oBAAoB,GACrB,MAAM,aAAa,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,EACL,aAAa,EACb,mBAAmB,EACnB,UAAU,EACV,aAAa,EACb,WAAW,EACX,WAAW,EACX,WAAW,EACX,WAAW,EACX,KAAK,eAAe,EACpB,KAAK,cAAc,EACnB,KAAK,cAAc,EACnB,KAAK,eAAe,EACpB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,WAAW,GACjB,MAAM,gBAAgB,CAAC;AAGxB,OAAO,EACL,eAAe,EACf,KAAK,YAAY,GAClB,MAAM,YAAY,CAAC;AAGpB,OAAO,EACL,iBAAiB,EACjB,eAAe,EACf,iBAAiB,EACjB,KAAK,YAAY,EACjB,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,GAC9B,MAAM,aAAa,CAAC;AAGrB,OAAO,EACL,WAAW,EACX,UAAU,EACV,KAAK,SAAS,EACd,KAAK,kBAAkB,GACxB,MAAM,aAAa,CAAC;AAGrB,YAAY,EACV,YAAY,EACZ,iBAAiB,EACjB,mBAAmB,EACnB,aAAa,EACb,iBAAiB,GAClB,MAAM,YAAY,CAAC;AAGpB,OAAO,EACL,gBAAgB,EAChB,gBAAgB,GACjB,MAAM,kBAAkB,CAAC;AAG1B,OAAO,EACL,QAAQ,EACR,SAAS,EACT,SAAS,EACT,YAAY,EACZ,gBAAgB,EAChB,eAAe,EACf,KAAK,QAAQ,EACb,KAAK,YAAY,GAClB,MAAM,mBAAmB,CAAC;AAG3B,OAAO,EACL,UAAU,EACV,UAAU,EACV,UAAU,EACV,KAAK,KAAK,EACV,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,GACtB,MAAM,aAAa,CAAC;AAGrB,OAAO,EACL,gBAAgB,EAChB,mBAAmB,EACnB,KAAK,aAAa,EAClB,KAAK,mBAAmB,GACzB,MAAM,oBAAoB,CAAC;AAG5B,OAAO,EACL,wBAAwB,EACxB,qBAAqB,EACrB,sBAAsB,GACvB,MAAM,uBAAuB,CAAC;AAG/B,OAAO,EACL,mBAAmB,EACnB,yBAAyB,EACzB,KAAK,gBAAgB,GACtB,MAAM,aAAa,CAAC;AAGrB,OAAO,EACL,KAAK,QAAQ,GACd,MAAM,iBAAiB,CAAC;AAGzB,OAAO,EACL,aAAa,EACb,YAAY,EACZ,oBAAoB,GACrB,MAAM,aAAa,CAAC"}
package/dist/esm/index.js CHANGED
@@ -5,6 +5,8 @@
5
5
  */
6
6
  // Export process management functions
7
7
  export { listProcesses, listProcessVersions, getProcess, createProcess, pushProcess, createAlias, updateAlias, deleteAlias, } from './processes.js';
8
+ // Export admin identity lookup, which login uses to verify a key
9
+ export { getCurrentAdmin, } from './admin.js';
8
10
  // Export search schema management functions
9
11
  export { listSearchSchemas, setSearchSchema, unsetSearchSchema, } from './search.js';
10
12
  // Export events query functions
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,sCAAsC;AACtC,OAAO,EACL,aAAa,EACb,mBAAmB,EACnB,UAAU,EACV,aAAa,EACb,WAAW,EACX,WAAW,EACX,WAAW,EACX,WAAW,GAQZ,MAAM,gBAAgB,CAAC;AAExB,4CAA4C;AAC5C,OAAO,EACL,iBAAiB,EACjB,eAAe,EACf,iBAAiB,GAIlB,MAAM,aAAa,CAAC;AAErB,gCAAgC;AAChC,OAAO,EACL,WAAW,EACX,UAAU,GAGX,MAAM,aAAa,CAAC;AAWrB,+BAA+B;AAC/B,OAAO,EACL,gBAAgB,EAChB,gBAAgB,GACjB,MAAM,kBAAkB,CAAC;AAE1B,kCAAkC;AAClC,OAAO,EACL,QAAQ,EACR,SAAS,EACT,SAAS,EACT,YAAY,EACZ,gBAAgB,EAChB,eAAe,GAGhB,MAAM,mBAAmB,CAAC;AAE3B,oCAAoC;AACpC,OAAO,EACL,UAAU,EACV,UAAU,EACV,UAAU,GAKX,MAAM,aAAa,CAAC;AAErB,2CAA2C;AAC3C,OAAO,EACL,gBAAgB,EAChB,mBAAmB,GAGpB,MAAM,oBAAoB,CAAC;AAE5B,oCAAoC;AACpC,OAAO,EACL,wBAAwB,EACxB,qBAAqB,EACrB,sBAAsB,GACvB,MAAM,uBAAuB,CAAC;AAE/B,sCAAsC;AACtC,OAAO,EACL,mBAAmB,EACnB,yBAAyB,GAE1B,MAAM,aAAa,CAAC;AAOrB,+BAA+B;AAC/B,OAAO,EACL,aAAa,EACb,YAAY,EACZ,oBAAoB,GACrB,MAAM,aAAa,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,sCAAsC;AACtC,OAAO,EACL,aAAa,EACb,mBAAmB,EACnB,UAAU,EACV,aAAa,EACb,WAAW,EACX,WAAW,EACX,WAAW,EACX,WAAW,GAQZ,MAAM,gBAAgB,CAAC;AAExB,iEAAiE;AACjE,OAAO,EACL,eAAe,GAEhB,MAAM,YAAY,CAAC;AAEpB,4CAA4C;AAC5C,OAAO,EACL,iBAAiB,EACjB,eAAe,EACf,iBAAiB,GAIlB,MAAM,aAAa,CAAC;AAErB,gCAAgC;AAChC,OAAO,EACL,WAAW,EACX,UAAU,GAGX,MAAM,aAAa,CAAC;AAWrB,+BAA+B;AAC/B,OAAO,EACL,gBAAgB,EAChB,gBAAgB,GACjB,MAAM,kBAAkB,CAAC;AAE1B,kCAAkC;AAClC,OAAO,EACL,QAAQ,EACR,SAAS,EACT,SAAS,EACT,YAAY,EACZ,gBAAgB,EAChB,eAAe,GAGhB,MAAM,mBAAmB,CAAC;AAE3B,oCAAoC;AACpC,OAAO,EACL,UAAU,EACV,UAAU,EACV,UAAU,GAKX,MAAM,aAAa,CAAC;AAErB,2CAA2C;AAC3C,OAAO,EACL,gBAAgB,EAChB,mBAAmB,GAGpB,MAAM,oBAAoB,CAAC;AAE5B,oCAAoC;AACpC,OAAO,EACL,wBAAwB,EACxB,qBAAqB,EACrB,sBAAsB,GACvB,MAAM,uBAAuB,CAAC;AAE/B,sCAAsC;AACtC,OAAO,EACL,mBAAmB,EACnB,yBAAyB,GAE1B,MAAM,aAAa,CAAC;AAOrB,+BAA+B;AAC/B,OAAO,EACL,aAAa,EACb,YAAY,EACZ,oBAAoB,GACrB,MAAM,aAAa,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sharetribe-flex-build-sdk",
3
- "version": "1.17.2",
3
+ "version": "1.17.3",
4
4
  "description": "SDK for building and managing Sharetribe Flex transaction processes",
5
5
  "type": "module",
6
6
  "main": "./dist/cjs/index.js",
@@ -50,7 +50,7 @@
50
50
  "license": "Apache-2.0",
51
51
  "repository": {
52
52
  "type": "git",
53
- "url": "https://github.com/sharetribe-community/sharetribe-cli",
53
+ "url": "git+https://github.com/sharetribe-community/sharetribe-cli.git",
54
54
  "directory": "packages/sharetribe-flex-build-sdk"
55
55
  },
56
56
  "homepage": "https://github.com/sharetribe-community/sharetribe-cli/tree/master/packages/sharetribe-flex-build-sdk",