executor 1.3.0-beta.1 → 1.3.0-beta.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.
- package/bin/executor.mjs +84 -2394
- package/node_modules/@1password/sdk/README.md +146 -0
- package/node_modules/@1password/sdk/dist/client.d.ts +14 -0
- package/node_modules/@1password/sdk/dist/client.js +19 -0
- package/node_modules/@1password/sdk/dist/client_builder.d.ts +8 -0
- package/node_modules/@1password/sdk/dist/client_builder.js +36 -0
- package/node_modules/@1password/sdk/dist/configuration.d.ts +23 -0
- package/node_modules/@1password/sdk/dist/configuration.js +58 -0
- package/node_modules/@1password/sdk/dist/core.d.ts +92 -0
- package/node_modules/@1password/sdk/dist/core.js +119 -0
- package/node_modules/@1password/sdk/dist/environments.d.ts +19 -0
- package/node_modules/@1password/sdk/dist/environments.js +53 -0
- package/node_modules/@1password/sdk/dist/errors.d.ts +9 -0
- package/node_modules/@1password/sdk/dist/errors.js +36 -0
- package/node_modules/@1password/sdk/dist/groups.d.ts +19 -0
- package/node_modules/@1password/sdk/dist/groups.js +54 -0
- package/node_modules/@1password/sdk/dist/items.d.ts +89 -0
- package/node_modules/@1password/sdk/dist/items.js +216 -0
- package/node_modules/@1password/sdk/dist/items_files.d.ts +40 -0
- package/node_modules/@1password/sdk/dist/items_files.js +116 -0
- package/node_modules/@1password/sdk/dist/items_shares.d.ts +32 -0
- package/node_modules/@1password/sdk/dist/items_shares.js +95 -0
- package/node_modules/@1password/sdk/dist/sdk.d.ts +14 -0
- package/node_modules/@1password/sdk/dist/sdk.js +45 -0
- package/node_modules/@1password/sdk/dist/secrets.d.ts +36 -0
- package/node_modules/@1password/sdk/dist/secrets.js +107 -0
- package/node_modules/@1password/sdk/dist/shared_lib_core.d.ts +16 -0
- package/node_modules/@1password/sdk/dist/shared_lib_core.js +177 -0
- package/node_modules/@1password/sdk/dist/types.d.ts +769 -0
- package/node_modules/@1password/sdk/dist/types.js +260 -0
- package/node_modules/@1password/sdk/dist/vaults.d.ts +83 -0
- package/node_modules/@1password/sdk/dist/vaults.js +209 -0
- package/node_modules/@1password/sdk/dist/version.d.ts +2 -0
- package/node_modules/@1password/sdk/dist/version.js +6 -0
- package/node_modules/@1password/sdk/package.json +47 -0
- package/node_modules/@1password/sdk-core/nodejs/core.d.ts +18 -0
- package/node_modules/@1password/sdk-core/nodejs/core.js +798 -0
- package/node_modules/@1password/sdk-core/nodejs/core_bg.wasm +0 -0
- package/node_modules/@1password/sdk-core/nodejs/core_bg.wasm.d.ts +20 -0
- package/node_modules/@1password/sdk-core/package.json +16 -0
- package/package.json +11 -2
- package/resources/web/assets/{highlighted-body-TPN3WLV5-C_J7V5Ix.js → highlighted-body-TPN3WLV5-CDRNFkjL.js} +1 -1
- package/resources/web/assets/{index-Ojug-oEi.js → index-Dd_qDhpI.js} +2 -2
- package/resources/web/assets/{mermaid-O7DHMXV3-BwulDFDa.js → mermaid-O7DHMXV3-CSkwp1or.js} +115 -115
- package/resources/web/assets/mermaid-O7DHMXV3-TBgTjb2d.css +1 -0
- package/resources/web/index.html +1 -1
- package/resources/web/assets/mermaid-O7DHMXV3-BJkcto5N.css +0 -1
package/bin/executor.mjs
CHANGED
|
@@ -203928,2331 +203928,6 @@ Additional information: BADCLIENT: Bad error code, ${badCode} not found in range
|
|
|
203928
203928
|
} });
|
|
203929
203929
|
});
|
|
203930
203930
|
|
|
203931
|
-
// node_modules/@1password/sdk-core/nodejs/core.js
|
|
203932
|
-
var require_core4 = __commonJS((exports, module) => {
|
|
203933
|
-
var __dirname = "/home/runner/work/executor/executor/node_modules/@1password/sdk-core/nodejs";
|
|
203934
|
-
var imports = {};
|
|
203935
|
-
imports["__wbindgen_placeholder__"] = exports;
|
|
203936
|
-
var wasm;
|
|
203937
|
-
var { TextDecoder: TextDecoder2, TextEncoder: TextEncoder2 } = __require("util");
|
|
203938
|
-
var cachedTextDecoder = new TextDecoder2("utf-8", { ignoreBOM: true, fatal: true });
|
|
203939
|
-
cachedTextDecoder.decode();
|
|
203940
|
-
var cachedUint8ArrayMemory0 = null;
|
|
203941
|
-
function getUint8ArrayMemory0() {
|
|
203942
|
-
if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
|
|
203943
|
-
cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
|
|
203944
|
-
}
|
|
203945
|
-
return cachedUint8ArrayMemory0;
|
|
203946
|
-
}
|
|
203947
|
-
function getStringFromWasm0(ptr, len) {
|
|
203948
|
-
ptr = ptr >>> 0;
|
|
203949
|
-
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
|
203950
|
-
}
|
|
203951
|
-
function addToExternrefTable0(obj) {
|
|
203952
|
-
const idx = wasm.__externref_table_alloc();
|
|
203953
|
-
wasm.__wbindgen_export_2.set(idx, obj);
|
|
203954
|
-
return idx;
|
|
203955
|
-
}
|
|
203956
|
-
function handleError(f5, args2) {
|
|
203957
|
-
try {
|
|
203958
|
-
return f5.apply(this, args2);
|
|
203959
|
-
} catch (e) {
|
|
203960
|
-
const idx = addToExternrefTable0(e);
|
|
203961
|
-
wasm.__wbindgen_exn_store(idx);
|
|
203962
|
-
}
|
|
203963
|
-
}
|
|
203964
|
-
function isLikeNone(x5) {
|
|
203965
|
-
return x5 === undefined || x5 === null;
|
|
203966
|
-
}
|
|
203967
|
-
var WASM_VECTOR_LEN = 0;
|
|
203968
|
-
var cachedTextEncoder = new TextEncoder2("utf-8");
|
|
203969
|
-
var encodeString = typeof cachedTextEncoder.encodeInto === "function" ? function(arg, view) {
|
|
203970
|
-
return cachedTextEncoder.encodeInto(arg, view);
|
|
203971
|
-
} : function(arg, view) {
|
|
203972
|
-
const buf = cachedTextEncoder.encode(arg);
|
|
203973
|
-
view.set(buf);
|
|
203974
|
-
return {
|
|
203975
|
-
read: arg.length,
|
|
203976
|
-
written: buf.length
|
|
203977
|
-
};
|
|
203978
|
-
};
|
|
203979
|
-
function passStringToWasm0(arg, malloc, realloc) {
|
|
203980
|
-
if (realloc === undefined) {
|
|
203981
|
-
const buf = cachedTextEncoder.encode(arg);
|
|
203982
|
-
const ptr2 = malloc(buf.length, 1) >>> 0;
|
|
203983
|
-
getUint8ArrayMemory0().subarray(ptr2, ptr2 + buf.length).set(buf);
|
|
203984
|
-
WASM_VECTOR_LEN = buf.length;
|
|
203985
|
-
return ptr2;
|
|
203986
|
-
}
|
|
203987
|
-
let len = arg.length;
|
|
203988
|
-
let ptr = malloc(len, 1) >>> 0;
|
|
203989
|
-
const mem = getUint8ArrayMemory0();
|
|
203990
|
-
let offset = 0;
|
|
203991
|
-
for (;offset < len; offset++) {
|
|
203992
|
-
const code2 = arg.charCodeAt(offset);
|
|
203993
|
-
if (code2 > 127)
|
|
203994
|
-
break;
|
|
203995
|
-
mem[ptr + offset] = code2;
|
|
203996
|
-
}
|
|
203997
|
-
if (offset !== len) {
|
|
203998
|
-
if (offset !== 0) {
|
|
203999
|
-
arg = arg.slice(offset);
|
|
204000
|
-
}
|
|
204001
|
-
ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
|
|
204002
|
-
const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
|
|
204003
|
-
const ret = encodeString(arg, view);
|
|
204004
|
-
offset += ret.written;
|
|
204005
|
-
ptr = realloc(ptr, len, offset, 1) >>> 0;
|
|
204006
|
-
}
|
|
204007
|
-
WASM_VECTOR_LEN = offset;
|
|
204008
|
-
return ptr;
|
|
204009
|
-
}
|
|
204010
|
-
var cachedDataViewMemory0 = null;
|
|
204011
|
-
function getDataViewMemory0() {
|
|
204012
|
-
if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer) {
|
|
204013
|
-
cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
|
|
204014
|
-
}
|
|
204015
|
-
return cachedDataViewMemory0;
|
|
204016
|
-
}
|
|
204017
|
-
var CLOSURE_DTORS = typeof FinalizationRegistry === "undefined" ? { register: () => {}, unregister: () => {} } : new FinalizationRegistry((state2) => {
|
|
204018
|
-
wasm.__wbindgen_export_5.get(state2.dtor)(state2.a, state2.b);
|
|
204019
|
-
});
|
|
204020
|
-
function makeMutClosure(arg0, arg1, dtor, f5) {
|
|
204021
|
-
const state2 = { a: arg0, b: arg1, cnt: 1, dtor };
|
|
204022
|
-
const real = (...args2) => {
|
|
204023
|
-
state2.cnt++;
|
|
204024
|
-
const a5 = state2.a;
|
|
204025
|
-
state2.a = 0;
|
|
204026
|
-
try {
|
|
204027
|
-
return f5(a5, state2.b, ...args2);
|
|
204028
|
-
} finally {
|
|
204029
|
-
if (--state2.cnt === 0) {
|
|
204030
|
-
wasm.__wbindgen_export_5.get(state2.dtor)(a5, state2.b);
|
|
204031
|
-
CLOSURE_DTORS.unregister(state2);
|
|
204032
|
-
} else {
|
|
204033
|
-
state2.a = a5;
|
|
204034
|
-
}
|
|
204035
|
-
}
|
|
204036
|
-
};
|
|
204037
|
-
real.original = state2;
|
|
204038
|
-
CLOSURE_DTORS.register(real, state2, state2);
|
|
204039
|
-
return real;
|
|
204040
|
-
}
|
|
204041
|
-
function debugString(val) {
|
|
204042
|
-
const type2 = typeof val;
|
|
204043
|
-
if (type2 == "number" || type2 == "boolean" || val == null) {
|
|
204044
|
-
return `${val}`;
|
|
204045
|
-
}
|
|
204046
|
-
if (type2 == "string") {
|
|
204047
|
-
return `"${val}"`;
|
|
204048
|
-
}
|
|
204049
|
-
if (type2 == "symbol") {
|
|
204050
|
-
const description = val.description;
|
|
204051
|
-
if (description == null) {
|
|
204052
|
-
return "Symbol";
|
|
204053
|
-
} else {
|
|
204054
|
-
return `Symbol(${description})`;
|
|
204055
|
-
}
|
|
204056
|
-
}
|
|
204057
|
-
if (type2 == "function") {
|
|
204058
|
-
const name = val.name;
|
|
204059
|
-
if (typeof name == "string" && name.length > 0) {
|
|
204060
|
-
return `Function(${name})`;
|
|
204061
|
-
} else {
|
|
204062
|
-
return "Function";
|
|
204063
|
-
}
|
|
204064
|
-
}
|
|
204065
|
-
if (Array.isArray(val)) {
|
|
204066
|
-
const length4 = val.length;
|
|
204067
|
-
let debug2 = "[";
|
|
204068
|
-
if (length4 > 0) {
|
|
204069
|
-
debug2 += debugString(val[0]);
|
|
204070
|
-
}
|
|
204071
|
-
for (let i = 1;i < length4; i++) {
|
|
204072
|
-
debug2 += ", " + debugString(val[i]);
|
|
204073
|
-
}
|
|
204074
|
-
debug2 += "]";
|
|
204075
|
-
return debug2;
|
|
204076
|
-
}
|
|
204077
|
-
const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val));
|
|
204078
|
-
let className;
|
|
204079
|
-
if (builtInMatches && builtInMatches.length > 1) {
|
|
204080
|
-
className = builtInMatches[1];
|
|
204081
|
-
} else {
|
|
204082
|
-
return toString.call(val);
|
|
204083
|
-
}
|
|
204084
|
-
if (className == "Object") {
|
|
204085
|
-
try {
|
|
204086
|
-
return "Object(" + JSON.stringify(val) + ")";
|
|
204087
|
-
} catch (_5) {
|
|
204088
|
-
return "Object";
|
|
204089
|
-
}
|
|
204090
|
-
}
|
|
204091
|
-
if (val instanceof Error) {
|
|
204092
|
-
return `${val.name}: ${val.message}
|
|
204093
|
-
${val.stack}`;
|
|
204094
|
-
}
|
|
204095
|
-
return className;
|
|
204096
|
-
}
|
|
204097
|
-
exports.invoke = function(parameters) {
|
|
204098
|
-
const ptr0 = passStringToWasm0(parameters, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
204099
|
-
const len0 = WASM_VECTOR_LEN;
|
|
204100
|
-
const ret = wasm.invoke(ptr0, len0);
|
|
204101
|
-
return ret;
|
|
204102
|
-
};
|
|
204103
|
-
exports.init_client = function(config4) {
|
|
204104
|
-
const ptr0 = passStringToWasm0(config4, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
204105
|
-
const len0 = WASM_VECTOR_LEN;
|
|
204106
|
-
const ret = wasm.init_client(ptr0, len0);
|
|
204107
|
-
return ret;
|
|
204108
|
-
};
|
|
204109
|
-
function takeFromExternrefTable0(idx) {
|
|
204110
|
-
const value7 = wasm.__wbindgen_export_2.get(idx);
|
|
204111
|
-
wasm.__externref_table_dealloc(idx);
|
|
204112
|
-
return value7;
|
|
204113
|
-
}
|
|
204114
|
-
exports.release_client = function(client_id) {
|
|
204115
|
-
const ptr0 = passStringToWasm0(client_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
204116
|
-
const len0 = WASM_VECTOR_LEN;
|
|
204117
|
-
const ret = wasm.release_client(ptr0, len0);
|
|
204118
|
-
if (ret[1]) {
|
|
204119
|
-
throw takeFromExternrefTable0(ret[0]);
|
|
204120
|
-
}
|
|
204121
|
-
};
|
|
204122
|
-
exports.invoke_sync = function(parameters) {
|
|
204123
|
-
let deferred3_0;
|
|
204124
|
-
let deferred3_1;
|
|
204125
|
-
try {
|
|
204126
|
-
const ptr0 = passStringToWasm0(parameters, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
204127
|
-
const len0 = WASM_VECTOR_LEN;
|
|
204128
|
-
const ret = wasm.invoke_sync(ptr0, len0);
|
|
204129
|
-
var ptr2 = ret[0];
|
|
204130
|
-
var len2 = ret[1];
|
|
204131
|
-
if (ret[3]) {
|
|
204132
|
-
ptr2 = 0;
|
|
204133
|
-
len2 = 0;
|
|
204134
|
-
throw takeFromExternrefTable0(ret[2]);
|
|
204135
|
-
}
|
|
204136
|
-
deferred3_0 = ptr2;
|
|
204137
|
-
deferred3_1 = len2;
|
|
204138
|
-
return getStringFromWasm0(ptr2, len2);
|
|
204139
|
-
} finally {
|
|
204140
|
-
wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
|
|
204141
|
-
}
|
|
204142
|
-
};
|
|
204143
|
-
function __wbg_adapter_30(arg0, arg1) {
|
|
204144
|
-
wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hb15e53e0e5133441(arg0, arg1);
|
|
204145
|
-
}
|
|
204146
|
-
function __wbg_adapter_33(arg0, arg1, arg2) {
|
|
204147
|
-
wasm.closure2417_externref_shim(arg0, arg1, arg2);
|
|
204148
|
-
}
|
|
204149
|
-
function __wbg_adapter_144(arg0, arg1, arg2, arg3) {
|
|
204150
|
-
wasm.closure2568_externref_shim(arg0, arg1, arg2, arg3);
|
|
204151
|
-
}
|
|
204152
|
-
var __wbindgen_enum_RequestCache = ["default", "no-store", "reload", "no-cache", "force-cache", "only-if-cached"];
|
|
204153
|
-
var __wbindgen_enum_RequestCredentials = ["omit", "same-origin", "include"];
|
|
204154
|
-
var __wbindgen_enum_RequestMode = ["same-origin", "no-cors", "cors", "navigate"];
|
|
204155
|
-
exports.__wbg_abort_410ec47a64ac6117 = function(arg0, arg1) {
|
|
204156
|
-
arg0.abort(arg1);
|
|
204157
|
-
};
|
|
204158
|
-
exports.__wbg_abort_775ef1d17fc65868 = function(arg0) {
|
|
204159
|
-
arg0.abort();
|
|
204160
|
-
};
|
|
204161
|
-
exports.__wbg_append_8c7dd8d641a5f01b = function() {
|
|
204162
|
-
return handleError(function(arg0, arg1, arg2, arg3, arg4) {
|
|
204163
|
-
arg0.append(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
|
|
204164
|
-
}, arguments);
|
|
204165
|
-
};
|
|
204166
|
-
exports.__wbg_arrayBuffer_d1b44c4390db422f = function() {
|
|
204167
|
-
return handleError(function(arg0) {
|
|
204168
|
-
const ret = arg0.arrayBuffer();
|
|
204169
|
-
return ret;
|
|
204170
|
-
}, arguments);
|
|
204171
|
-
};
|
|
204172
|
-
exports.__wbg_buffer_609cc3eee51ed158 = function(arg0) {
|
|
204173
|
-
const ret = arg0.buffer;
|
|
204174
|
-
return ret;
|
|
204175
|
-
};
|
|
204176
|
-
exports.__wbg_call_672a4d21634d4a24 = function() {
|
|
204177
|
-
return handleError(function(arg0, arg1) {
|
|
204178
|
-
const ret = arg0.call(arg1);
|
|
204179
|
-
return ret;
|
|
204180
|
-
}, arguments);
|
|
204181
|
-
};
|
|
204182
|
-
exports.__wbg_call_7cccdd69e0791ae2 = function() {
|
|
204183
|
-
return handleError(function(arg0, arg1, arg2) {
|
|
204184
|
-
const ret = arg0.call(arg1, arg2);
|
|
204185
|
-
return ret;
|
|
204186
|
-
}, arguments);
|
|
204187
|
-
};
|
|
204188
|
-
exports.__wbg_clearTimeout_42d9ccd50822fd3a = function(arg0) {
|
|
204189
|
-
const ret = clearTimeout(arg0);
|
|
204190
|
-
return ret;
|
|
204191
|
-
};
|
|
204192
|
-
exports.__wbg_crypto_86f2631e91b51511 = function(arg0) {
|
|
204193
|
-
const ret = arg0.crypto;
|
|
204194
|
-
return ret;
|
|
204195
|
-
};
|
|
204196
|
-
exports.__wbg_done_769e5ede4b31c67b = function(arg0) {
|
|
204197
|
-
const ret = arg0.done;
|
|
204198
|
-
return ret;
|
|
204199
|
-
};
|
|
204200
|
-
exports.__wbg_fetch_509096533071c657 = function(arg0, arg1) {
|
|
204201
|
-
const ret = arg0.fetch(arg1);
|
|
204202
|
-
return ret;
|
|
204203
|
-
};
|
|
204204
|
-
exports.__wbg_fetch_6bbc32f991730587 = function(arg0) {
|
|
204205
|
-
const ret = fetch(arg0);
|
|
204206
|
-
return ret;
|
|
204207
|
-
};
|
|
204208
|
-
exports.__wbg_getFullYear_17d3c9e4db748eb7 = function(arg0) {
|
|
204209
|
-
const ret = arg0.getFullYear();
|
|
204210
|
-
return ret;
|
|
204211
|
-
};
|
|
204212
|
-
exports.__wbg_getRandomValues_b3f15fcbfabb0f8b = function() {
|
|
204213
|
-
return handleError(function(arg0, arg1) {
|
|
204214
|
-
arg0.getRandomValues(arg1);
|
|
204215
|
-
}, arguments);
|
|
204216
|
-
};
|
|
204217
|
-
exports.__wbg_getTimezoneOffset_6b5752021c499c47 = function(arg0) {
|
|
204218
|
-
const ret = arg0.getTimezoneOffset();
|
|
204219
|
-
return ret;
|
|
204220
|
-
};
|
|
204221
|
-
exports.__wbg_get_67b2ba62fc30de12 = function() {
|
|
204222
|
-
return handleError(function(arg0, arg1) {
|
|
204223
|
-
const ret = Reflect.get(arg0, arg1);
|
|
204224
|
-
return ret;
|
|
204225
|
-
}, arguments);
|
|
204226
|
-
};
|
|
204227
|
-
exports.__wbg_has_a5ea9117f258a0ec = function() {
|
|
204228
|
-
return handleError(function(arg0, arg1) {
|
|
204229
|
-
const ret = Reflect.has(arg0, arg1);
|
|
204230
|
-
return ret;
|
|
204231
|
-
}, arguments);
|
|
204232
|
-
};
|
|
204233
|
-
exports.__wbg_headers_9cb51cfd2ac780a4 = function(arg0) {
|
|
204234
|
-
const ret = arg0.headers;
|
|
204235
|
-
return ret;
|
|
204236
|
-
};
|
|
204237
|
-
exports.__wbg_instanceof_Response_f2cc20d9f7dfd644 = function(arg0) {
|
|
204238
|
-
let result;
|
|
204239
|
-
try {
|
|
204240
|
-
result = arg0 instanceof Response;
|
|
204241
|
-
} catch (_5) {
|
|
204242
|
-
result = false;
|
|
204243
|
-
}
|
|
204244
|
-
const ret = result;
|
|
204245
|
-
return ret;
|
|
204246
|
-
};
|
|
204247
|
-
exports.__wbg_instanceof_Window_def73ea0955fc569 = function(arg0) {
|
|
204248
|
-
let result;
|
|
204249
|
-
try {
|
|
204250
|
-
result = arg0 instanceof Window;
|
|
204251
|
-
} catch (_5) {
|
|
204252
|
-
result = false;
|
|
204253
|
-
}
|
|
204254
|
-
const ret = result;
|
|
204255
|
-
return ret;
|
|
204256
|
-
};
|
|
204257
|
-
exports.__wbg_instanceof_WorkerGlobalScope_dbdbdea7e3b56493 = function(arg0) {
|
|
204258
|
-
let result;
|
|
204259
|
-
try {
|
|
204260
|
-
result = arg0 instanceof WorkerGlobalScope;
|
|
204261
|
-
} catch (_5) {
|
|
204262
|
-
result = false;
|
|
204263
|
-
}
|
|
204264
|
-
const ret = result;
|
|
204265
|
-
return ret;
|
|
204266
|
-
};
|
|
204267
|
-
exports.__wbg_iterator_9a24c88df860dc65 = function() {
|
|
204268
|
-
const ret = Symbol.iterator;
|
|
204269
|
-
return ret;
|
|
204270
|
-
};
|
|
204271
|
-
exports.__wbg_languages_2420955220685766 = function(arg0) {
|
|
204272
|
-
const ret = arg0.languages;
|
|
204273
|
-
return ret;
|
|
204274
|
-
};
|
|
204275
|
-
exports.__wbg_languages_d8dad509faf757df = function(arg0) {
|
|
204276
|
-
const ret = arg0.languages;
|
|
204277
|
-
return ret;
|
|
204278
|
-
};
|
|
204279
|
-
exports.__wbg_length_a446193dc22c12f8 = function(arg0) {
|
|
204280
|
-
const ret = arg0.length;
|
|
204281
|
-
return ret;
|
|
204282
|
-
};
|
|
204283
|
-
exports.__wbg_msCrypto_d562bbe83e0d4b91 = function(arg0) {
|
|
204284
|
-
const ret = arg0.msCrypto;
|
|
204285
|
-
return ret;
|
|
204286
|
-
};
|
|
204287
|
-
exports.__wbg_navigator_0a9bf1120e24fec2 = function(arg0) {
|
|
204288
|
-
const ret = arg0.navigator;
|
|
204289
|
-
return ret;
|
|
204290
|
-
};
|
|
204291
|
-
exports.__wbg_navigator_1577371c070c8947 = function(arg0) {
|
|
204292
|
-
const ret = arg0.navigator;
|
|
204293
|
-
return ret;
|
|
204294
|
-
};
|
|
204295
|
-
exports.__wbg_new0_f788a2397c7ca929 = function() {
|
|
204296
|
-
const ret = new Date;
|
|
204297
|
-
return ret;
|
|
204298
|
-
};
|
|
204299
|
-
exports.__wbg_new_018dcc2d6c8c2f6a = function() {
|
|
204300
|
-
return handleError(function() {
|
|
204301
|
-
const ret = new Headers;
|
|
204302
|
-
return ret;
|
|
204303
|
-
}, arguments);
|
|
204304
|
-
};
|
|
204305
|
-
exports.__wbg_new_23a2665fac83c611 = function(arg0, arg1) {
|
|
204306
|
-
try {
|
|
204307
|
-
var state0 = { a: arg0, b: arg1 };
|
|
204308
|
-
var cb0 = (arg02, arg12) => {
|
|
204309
|
-
const a5 = state0.a;
|
|
204310
|
-
state0.a = 0;
|
|
204311
|
-
try {
|
|
204312
|
-
return __wbg_adapter_144(a5, state0.b, arg02, arg12);
|
|
204313
|
-
} finally {
|
|
204314
|
-
state0.a = a5;
|
|
204315
|
-
}
|
|
204316
|
-
};
|
|
204317
|
-
const ret = new Promise(cb0);
|
|
204318
|
-
return ret;
|
|
204319
|
-
} finally {
|
|
204320
|
-
state0.a = state0.b = 0;
|
|
204321
|
-
}
|
|
204322
|
-
};
|
|
204323
|
-
exports.__wbg_new_31a97dac4f10fab7 = function(arg0) {
|
|
204324
|
-
const ret = new Date(arg0);
|
|
204325
|
-
return ret;
|
|
204326
|
-
};
|
|
204327
|
-
exports.__wbg_new_405e22f390576ce2 = function() {
|
|
204328
|
-
const ret = new Object;
|
|
204329
|
-
return ret;
|
|
204330
|
-
};
|
|
204331
|
-
exports.__wbg_new_a12002a7f91c75be = function(arg0) {
|
|
204332
|
-
const ret = new Uint8Array(arg0);
|
|
204333
|
-
return ret;
|
|
204334
|
-
};
|
|
204335
|
-
exports.__wbg_new_e25e5aab09ff45db = function() {
|
|
204336
|
-
return handleError(function() {
|
|
204337
|
-
const ret = new AbortController;
|
|
204338
|
-
return ret;
|
|
204339
|
-
}, arguments);
|
|
204340
|
-
};
|
|
204341
|
-
exports.__wbg_newnoargs_105ed471475aaf50 = function(arg0, arg1) {
|
|
204342
|
-
const ret = new Function(getStringFromWasm0(arg0, arg1));
|
|
204343
|
-
return ret;
|
|
204344
|
-
};
|
|
204345
|
-
exports.__wbg_newwithbyteoffsetandlength_d97e637ebe145a9a = function(arg0, arg1, arg2) {
|
|
204346
|
-
const ret = new Uint8Array(arg0, arg1 >>> 0, arg2 >>> 0);
|
|
204347
|
-
return ret;
|
|
204348
|
-
};
|
|
204349
|
-
exports.__wbg_newwithlength_a381634e90c276d4 = function(arg0) {
|
|
204350
|
-
const ret = new Uint8Array(arg0 >>> 0);
|
|
204351
|
-
return ret;
|
|
204352
|
-
};
|
|
204353
|
-
exports.__wbg_newwithstrandinit_06c535e0a867c635 = function() {
|
|
204354
|
-
return handleError(function(arg0, arg1, arg2) {
|
|
204355
|
-
const ret = new Request(getStringFromWasm0(arg0, arg1), arg2);
|
|
204356
|
-
return ret;
|
|
204357
|
-
}, arguments);
|
|
204358
|
-
};
|
|
204359
|
-
exports.__wbg_next_25feadfc0913fea9 = function(arg0) {
|
|
204360
|
-
const ret = arg0.next;
|
|
204361
|
-
return ret;
|
|
204362
|
-
};
|
|
204363
|
-
exports.__wbg_next_6574e1a8a62d1055 = function() {
|
|
204364
|
-
return handleError(function(arg0) {
|
|
204365
|
-
const ret = arg0.next();
|
|
204366
|
-
return ret;
|
|
204367
|
-
}, arguments);
|
|
204368
|
-
};
|
|
204369
|
-
exports.__wbg_node_e1f24f89a7336c2e = function(arg0) {
|
|
204370
|
-
const ret = arg0.node;
|
|
204371
|
-
return ret;
|
|
204372
|
-
};
|
|
204373
|
-
exports.__wbg_now_807e54c39636c349 = function() {
|
|
204374
|
-
const ret = Date.now();
|
|
204375
|
-
return ret;
|
|
204376
|
-
};
|
|
204377
|
-
exports.__wbg_now_d18023d54d4e5500 = function(arg0) {
|
|
204378
|
-
const ret = arg0.now();
|
|
204379
|
-
return ret;
|
|
204380
|
-
};
|
|
204381
|
-
exports.__wbg_parse_def2e24ef1252aff = function() {
|
|
204382
|
-
return handleError(function(arg0, arg1) {
|
|
204383
|
-
const ret = JSON.parse(getStringFromWasm0(arg0, arg1));
|
|
204384
|
-
return ret;
|
|
204385
|
-
}, arguments);
|
|
204386
|
-
};
|
|
204387
|
-
exports.__wbg_process_3975fd6c72f520aa = function(arg0) {
|
|
204388
|
-
const ret = arg0.process;
|
|
204389
|
-
return ret;
|
|
204390
|
-
};
|
|
204391
|
-
exports.__wbg_queueMicrotask_97d92b4fcc8a61c5 = function(arg0) {
|
|
204392
|
-
queueMicrotask(arg0);
|
|
204393
|
-
};
|
|
204394
|
-
exports.__wbg_queueMicrotask_d3219def82552485 = function(arg0) {
|
|
204395
|
-
const ret = arg0.queueMicrotask;
|
|
204396
|
-
return ret;
|
|
204397
|
-
};
|
|
204398
|
-
exports.__wbg_randomFillSync_f8c153b79f285817 = function() {
|
|
204399
|
-
return handleError(function(arg0, arg1) {
|
|
204400
|
-
arg0.randomFillSync(arg1);
|
|
204401
|
-
}, arguments);
|
|
204402
|
-
};
|
|
204403
|
-
exports.__wbg_require_b74f47fc2d022fd6 = function() {
|
|
204404
|
-
return handleError(function() {
|
|
204405
|
-
const ret = module.require;
|
|
204406
|
-
return ret;
|
|
204407
|
-
}, arguments);
|
|
204408
|
-
};
|
|
204409
|
-
exports.__wbg_resolve_4851785c9c5f573d = function(arg0) {
|
|
204410
|
-
const ret = Promise.resolve(arg0);
|
|
204411
|
-
return ret;
|
|
204412
|
-
};
|
|
204413
|
-
exports.__wbg_self_b29ea9f89ecb0567 = function() {
|
|
204414
|
-
return handleError(function() {
|
|
204415
|
-
const ret = self.self;
|
|
204416
|
-
return ret;
|
|
204417
|
-
}, arguments);
|
|
204418
|
-
};
|
|
204419
|
-
exports.__wbg_setTimeout_4ec014681668a581 = function(arg0, arg1) {
|
|
204420
|
-
const ret = setTimeout(arg0, arg1);
|
|
204421
|
-
return ret;
|
|
204422
|
-
};
|
|
204423
|
-
exports.__wbg_set_65595bdd868b3009 = function(arg0, arg1, arg2) {
|
|
204424
|
-
arg0.set(arg1, arg2 >>> 0);
|
|
204425
|
-
};
|
|
204426
|
-
exports.__wbg_setbody_5923b78a95eedf29 = function(arg0, arg1) {
|
|
204427
|
-
arg0.body = arg1;
|
|
204428
|
-
};
|
|
204429
|
-
exports.__wbg_setcache_12f17c3a980650e4 = function(arg0, arg1) {
|
|
204430
|
-
arg0.cache = __wbindgen_enum_RequestCache[arg1];
|
|
204431
|
-
};
|
|
204432
|
-
exports.__wbg_setcredentials_c3a22f1cd105a2c6 = function(arg0, arg1) {
|
|
204433
|
-
arg0.credentials = __wbindgen_enum_RequestCredentials[arg1];
|
|
204434
|
-
};
|
|
204435
|
-
exports.__wbg_setheaders_834c0bdb6a8949ad = function(arg0, arg1) {
|
|
204436
|
-
arg0.headers = arg1;
|
|
204437
|
-
};
|
|
204438
|
-
exports.__wbg_setmethod_3c5280fe5d890842 = function(arg0, arg1, arg2) {
|
|
204439
|
-
arg0.method = getStringFromWasm0(arg1, arg2);
|
|
204440
|
-
};
|
|
204441
|
-
exports.__wbg_setmode_5dc300b865044b65 = function(arg0, arg1) {
|
|
204442
|
-
arg0.mode = __wbindgen_enum_RequestMode[arg1];
|
|
204443
|
-
};
|
|
204444
|
-
exports.__wbg_setsignal_75b21ef3a81de905 = function(arg0, arg1) {
|
|
204445
|
-
arg0.signal = arg1;
|
|
204446
|
-
};
|
|
204447
|
-
exports.__wbg_signal_aaf9ad74119f20a4 = function(arg0) {
|
|
204448
|
-
const ret = arg0.signal;
|
|
204449
|
-
return ret;
|
|
204450
|
-
};
|
|
204451
|
-
exports.__wbg_static_accessor_GLOBAL_88a902d13a557d07 = function() {
|
|
204452
|
-
const ret = typeof global === "undefined" ? null : global;
|
|
204453
|
-
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
204454
|
-
};
|
|
204455
|
-
exports.__wbg_static_accessor_GLOBAL_THIS_56578be7e9f832b0 = function() {
|
|
204456
|
-
const ret = typeof globalThis === "undefined" ? null : globalThis;
|
|
204457
|
-
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
204458
|
-
};
|
|
204459
|
-
exports.__wbg_static_accessor_SELF_37c5d418e4bf5819 = function() {
|
|
204460
|
-
const ret = typeof self === "undefined" ? null : self;
|
|
204461
|
-
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
204462
|
-
};
|
|
204463
|
-
exports.__wbg_static_accessor_WINDOW_5de37043a91a9c40 = function() {
|
|
204464
|
-
const ret = typeof window === "undefined" ? null : window;
|
|
204465
|
-
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
204466
|
-
};
|
|
204467
|
-
exports.__wbg_static_accessor_performance_da77b3a901a72934 = function() {
|
|
204468
|
-
const ret = performance;
|
|
204469
|
-
return ret;
|
|
204470
|
-
};
|
|
204471
|
-
exports.__wbg_status_f6360336ca686bf0 = function(arg0) {
|
|
204472
|
-
const ret = arg0.status;
|
|
204473
|
-
return ret;
|
|
204474
|
-
};
|
|
204475
|
-
exports.__wbg_stringify_f7ed6987935b4a24 = function() {
|
|
204476
|
-
return handleError(function(arg0) {
|
|
204477
|
-
const ret = JSON.stringify(arg0);
|
|
204478
|
-
return ret;
|
|
204479
|
-
}, arguments);
|
|
204480
|
-
};
|
|
204481
|
-
exports.__wbg_subarray_aa9065fa9dc5df96 = function(arg0, arg1, arg2) {
|
|
204482
|
-
const ret = arg0.subarray(arg1 >>> 0, arg2 >>> 0);
|
|
204483
|
-
return ret;
|
|
204484
|
-
};
|
|
204485
|
-
exports.__wbg_then_44b73946d2fb3e7d = function(arg0, arg1) {
|
|
204486
|
-
const ret = arg0.then(arg1);
|
|
204487
|
-
return ret;
|
|
204488
|
-
};
|
|
204489
|
-
exports.__wbg_then_48b406749878a531 = function(arg0, arg1, arg2) {
|
|
204490
|
-
const ret = arg0.then(arg1, arg2);
|
|
204491
|
-
return ret;
|
|
204492
|
-
};
|
|
204493
|
-
exports.__wbg_toLocaleDateString_e5424994746e8415 = function(arg0, arg1, arg2, arg3) {
|
|
204494
|
-
const ret = arg0.toLocaleDateString(getStringFromWasm0(arg1, arg2), arg3);
|
|
204495
|
-
return ret;
|
|
204496
|
-
};
|
|
204497
|
-
exports.__wbg_url_ae10c34ca209681d = function(arg0, arg1) {
|
|
204498
|
-
const ret = arg1.url;
|
|
204499
|
-
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
204500
|
-
const len1 = WASM_VECTOR_LEN;
|
|
204501
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
204502
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
204503
|
-
};
|
|
204504
|
-
exports.__wbg_value_cd1ffa7b1ab794f1 = function(arg0) {
|
|
204505
|
-
const ret = arg0.value;
|
|
204506
|
-
return ret;
|
|
204507
|
-
};
|
|
204508
|
-
exports.__wbg_values_99f7a68c7f313d66 = function(arg0) {
|
|
204509
|
-
const ret = arg0.values();
|
|
204510
|
-
return ret;
|
|
204511
|
-
};
|
|
204512
|
-
exports.__wbg_versions_4e31226f5e8dc909 = function(arg0) {
|
|
204513
|
-
const ret = arg0.versions;
|
|
204514
|
-
return ret;
|
|
204515
|
-
};
|
|
204516
|
-
exports.__wbg_window_aa5515e600e96252 = function() {
|
|
204517
|
-
return handleError(function() {
|
|
204518
|
-
const ret = window.window;
|
|
204519
|
-
return ret;
|
|
204520
|
-
}, arguments);
|
|
204521
|
-
};
|
|
204522
|
-
exports.__wbindgen_cb_drop = function(arg0) {
|
|
204523
|
-
const obj = arg0.original;
|
|
204524
|
-
if (obj.cnt-- == 1) {
|
|
204525
|
-
obj.a = 0;
|
|
204526
|
-
return true;
|
|
204527
|
-
}
|
|
204528
|
-
const ret = false;
|
|
204529
|
-
return ret;
|
|
204530
|
-
};
|
|
204531
|
-
exports.__wbindgen_closure_wrapper8973 = function(arg0, arg1, arg2) {
|
|
204532
|
-
const ret = makeMutClosure(arg0, arg1, 2401, __wbg_adapter_30);
|
|
204533
|
-
return ret;
|
|
204534
|
-
};
|
|
204535
|
-
exports.__wbindgen_closure_wrapper9014 = function(arg0, arg1, arg2) {
|
|
204536
|
-
const ret = makeMutClosure(arg0, arg1, 2418, __wbg_adapter_33);
|
|
204537
|
-
return ret;
|
|
204538
|
-
};
|
|
204539
|
-
exports.__wbindgen_debug_string = function(arg0, arg1) {
|
|
204540
|
-
const ret = debugString(arg1);
|
|
204541
|
-
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
204542
|
-
const len1 = WASM_VECTOR_LEN;
|
|
204543
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
204544
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
204545
|
-
};
|
|
204546
|
-
exports.__wbindgen_init_externref_table = function() {
|
|
204547
|
-
const table2 = wasm.__wbindgen_export_2;
|
|
204548
|
-
const offset = table2.grow(4);
|
|
204549
|
-
table2.set(0, undefined);
|
|
204550
|
-
table2.set(offset + 0, undefined);
|
|
204551
|
-
table2.set(offset + 1, null);
|
|
204552
|
-
table2.set(offset + 2, true);
|
|
204553
|
-
table2.set(offset + 3, false);
|
|
204554
|
-
};
|
|
204555
|
-
exports.__wbindgen_is_function = function(arg0) {
|
|
204556
|
-
const ret = typeof arg0 === "function";
|
|
204557
|
-
return ret;
|
|
204558
|
-
};
|
|
204559
|
-
exports.__wbindgen_is_object = function(arg0) {
|
|
204560
|
-
const val = arg0;
|
|
204561
|
-
const ret = typeof val === "object" && val !== null;
|
|
204562
|
-
return ret;
|
|
204563
|
-
};
|
|
204564
|
-
exports.__wbindgen_is_string = function(arg0) {
|
|
204565
|
-
const ret = typeof arg0 === "string";
|
|
204566
|
-
return ret;
|
|
204567
|
-
};
|
|
204568
|
-
exports.__wbindgen_is_undefined = function(arg0) {
|
|
204569
|
-
const ret = arg0 === undefined;
|
|
204570
|
-
return ret;
|
|
204571
|
-
};
|
|
204572
|
-
exports.__wbindgen_memory = function() {
|
|
204573
|
-
const ret = wasm.memory;
|
|
204574
|
-
return ret;
|
|
204575
|
-
};
|
|
204576
|
-
exports.__wbindgen_number_new = function(arg0) {
|
|
204577
|
-
const ret = arg0;
|
|
204578
|
-
return ret;
|
|
204579
|
-
};
|
|
204580
|
-
exports.__wbindgen_string_get = function(arg0, arg1) {
|
|
204581
|
-
const obj = arg1;
|
|
204582
|
-
const ret = typeof obj === "string" ? obj : undefined;
|
|
204583
|
-
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
204584
|
-
var len1 = WASM_VECTOR_LEN;
|
|
204585
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
204586
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
204587
|
-
};
|
|
204588
|
-
exports.__wbindgen_string_new = function(arg0, arg1) {
|
|
204589
|
-
const ret = getStringFromWasm0(arg0, arg1);
|
|
204590
|
-
return ret;
|
|
204591
|
-
};
|
|
204592
|
-
exports.__wbindgen_throw = function(arg0, arg1) {
|
|
204593
|
-
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
204594
|
-
};
|
|
204595
|
-
var path4 = __require("path").join(__dirname, "core_bg.wasm");
|
|
204596
|
-
var bytes = __require("fs").readFileSync(path4);
|
|
204597
|
-
var wasmModule = new WebAssembly.Module(bytes);
|
|
204598
|
-
var wasmInstance = new WebAssembly.Instance(wasmModule, imports);
|
|
204599
|
-
wasm = wasmInstance.exports;
|
|
204600
|
-
exports.__wasm = wasm;
|
|
204601
|
-
wasm.__wbindgen_start();
|
|
204602
|
-
});
|
|
204603
|
-
|
|
204604
|
-
// node_modules/@1password/sdk/dist/types.js
|
|
204605
|
-
var require_types2 = __commonJS((exports) => {
|
|
204606
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
204607
|
-
exports.ReplacerFunc = exports.ReviverFunc = exports.UPDATE_ITEM_HISTORY = exports.UPDATE_ITEMS = exports.SEND_ITEMS = exports.REVEAL_ITEM_PASSWORD = exports.RECOVER_VAULT = exports.READ_ITEMS = exports.PRINT_ITEMS = exports.NO_ACCESS = exports.MANAGE_VAULT = exports.IMPORT_ITEMS = exports.EXPORT_ITEMS = exports.DELETE_ITEMS = exports.CREATE_ITEMS = exports.ARCHIVE_ITEMS = exports.WordListType = exports.SeparatorType = exports.VaultType = exports.AllowedRecipientType = exports.AllowedType = exports.ItemShareDuration = exports.ItemState = exports.AutofillBehavior = exports.ItemFieldType = exports.ItemCategory = exports.VaultAccessorType = exports.GroupState = exports.GroupType = undefined;
|
|
204608
|
-
var GroupType;
|
|
204609
|
-
(function(GroupType2) {
|
|
204610
|
-
GroupType2["Owners"] = "owners";
|
|
204611
|
-
GroupType2["Administrators"] = "administrators";
|
|
204612
|
-
GroupType2["Recovery"] = "recovery";
|
|
204613
|
-
GroupType2["ExternalAccountManagers"] = "externalAccountManagers";
|
|
204614
|
-
GroupType2["TeamMembers"] = "teamMembers";
|
|
204615
|
-
GroupType2["UserDefined"] = "userDefined";
|
|
204616
|
-
GroupType2["Unsupported"] = "unsupported";
|
|
204617
|
-
})(GroupType || (exports.GroupType = GroupType = {}));
|
|
204618
|
-
var GroupState;
|
|
204619
|
-
(function(GroupState2) {
|
|
204620
|
-
GroupState2["Active"] = "active";
|
|
204621
|
-
GroupState2["Deleted"] = "deleted";
|
|
204622
|
-
GroupState2["Unsupported"] = "unsupported";
|
|
204623
|
-
})(GroupState || (exports.GroupState = GroupState = {}));
|
|
204624
|
-
var VaultAccessorType;
|
|
204625
|
-
(function(VaultAccessorType2) {
|
|
204626
|
-
VaultAccessorType2["User"] = "user";
|
|
204627
|
-
VaultAccessorType2["Group"] = "group";
|
|
204628
|
-
})(VaultAccessorType || (exports.VaultAccessorType = VaultAccessorType = {}));
|
|
204629
|
-
var ItemCategory;
|
|
204630
|
-
(function(ItemCategory2) {
|
|
204631
|
-
ItemCategory2["Login"] = "Login";
|
|
204632
|
-
ItemCategory2["SecureNote"] = "SecureNote";
|
|
204633
|
-
ItemCategory2["CreditCard"] = "CreditCard";
|
|
204634
|
-
ItemCategory2["CryptoWallet"] = "CryptoWallet";
|
|
204635
|
-
ItemCategory2["Identity"] = "Identity";
|
|
204636
|
-
ItemCategory2["Password"] = "Password";
|
|
204637
|
-
ItemCategory2["Document"] = "Document";
|
|
204638
|
-
ItemCategory2["ApiCredentials"] = "ApiCredentials";
|
|
204639
|
-
ItemCategory2["BankAccount"] = "BankAccount";
|
|
204640
|
-
ItemCategory2["Database"] = "Database";
|
|
204641
|
-
ItemCategory2["DriverLicense"] = "DriverLicense";
|
|
204642
|
-
ItemCategory2["Email"] = "Email";
|
|
204643
|
-
ItemCategory2["MedicalRecord"] = "MedicalRecord";
|
|
204644
|
-
ItemCategory2["Membership"] = "Membership";
|
|
204645
|
-
ItemCategory2["OutdoorLicense"] = "OutdoorLicense";
|
|
204646
|
-
ItemCategory2["Passport"] = "Passport";
|
|
204647
|
-
ItemCategory2["Rewards"] = "Rewards";
|
|
204648
|
-
ItemCategory2["Router"] = "Router";
|
|
204649
|
-
ItemCategory2["Server"] = "Server";
|
|
204650
|
-
ItemCategory2["SshKey"] = "SshKey";
|
|
204651
|
-
ItemCategory2["SocialSecurityNumber"] = "SocialSecurityNumber";
|
|
204652
|
-
ItemCategory2["SoftwareLicense"] = "SoftwareLicense";
|
|
204653
|
-
ItemCategory2["Person"] = "Person";
|
|
204654
|
-
ItemCategory2["Unsupported"] = "Unsupported";
|
|
204655
|
-
})(ItemCategory || (exports.ItemCategory = ItemCategory = {}));
|
|
204656
|
-
var ItemFieldType;
|
|
204657
|
-
(function(ItemFieldType2) {
|
|
204658
|
-
ItemFieldType2["Text"] = "Text";
|
|
204659
|
-
ItemFieldType2["Concealed"] = "Concealed";
|
|
204660
|
-
ItemFieldType2["CreditCardType"] = "CreditCardType";
|
|
204661
|
-
ItemFieldType2["CreditCardNumber"] = "CreditCardNumber";
|
|
204662
|
-
ItemFieldType2["Phone"] = "Phone";
|
|
204663
|
-
ItemFieldType2["Url"] = "Url";
|
|
204664
|
-
ItemFieldType2["Totp"] = "Totp";
|
|
204665
|
-
ItemFieldType2["Email"] = "Email";
|
|
204666
|
-
ItemFieldType2["Reference"] = "Reference";
|
|
204667
|
-
ItemFieldType2["SshKey"] = "SshKey";
|
|
204668
|
-
ItemFieldType2["Menu"] = "Menu";
|
|
204669
|
-
ItemFieldType2["MonthYear"] = "MonthYear";
|
|
204670
|
-
ItemFieldType2["Address"] = "Address";
|
|
204671
|
-
ItemFieldType2["Date"] = "Date";
|
|
204672
|
-
ItemFieldType2["Unsupported"] = "Unsupported";
|
|
204673
|
-
})(ItemFieldType || (exports.ItemFieldType = ItemFieldType = {}));
|
|
204674
|
-
var AutofillBehavior;
|
|
204675
|
-
(function(AutofillBehavior2) {
|
|
204676
|
-
AutofillBehavior2["AnywhereOnWebsite"] = "AnywhereOnWebsite";
|
|
204677
|
-
AutofillBehavior2["ExactDomain"] = "ExactDomain";
|
|
204678
|
-
AutofillBehavior2["Never"] = "Never";
|
|
204679
|
-
})(AutofillBehavior || (exports.AutofillBehavior = AutofillBehavior = {}));
|
|
204680
|
-
var ItemState;
|
|
204681
|
-
(function(ItemState2) {
|
|
204682
|
-
ItemState2["Active"] = "active";
|
|
204683
|
-
ItemState2["Archived"] = "archived";
|
|
204684
|
-
})(ItemState || (exports.ItemState = ItemState = {}));
|
|
204685
|
-
var ItemShareDuration;
|
|
204686
|
-
(function(ItemShareDuration2) {
|
|
204687
|
-
ItemShareDuration2["OneHour"] = "OneHour";
|
|
204688
|
-
ItemShareDuration2["OneDay"] = "OneDay";
|
|
204689
|
-
ItemShareDuration2["SevenDays"] = "SevenDays";
|
|
204690
|
-
ItemShareDuration2["FourteenDays"] = "FourteenDays";
|
|
204691
|
-
ItemShareDuration2["ThirtyDays"] = "ThirtyDays";
|
|
204692
|
-
})(ItemShareDuration || (exports.ItemShareDuration = ItemShareDuration = {}));
|
|
204693
|
-
var AllowedType;
|
|
204694
|
-
(function(AllowedType2) {
|
|
204695
|
-
AllowedType2["Authenticated"] = "Authenticated";
|
|
204696
|
-
AllowedType2["Public"] = "Public";
|
|
204697
|
-
})(AllowedType || (exports.AllowedType = AllowedType = {}));
|
|
204698
|
-
var AllowedRecipientType;
|
|
204699
|
-
(function(AllowedRecipientType2) {
|
|
204700
|
-
AllowedRecipientType2["Email"] = "Email";
|
|
204701
|
-
AllowedRecipientType2["Domain"] = "Domain";
|
|
204702
|
-
})(AllowedRecipientType || (exports.AllowedRecipientType = AllowedRecipientType = {}));
|
|
204703
|
-
var VaultType;
|
|
204704
|
-
(function(VaultType2) {
|
|
204705
|
-
VaultType2["Personal"] = "personal";
|
|
204706
|
-
VaultType2["Everyone"] = "everyone";
|
|
204707
|
-
VaultType2["Transfer"] = "transfer";
|
|
204708
|
-
VaultType2["UserCreated"] = "userCreated";
|
|
204709
|
-
VaultType2["Unsupported"] = "unsupported";
|
|
204710
|
-
})(VaultType || (exports.VaultType = VaultType = {}));
|
|
204711
|
-
var SeparatorType;
|
|
204712
|
-
(function(SeparatorType2) {
|
|
204713
|
-
SeparatorType2["Digits"] = "digits";
|
|
204714
|
-
SeparatorType2["DigitsAndSymbols"] = "digitsAndSymbols";
|
|
204715
|
-
SeparatorType2["Spaces"] = "spaces";
|
|
204716
|
-
SeparatorType2["Hyphens"] = "hyphens";
|
|
204717
|
-
SeparatorType2["Underscores"] = "underscores";
|
|
204718
|
-
SeparatorType2["Periods"] = "periods";
|
|
204719
|
-
SeparatorType2["Commas"] = "commas";
|
|
204720
|
-
})(SeparatorType || (exports.SeparatorType = SeparatorType = {}));
|
|
204721
|
-
var WordListType;
|
|
204722
|
-
(function(WordListType2) {
|
|
204723
|
-
WordListType2["FullWords"] = "fullWords";
|
|
204724
|
-
WordListType2["Syllables"] = "syllables";
|
|
204725
|
-
WordListType2["ThreeLetters"] = "threeLetters";
|
|
204726
|
-
})(WordListType || (exports.WordListType = WordListType = {}));
|
|
204727
|
-
exports.ARCHIVE_ITEMS = 256;
|
|
204728
|
-
exports.CREATE_ITEMS = 128;
|
|
204729
|
-
exports.DELETE_ITEMS = 512;
|
|
204730
|
-
exports.EXPORT_ITEMS = 4194304;
|
|
204731
|
-
exports.IMPORT_ITEMS = 2097152;
|
|
204732
|
-
exports.MANAGE_VAULT = 2;
|
|
204733
|
-
exports.NO_ACCESS = 0;
|
|
204734
|
-
exports.PRINT_ITEMS = 8388608;
|
|
204735
|
-
exports.READ_ITEMS = 32;
|
|
204736
|
-
exports.RECOVER_VAULT = 1;
|
|
204737
|
-
exports.REVEAL_ITEM_PASSWORD = 16;
|
|
204738
|
-
exports.SEND_ITEMS = 1048576;
|
|
204739
|
-
exports.UPDATE_ITEMS = 64;
|
|
204740
|
-
exports.UPDATE_ITEM_HISTORY = 1024;
|
|
204741
|
-
var ReviverFunc = (key, value7) => {
|
|
204742
|
-
if (typeof value7 === "string" && /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d+)?Z$/.test(value7) && (key === "createdAt" || key === "updatedAt")) {
|
|
204743
|
-
return new Date(value7);
|
|
204744
|
-
}
|
|
204745
|
-
if (Array.isArray(value7) && value7.every((v5) => Number.isInteger(v5) && v5 >= 0 && v5 <= 255) && value7.length > 0) {
|
|
204746
|
-
return new Uint8Array(value7);
|
|
204747
|
-
}
|
|
204748
|
-
return value7;
|
|
204749
|
-
};
|
|
204750
|
-
exports.ReviverFunc = ReviverFunc;
|
|
204751
|
-
var ReplacerFunc = (key, value7) => {
|
|
204752
|
-
if (value7 instanceof Date) {
|
|
204753
|
-
return value7.toISOString();
|
|
204754
|
-
}
|
|
204755
|
-
if (value7 instanceof Uint8Array) {
|
|
204756
|
-
return Array.from(value7);
|
|
204757
|
-
}
|
|
204758
|
-
return value7;
|
|
204759
|
-
};
|
|
204760
|
-
exports.ReplacerFunc = ReplacerFunc;
|
|
204761
|
-
});
|
|
204762
|
-
|
|
204763
|
-
// node_modules/@1password/sdk/dist/errors.js
|
|
204764
|
-
var require_errors3 = __commonJS((exports) => {
|
|
204765
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
204766
|
-
exports.throwError = exports.RateLimitExceededError = exports.DesktopSessionExpiredError = undefined;
|
|
204767
|
-
|
|
204768
|
-
class DesktopSessionExpiredError extends Error {
|
|
204769
|
-
constructor(message) {
|
|
204770
|
-
super();
|
|
204771
|
-
this.message = message;
|
|
204772
|
-
}
|
|
204773
|
-
}
|
|
204774
|
-
exports.DesktopSessionExpiredError = DesktopSessionExpiredError;
|
|
204775
|
-
|
|
204776
|
-
class RateLimitExceededError extends Error {
|
|
204777
|
-
constructor(message) {
|
|
204778
|
-
super();
|
|
204779
|
-
this.message = message;
|
|
204780
|
-
}
|
|
204781
|
-
}
|
|
204782
|
-
exports.RateLimitExceededError = RateLimitExceededError;
|
|
204783
|
-
var throwError = (errString) => {
|
|
204784
|
-
let err;
|
|
204785
|
-
try {
|
|
204786
|
-
err = JSON.parse(errString);
|
|
204787
|
-
} catch (e) {
|
|
204788
|
-
throw new Error(errString);
|
|
204789
|
-
}
|
|
204790
|
-
switch (err.name) {
|
|
204791
|
-
case "DesktopSessionExpired":
|
|
204792
|
-
throw new DesktopSessionExpiredError(err.message);
|
|
204793
|
-
case "RateLimitExceeded":
|
|
204794
|
-
throw new RateLimitExceededError(err.message);
|
|
204795
|
-
default:
|
|
204796
|
-
throw new Error(err.message);
|
|
204797
|
-
}
|
|
204798
|
-
};
|
|
204799
|
-
exports.throwError = throwError;
|
|
204800
|
-
});
|
|
204801
|
-
|
|
204802
|
-
// node_modules/@1password/sdk/dist/core.js
|
|
204803
|
-
var require_core5 = __commonJS((exports) => {
|
|
204804
|
-
var __awaiter = exports && exports.__awaiter || function(thisArg, _arguments, P5, generator) {
|
|
204805
|
-
function adopt(value7) {
|
|
204806
|
-
return value7 instanceof P5 ? value7 : new P5(function(resolve5) {
|
|
204807
|
-
resolve5(value7);
|
|
204808
|
-
});
|
|
204809
|
-
}
|
|
204810
|
-
return new (P5 || (P5 = Promise))(function(resolve5, reject) {
|
|
204811
|
-
function fulfilled(value7) {
|
|
204812
|
-
try {
|
|
204813
|
-
step3(generator.next(value7));
|
|
204814
|
-
} catch (e) {
|
|
204815
|
-
reject(e);
|
|
204816
|
-
}
|
|
204817
|
-
}
|
|
204818
|
-
function rejected(value7) {
|
|
204819
|
-
try {
|
|
204820
|
-
step3(generator["throw"](value7));
|
|
204821
|
-
} catch (e) {
|
|
204822
|
-
reject(e);
|
|
204823
|
-
}
|
|
204824
|
-
}
|
|
204825
|
-
function step3(result) {
|
|
204826
|
-
result.done ? resolve5(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
204827
|
-
}
|
|
204828
|
-
step3((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
204829
|
-
});
|
|
204830
|
-
};
|
|
204831
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
204832
|
-
exports.InnerClient = exports.SharedCore = exports.WasmCore = undefined;
|
|
204833
|
-
var sdk_core_1 = require_core4();
|
|
204834
|
-
var types_1 = require_types2();
|
|
204835
|
-
var errors_1 = require_errors3();
|
|
204836
|
-
var messageLimit = 50 * 1024 * 1024;
|
|
204837
|
-
|
|
204838
|
-
class WasmCore {
|
|
204839
|
-
initClient(config4) {
|
|
204840
|
-
return __awaiter(this, undefined, undefined, function* () {
|
|
204841
|
-
try {
|
|
204842
|
-
return yield (0, sdk_core_1.init_client)(config4);
|
|
204843
|
-
} catch (e) {
|
|
204844
|
-
(0, errors_1.throwError)(e);
|
|
204845
|
-
}
|
|
204846
|
-
});
|
|
204847
|
-
}
|
|
204848
|
-
invoke(config4) {
|
|
204849
|
-
return __awaiter(this, undefined, undefined, function* () {
|
|
204850
|
-
try {
|
|
204851
|
-
return yield (0, sdk_core_1.invoke)(config4);
|
|
204852
|
-
} catch (e) {
|
|
204853
|
-
(0, errors_1.throwError)(e);
|
|
204854
|
-
}
|
|
204855
|
-
});
|
|
204856
|
-
}
|
|
204857
|
-
releaseClient(clientId) {
|
|
204858
|
-
try {
|
|
204859
|
-
(0, sdk_core_1.release_client)(clientId);
|
|
204860
|
-
} catch (e) {
|
|
204861
|
-
console.warn("failed to release client:", e);
|
|
204862
|
-
}
|
|
204863
|
-
}
|
|
204864
|
-
}
|
|
204865
|
-
exports.WasmCore = WasmCore;
|
|
204866
|
-
|
|
204867
|
-
class SharedCore {
|
|
204868
|
-
constructor() {
|
|
204869
|
-
this.inner = new WasmCore;
|
|
204870
|
-
}
|
|
204871
|
-
setInner(core2) {
|
|
204872
|
-
this.inner = core2;
|
|
204873
|
-
}
|
|
204874
|
-
initClient(config4) {
|
|
204875
|
-
return __awaiter(this, undefined, undefined, function* () {
|
|
204876
|
-
const serializedConfig = JSON.stringify(config4);
|
|
204877
|
-
return this.inner.initClient(serializedConfig);
|
|
204878
|
-
});
|
|
204879
|
-
}
|
|
204880
|
-
invoke(config4) {
|
|
204881
|
-
return __awaiter(this, undefined, undefined, function* () {
|
|
204882
|
-
const serializedConfig = JSON.stringify(config4, types_1.ReplacerFunc);
|
|
204883
|
-
if (new TextEncoder().encode(serializedConfig).length > messageLimit) {
|
|
204884
|
-
(0, errors_1.throwError)(`message size exceeds the limit of ${messageLimit} bytes, please contact 1Password at support@1password.com or https://developer.1password.com/joinslack if you need help."`);
|
|
204885
|
-
}
|
|
204886
|
-
return this.inner.invoke(serializedConfig);
|
|
204887
|
-
});
|
|
204888
|
-
}
|
|
204889
|
-
invoke_sync(config4) {
|
|
204890
|
-
const serializedConfig = JSON.stringify(config4, types_1.ReplacerFunc);
|
|
204891
|
-
if (new TextEncoder().encode(serializedConfig).length > messageLimit) {
|
|
204892
|
-
(0, errors_1.throwError)(`message size exceeds the limit of ${messageLimit} bytes, please contact 1Password at support@1password.com or https://developer.1password.com/joinslack if you need help.`);
|
|
204893
|
-
}
|
|
204894
|
-
return (0, sdk_core_1.invoke_sync)(serializedConfig);
|
|
204895
|
-
}
|
|
204896
|
-
releaseClient(clientId) {
|
|
204897
|
-
const serializedId = JSON.stringify(clientId);
|
|
204898
|
-
this.inner.releaseClient(serializedId);
|
|
204899
|
-
}
|
|
204900
|
-
}
|
|
204901
|
-
exports.SharedCore = SharedCore;
|
|
204902
|
-
|
|
204903
|
-
class InnerClient {
|
|
204904
|
-
constructor(id3, core2, config4) {
|
|
204905
|
-
this.id = id3;
|
|
204906
|
-
this.core = core2;
|
|
204907
|
-
this.config = config4;
|
|
204908
|
-
}
|
|
204909
|
-
invoke(config4) {
|
|
204910
|
-
return __awaiter(this, undefined, undefined, function* () {
|
|
204911
|
-
try {
|
|
204912
|
-
return yield this.core.invoke(config4);
|
|
204913
|
-
} catch (err) {
|
|
204914
|
-
if (err instanceof errors_1.DesktopSessionExpiredError) {
|
|
204915
|
-
const newId = yield this.core.initClient(this.config);
|
|
204916
|
-
this.id = parseInt(newId, 10);
|
|
204917
|
-
config4.invocation.clientId = this.id;
|
|
204918
|
-
return yield this.core.invoke(config4);
|
|
204919
|
-
}
|
|
204920
|
-
throw err;
|
|
204921
|
-
}
|
|
204922
|
-
});
|
|
204923
|
-
}
|
|
204924
|
-
}
|
|
204925
|
-
exports.InnerClient = InnerClient;
|
|
204926
|
-
});
|
|
204927
|
-
|
|
204928
|
-
// node_modules/@1password/sdk/dist/version.js
|
|
204929
|
-
var require_version2 = __commonJS((exports) => {
|
|
204930
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
204931
|
-
exports.SDK_BUILD_NUMBER = exports.SDK_VERSION = undefined;
|
|
204932
|
-
exports.SDK_VERSION = "0.4.1-beta.1";
|
|
204933
|
-
exports.SDK_BUILD_NUMBER = "0040101";
|
|
204934
|
-
});
|
|
204935
|
-
|
|
204936
|
-
// node_modules/@1password/sdk/dist/configuration.js
|
|
204937
|
-
var require_configuration = __commonJS((exports) => {
|
|
204938
|
-
var __importDefault = exports && exports.__importDefault || function(mod2) {
|
|
204939
|
-
return mod2 && mod2.__esModule ? mod2 : { default: mod2 };
|
|
204940
|
-
};
|
|
204941
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
204942
|
-
exports.getOsName = exports.clientAuthConfig = exports.DesktopAuth = exports.VERSION = exports.LANGUAGE = undefined;
|
|
204943
|
-
var os_1 = __importDefault(__require("os"));
|
|
204944
|
-
var version_js_1 = require_version2();
|
|
204945
|
-
exports.LANGUAGE = "JS";
|
|
204946
|
-
exports.VERSION = version_js_1.SDK_BUILD_NUMBER;
|
|
204947
|
-
|
|
204948
|
-
class DesktopAuth {
|
|
204949
|
-
constructor(accountName) {
|
|
204950
|
-
this.accountName = accountName;
|
|
204951
|
-
}
|
|
204952
|
-
}
|
|
204953
|
-
exports.DesktopAuth = DesktopAuth;
|
|
204954
|
-
var clientAuthConfig = (userConfig) => {
|
|
204955
|
-
const defaultOsVersion = "0.0.0";
|
|
204956
|
-
let serviceAccountToken;
|
|
204957
|
-
let accountName;
|
|
204958
|
-
if (typeof userConfig.auth === "string") {
|
|
204959
|
-
serviceAccountToken = userConfig.auth;
|
|
204960
|
-
} else if (userConfig.auth instanceof DesktopAuth) {
|
|
204961
|
-
accountName = userConfig.auth.accountName;
|
|
204962
|
-
}
|
|
204963
|
-
return {
|
|
204964
|
-
serviceAccountToken: serviceAccountToken !== null && serviceAccountToken !== undefined ? serviceAccountToken : "",
|
|
204965
|
-
accountName,
|
|
204966
|
-
programmingLanguage: exports.LANGUAGE,
|
|
204967
|
-
sdkVersion: exports.VERSION,
|
|
204968
|
-
integrationName: userConfig.integrationName,
|
|
204969
|
-
integrationVersion: userConfig.integrationVersion,
|
|
204970
|
-
requestLibraryName: "Fetch API",
|
|
204971
|
-
requestLibraryVersion: "Fetch API",
|
|
204972
|
-
os: (0, exports.getOsName)(),
|
|
204973
|
-
osVersion: defaultOsVersion,
|
|
204974
|
-
architecture: os_1.default.arch()
|
|
204975
|
-
};
|
|
204976
|
-
};
|
|
204977
|
-
exports.clientAuthConfig = clientAuthConfig;
|
|
204978
|
-
var getOsName = () => {
|
|
204979
|
-
const os_name = os_1.default.type().toLowerCase();
|
|
204980
|
-
if (os_name === "windows_nt") {
|
|
204981
|
-
return "windows";
|
|
204982
|
-
}
|
|
204983
|
-
return os_name;
|
|
204984
|
-
};
|
|
204985
|
-
exports.getOsName = getOsName;
|
|
204986
|
-
});
|
|
204987
|
-
|
|
204988
|
-
// node_modules/@1password/sdk/dist/secrets.js
|
|
204989
|
-
var require_secrets = __commonJS((exports) => {
|
|
204990
|
-
var __awaiter = exports && exports.__awaiter || function(thisArg, _arguments, P5, generator) {
|
|
204991
|
-
function adopt(value7) {
|
|
204992
|
-
return value7 instanceof P5 ? value7 : new P5(function(resolve5) {
|
|
204993
|
-
resolve5(value7);
|
|
204994
|
-
});
|
|
204995
|
-
}
|
|
204996
|
-
return new (P5 || (P5 = Promise))(function(resolve5, reject) {
|
|
204997
|
-
function fulfilled(value7) {
|
|
204998
|
-
try {
|
|
204999
|
-
step3(generator.next(value7));
|
|
205000
|
-
} catch (e) {
|
|
205001
|
-
reject(e);
|
|
205002
|
-
}
|
|
205003
|
-
}
|
|
205004
|
-
function rejected(value7) {
|
|
205005
|
-
try {
|
|
205006
|
-
step3(generator["throw"](value7));
|
|
205007
|
-
} catch (e) {
|
|
205008
|
-
reject(e);
|
|
205009
|
-
}
|
|
205010
|
-
}
|
|
205011
|
-
function step3(result) {
|
|
205012
|
-
result.done ? resolve5(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
205013
|
-
}
|
|
205014
|
-
step3((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
205015
|
-
});
|
|
205016
|
-
};
|
|
205017
|
-
var __classPrivateFieldSet = exports && exports.__classPrivateFieldSet || function(receiver, state2, value7, kind, f5) {
|
|
205018
|
-
if (kind === "m")
|
|
205019
|
-
throw new TypeError("Private method is not writable");
|
|
205020
|
-
if (kind === "a" && !f5)
|
|
205021
|
-
throw new TypeError("Private accessor was defined without a setter");
|
|
205022
|
-
if (typeof state2 === "function" ? receiver !== state2 || !f5 : !state2.has(receiver))
|
|
205023
|
-
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
205024
|
-
return kind === "a" ? f5.call(receiver, value7) : f5 ? f5.value = value7 : state2.set(receiver, value7), value7;
|
|
205025
|
-
};
|
|
205026
|
-
var __classPrivateFieldGet = exports && exports.__classPrivateFieldGet || function(receiver, state2, kind, f5) {
|
|
205027
|
-
if (kind === "a" && !f5)
|
|
205028
|
-
throw new TypeError("Private accessor was defined without a getter");
|
|
205029
|
-
if (typeof state2 === "function" ? receiver !== state2 || !f5 : !state2.has(receiver))
|
|
205030
|
-
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
205031
|
-
return kind === "m" ? f5 : kind === "a" ? f5.call(receiver) : f5 ? f5.value : state2.get(receiver);
|
|
205032
|
-
};
|
|
205033
|
-
var _Secrets_inner;
|
|
205034
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
205035
|
-
exports.Secrets = undefined;
|
|
205036
|
-
var core_js_1 = require_core5();
|
|
205037
|
-
var types_js_1 = require_types2();
|
|
205038
|
-
|
|
205039
|
-
class Secrets {
|
|
205040
|
-
constructor(inner) {
|
|
205041
|
-
_Secrets_inner.set(this, undefined);
|
|
205042
|
-
__classPrivateFieldSet(this, _Secrets_inner, inner, "f");
|
|
205043
|
-
}
|
|
205044
|
-
resolve(secretReference) {
|
|
205045
|
-
return __awaiter(this, undefined, undefined, function* () {
|
|
205046
|
-
const invocationConfig = {
|
|
205047
|
-
invocation: {
|
|
205048
|
-
clientId: __classPrivateFieldGet(this, _Secrets_inner, "f").id,
|
|
205049
|
-
parameters: {
|
|
205050
|
-
name: "SecretsResolve",
|
|
205051
|
-
parameters: {
|
|
205052
|
-
secret_reference: secretReference
|
|
205053
|
-
}
|
|
205054
|
-
}
|
|
205055
|
-
}
|
|
205056
|
-
};
|
|
205057
|
-
return JSON.parse(yield __classPrivateFieldGet(this, _Secrets_inner, "f").invoke(invocationConfig), types_js_1.ReviverFunc);
|
|
205058
|
-
});
|
|
205059
|
-
}
|
|
205060
|
-
resolveAll(secretReferences) {
|
|
205061
|
-
return __awaiter(this, undefined, undefined, function* () {
|
|
205062
|
-
const invocationConfig = {
|
|
205063
|
-
invocation: {
|
|
205064
|
-
clientId: __classPrivateFieldGet(this, _Secrets_inner, "f").id,
|
|
205065
|
-
parameters: {
|
|
205066
|
-
name: "SecretsResolveAll",
|
|
205067
|
-
parameters: {
|
|
205068
|
-
secret_references: secretReferences
|
|
205069
|
-
}
|
|
205070
|
-
}
|
|
205071
|
-
}
|
|
205072
|
-
};
|
|
205073
|
-
return JSON.parse(yield __classPrivateFieldGet(this, _Secrets_inner, "f").invoke(invocationConfig), types_js_1.ReviverFunc);
|
|
205074
|
-
});
|
|
205075
|
-
}
|
|
205076
|
-
static validateSecretReference(secretReference) {
|
|
205077
|
-
const sharedCore = new core_js_1.SharedCore;
|
|
205078
|
-
const invocationConfig = {
|
|
205079
|
-
invocation: {
|
|
205080
|
-
parameters: {
|
|
205081
|
-
name: "ValidateSecretReference",
|
|
205082
|
-
parameters: {
|
|
205083
|
-
secret_reference: secretReference
|
|
205084
|
-
}
|
|
205085
|
-
}
|
|
205086
|
-
}
|
|
205087
|
-
};
|
|
205088
|
-
sharedCore.invoke_sync(invocationConfig);
|
|
205089
|
-
}
|
|
205090
|
-
static generatePassword(recipe) {
|
|
205091
|
-
const sharedCore = new core_js_1.SharedCore;
|
|
205092
|
-
const invocationConfig = {
|
|
205093
|
-
invocation: {
|
|
205094
|
-
parameters: {
|
|
205095
|
-
name: "GeneratePassword",
|
|
205096
|
-
parameters: {
|
|
205097
|
-
recipe
|
|
205098
|
-
}
|
|
205099
|
-
}
|
|
205100
|
-
}
|
|
205101
|
-
};
|
|
205102
|
-
return JSON.parse(sharedCore.invoke_sync(invocationConfig), types_js_1.ReviverFunc);
|
|
205103
|
-
}
|
|
205104
|
-
}
|
|
205105
|
-
exports.Secrets = Secrets;
|
|
205106
|
-
_Secrets_inner = new WeakMap;
|
|
205107
|
-
});
|
|
205108
|
-
|
|
205109
|
-
// node_modules/@1password/sdk/dist/items_shares.js
|
|
205110
|
-
var require_items_shares = __commonJS((exports) => {
|
|
205111
|
-
var __awaiter = exports && exports.__awaiter || function(thisArg, _arguments, P5, generator) {
|
|
205112
|
-
function adopt(value7) {
|
|
205113
|
-
return value7 instanceof P5 ? value7 : new P5(function(resolve5) {
|
|
205114
|
-
resolve5(value7);
|
|
205115
|
-
});
|
|
205116
|
-
}
|
|
205117
|
-
return new (P5 || (P5 = Promise))(function(resolve5, reject) {
|
|
205118
|
-
function fulfilled(value7) {
|
|
205119
|
-
try {
|
|
205120
|
-
step3(generator.next(value7));
|
|
205121
|
-
} catch (e) {
|
|
205122
|
-
reject(e);
|
|
205123
|
-
}
|
|
205124
|
-
}
|
|
205125
|
-
function rejected(value7) {
|
|
205126
|
-
try {
|
|
205127
|
-
step3(generator["throw"](value7));
|
|
205128
|
-
} catch (e) {
|
|
205129
|
-
reject(e);
|
|
205130
|
-
}
|
|
205131
|
-
}
|
|
205132
|
-
function step3(result) {
|
|
205133
|
-
result.done ? resolve5(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
205134
|
-
}
|
|
205135
|
-
step3((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
205136
|
-
});
|
|
205137
|
-
};
|
|
205138
|
-
var __classPrivateFieldSet = exports && exports.__classPrivateFieldSet || function(receiver, state2, value7, kind, f5) {
|
|
205139
|
-
if (kind === "m")
|
|
205140
|
-
throw new TypeError("Private method is not writable");
|
|
205141
|
-
if (kind === "a" && !f5)
|
|
205142
|
-
throw new TypeError("Private accessor was defined without a setter");
|
|
205143
|
-
if (typeof state2 === "function" ? receiver !== state2 || !f5 : !state2.has(receiver))
|
|
205144
|
-
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
205145
|
-
return kind === "a" ? f5.call(receiver, value7) : f5 ? f5.value = value7 : state2.set(receiver, value7), value7;
|
|
205146
|
-
};
|
|
205147
|
-
var __classPrivateFieldGet = exports && exports.__classPrivateFieldGet || function(receiver, state2, kind, f5) {
|
|
205148
|
-
if (kind === "a" && !f5)
|
|
205149
|
-
throw new TypeError("Private accessor was defined without a getter");
|
|
205150
|
-
if (typeof state2 === "function" ? receiver !== state2 || !f5 : !state2.has(receiver))
|
|
205151
|
-
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
205152
|
-
return kind === "m" ? f5 : kind === "a" ? f5.call(receiver) : f5 ? f5.value : state2.get(receiver);
|
|
205153
|
-
};
|
|
205154
|
-
var _ItemsShares_inner;
|
|
205155
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
205156
|
-
exports.ItemsShares = undefined;
|
|
205157
|
-
var types_js_1 = require_types2();
|
|
205158
|
-
|
|
205159
|
-
class ItemsShares {
|
|
205160
|
-
constructor(inner) {
|
|
205161
|
-
_ItemsShares_inner.set(this, undefined);
|
|
205162
|
-
__classPrivateFieldSet(this, _ItemsShares_inner, inner, "f");
|
|
205163
|
-
}
|
|
205164
|
-
getAccountPolicy(vaultId, itemId) {
|
|
205165
|
-
return __awaiter(this, undefined, undefined, function* () {
|
|
205166
|
-
const invocationConfig = {
|
|
205167
|
-
invocation: {
|
|
205168
|
-
clientId: __classPrivateFieldGet(this, _ItemsShares_inner, "f").id,
|
|
205169
|
-
parameters: {
|
|
205170
|
-
name: "ItemsSharesGetAccountPolicy",
|
|
205171
|
-
parameters: {
|
|
205172
|
-
vault_id: vaultId,
|
|
205173
|
-
item_id: itemId
|
|
205174
|
-
}
|
|
205175
|
-
}
|
|
205176
|
-
}
|
|
205177
|
-
};
|
|
205178
|
-
return JSON.parse(yield __classPrivateFieldGet(this, _ItemsShares_inner, "f").invoke(invocationConfig), types_js_1.ReviverFunc);
|
|
205179
|
-
});
|
|
205180
|
-
}
|
|
205181
|
-
validateRecipients(policy2, recipients) {
|
|
205182
|
-
return __awaiter(this, undefined, undefined, function* () {
|
|
205183
|
-
const invocationConfig = {
|
|
205184
|
-
invocation: {
|
|
205185
|
-
clientId: __classPrivateFieldGet(this, _ItemsShares_inner, "f").id,
|
|
205186
|
-
parameters: {
|
|
205187
|
-
name: "ItemsSharesValidateRecipients",
|
|
205188
|
-
parameters: {
|
|
205189
|
-
policy: policy2,
|
|
205190
|
-
recipients
|
|
205191
|
-
}
|
|
205192
|
-
}
|
|
205193
|
-
}
|
|
205194
|
-
};
|
|
205195
|
-
return JSON.parse(yield __classPrivateFieldGet(this, _ItemsShares_inner, "f").invoke(invocationConfig), types_js_1.ReviverFunc);
|
|
205196
|
-
});
|
|
205197
|
-
}
|
|
205198
|
-
create(item, policy2, params2) {
|
|
205199
|
-
return __awaiter(this, undefined, undefined, function* () {
|
|
205200
|
-
const invocationConfig = {
|
|
205201
|
-
invocation: {
|
|
205202
|
-
clientId: __classPrivateFieldGet(this, _ItemsShares_inner, "f").id,
|
|
205203
|
-
parameters: {
|
|
205204
|
-
name: "ItemsSharesCreate",
|
|
205205
|
-
parameters: {
|
|
205206
|
-
item,
|
|
205207
|
-
policy: policy2,
|
|
205208
|
-
params: params2
|
|
205209
|
-
}
|
|
205210
|
-
}
|
|
205211
|
-
}
|
|
205212
|
-
};
|
|
205213
|
-
return JSON.parse(yield __classPrivateFieldGet(this, _ItemsShares_inner, "f").invoke(invocationConfig), types_js_1.ReviverFunc);
|
|
205214
|
-
});
|
|
205215
|
-
}
|
|
205216
|
-
}
|
|
205217
|
-
exports.ItemsShares = ItemsShares;
|
|
205218
|
-
_ItemsShares_inner = new WeakMap;
|
|
205219
|
-
});
|
|
205220
|
-
|
|
205221
|
-
// node_modules/@1password/sdk/dist/items_files.js
|
|
205222
|
-
var require_items_files = __commonJS((exports) => {
|
|
205223
|
-
var __awaiter = exports && exports.__awaiter || function(thisArg, _arguments, P5, generator) {
|
|
205224
|
-
function adopt(value7) {
|
|
205225
|
-
return value7 instanceof P5 ? value7 : new P5(function(resolve5) {
|
|
205226
|
-
resolve5(value7);
|
|
205227
|
-
});
|
|
205228
|
-
}
|
|
205229
|
-
return new (P5 || (P5 = Promise))(function(resolve5, reject) {
|
|
205230
|
-
function fulfilled(value7) {
|
|
205231
|
-
try {
|
|
205232
|
-
step3(generator.next(value7));
|
|
205233
|
-
} catch (e) {
|
|
205234
|
-
reject(e);
|
|
205235
|
-
}
|
|
205236
|
-
}
|
|
205237
|
-
function rejected(value7) {
|
|
205238
|
-
try {
|
|
205239
|
-
step3(generator["throw"](value7));
|
|
205240
|
-
} catch (e) {
|
|
205241
|
-
reject(e);
|
|
205242
|
-
}
|
|
205243
|
-
}
|
|
205244
|
-
function step3(result) {
|
|
205245
|
-
result.done ? resolve5(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
205246
|
-
}
|
|
205247
|
-
step3((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
205248
|
-
});
|
|
205249
|
-
};
|
|
205250
|
-
var __classPrivateFieldSet = exports && exports.__classPrivateFieldSet || function(receiver, state2, value7, kind, f5) {
|
|
205251
|
-
if (kind === "m")
|
|
205252
|
-
throw new TypeError("Private method is not writable");
|
|
205253
|
-
if (kind === "a" && !f5)
|
|
205254
|
-
throw new TypeError("Private accessor was defined without a setter");
|
|
205255
|
-
if (typeof state2 === "function" ? receiver !== state2 || !f5 : !state2.has(receiver))
|
|
205256
|
-
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
205257
|
-
return kind === "a" ? f5.call(receiver, value7) : f5 ? f5.value = value7 : state2.set(receiver, value7), value7;
|
|
205258
|
-
};
|
|
205259
|
-
var __classPrivateFieldGet = exports && exports.__classPrivateFieldGet || function(receiver, state2, kind, f5) {
|
|
205260
|
-
if (kind === "a" && !f5)
|
|
205261
|
-
throw new TypeError("Private accessor was defined without a getter");
|
|
205262
|
-
if (typeof state2 === "function" ? receiver !== state2 || !f5 : !state2.has(receiver))
|
|
205263
|
-
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
205264
|
-
return kind === "m" ? f5 : kind === "a" ? f5.call(receiver) : f5 ? f5.value : state2.get(receiver);
|
|
205265
|
-
};
|
|
205266
|
-
var _ItemsFiles_inner;
|
|
205267
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
205268
|
-
exports.ItemsFiles = undefined;
|
|
205269
|
-
var types_js_1 = require_types2();
|
|
205270
|
-
|
|
205271
|
-
class ItemsFiles {
|
|
205272
|
-
constructor(inner) {
|
|
205273
|
-
_ItemsFiles_inner.set(this, undefined);
|
|
205274
|
-
__classPrivateFieldSet(this, _ItemsFiles_inner, inner, "f");
|
|
205275
|
-
}
|
|
205276
|
-
attach(item, fileParams) {
|
|
205277
|
-
return __awaiter(this, undefined, undefined, function* () {
|
|
205278
|
-
const invocationConfig = {
|
|
205279
|
-
invocation: {
|
|
205280
|
-
clientId: __classPrivateFieldGet(this, _ItemsFiles_inner, "f").id,
|
|
205281
|
-
parameters: {
|
|
205282
|
-
name: "ItemsFilesAttach",
|
|
205283
|
-
parameters: {
|
|
205284
|
-
item,
|
|
205285
|
-
file_params: fileParams
|
|
205286
|
-
}
|
|
205287
|
-
}
|
|
205288
|
-
}
|
|
205289
|
-
};
|
|
205290
|
-
return JSON.parse(yield __classPrivateFieldGet(this, _ItemsFiles_inner, "f").invoke(invocationConfig), types_js_1.ReviverFunc);
|
|
205291
|
-
});
|
|
205292
|
-
}
|
|
205293
|
-
read(vaultId, itemId, attr) {
|
|
205294
|
-
return __awaiter(this, undefined, undefined, function* () {
|
|
205295
|
-
const invocationConfig = {
|
|
205296
|
-
invocation: {
|
|
205297
|
-
clientId: __classPrivateFieldGet(this, _ItemsFiles_inner, "f").id,
|
|
205298
|
-
parameters: {
|
|
205299
|
-
name: "ItemsFilesRead",
|
|
205300
|
-
parameters: {
|
|
205301
|
-
vault_id: vaultId,
|
|
205302
|
-
item_id: itemId,
|
|
205303
|
-
attr
|
|
205304
|
-
}
|
|
205305
|
-
}
|
|
205306
|
-
}
|
|
205307
|
-
};
|
|
205308
|
-
return JSON.parse(yield __classPrivateFieldGet(this, _ItemsFiles_inner, "f").invoke(invocationConfig), types_js_1.ReviverFunc);
|
|
205309
|
-
});
|
|
205310
|
-
}
|
|
205311
|
-
delete(item, sectionId, fieldId) {
|
|
205312
|
-
return __awaiter(this, undefined, undefined, function* () {
|
|
205313
|
-
const invocationConfig = {
|
|
205314
|
-
invocation: {
|
|
205315
|
-
clientId: __classPrivateFieldGet(this, _ItemsFiles_inner, "f").id,
|
|
205316
|
-
parameters: {
|
|
205317
|
-
name: "ItemsFilesDelete",
|
|
205318
|
-
parameters: {
|
|
205319
|
-
item,
|
|
205320
|
-
section_id: sectionId,
|
|
205321
|
-
field_id: fieldId
|
|
205322
|
-
}
|
|
205323
|
-
}
|
|
205324
|
-
}
|
|
205325
|
-
};
|
|
205326
|
-
return JSON.parse(yield __classPrivateFieldGet(this, _ItemsFiles_inner, "f").invoke(invocationConfig), types_js_1.ReviverFunc);
|
|
205327
|
-
});
|
|
205328
|
-
}
|
|
205329
|
-
replaceDocument(item, docParams) {
|
|
205330
|
-
return __awaiter(this, undefined, undefined, function* () {
|
|
205331
|
-
const invocationConfig = {
|
|
205332
|
-
invocation: {
|
|
205333
|
-
clientId: __classPrivateFieldGet(this, _ItemsFiles_inner, "f").id,
|
|
205334
|
-
parameters: {
|
|
205335
|
-
name: "ItemsFilesReplaceDocument",
|
|
205336
|
-
parameters: {
|
|
205337
|
-
item,
|
|
205338
|
-
doc_params: docParams
|
|
205339
|
-
}
|
|
205340
|
-
}
|
|
205341
|
-
}
|
|
205342
|
-
};
|
|
205343
|
-
return JSON.parse(yield __classPrivateFieldGet(this, _ItemsFiles_inner, "f").invoke(invocationConfig), types_js_1.ReviverFunc);
|
|
205344
|
-
});
|
|
205345
|
-
}
|
|
205346
|
-
}
|
|
205347
|
-
exports.ItemsFiles = ItemsFiles;
|
|
205348
|
-
_ItemsFiles_inner = new WeakMap;
|
|
205349
|
-
});
|
|
205350
|
-
|
|
205351
|
-
// node_modules/@1password/sdk/dist/items.js
|
|
205352
|
-
var require_items2 = __commonJS((exports) => {
|
|
205353
|
-
var __awaiter = exports && exports.__awaiter || function(thisArg, _arguments, P5, generator) {
|
|
205354
|
-
function adopt(value7) {
|
|
205355
|
-
return value7 instanceof P5 ? value7 : new P5(function(resolve5) {
|
|
205356
|
-
resolve5(value7);
|
|
205357
|
-
});
|
|
205358
|
-
}
|
|
205359
|
-
return new (P5 || (P5 = Promise))(function(resolve5, reject) {
|
|
205360
|
-
function fulfilled(value7) {
|
|
205361
|
-
try {
|
|
205362
|
-
step3(generator.next(value7));
|
|
205363
|
-
} catch (e) {
|
|
205364
|
-
reject(e);
|
|
205365
|
-
}
|
|
205366
|
-
}
|
|
205367
|
-
function rejected(value7) {
|
|
205368
|
-
try {
|
|
205369
|
-
step3(generator["throw"](value7));
|
|
205370
|
-
} catch (e) {
|
|
205371
|
-
reject(e);
|
|
205372
|
-
}
|
|
205373
|
-
}
|
|
205374
|
-
function step3(result) {
|
|
205375
|
-
result.done ? resolve5(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
205376
|
-
}
|
|
205377
|
-
step3((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
205378
|
-
});
|
|
205379
|
-
};
|
|
205380
|
-
var __classPrivateFieldSet = exports && exports.__classPrivateFieldSet || function(receiver, state2, value7, kind, f5) {
|
|
205381
|
-
if (kind === "m")
|
|
205382
|
-
throw new TypeError("Private method is not writable");
|
|
205383
|
-
if (kind === "a" && !f5)
|
|
205384
|
-
throw new TypeError("Private accessor was defined without a setter");
|
|
205385
|
-
if (typeof state2 === "function" ? receiver !== state2 || !f5 : !state2.has(receiver))
|
|
205386
|
-
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
205387
|
-
return kind === "a" ? f5.call(receiver, value7) : f5 ? f5.value = value7 : state2.set(receiver, value7), value7;
|
|
205388
|
-
};
|
|
205389
|
-
var __classPrivateFieldGet = exports && exports.__classPrivateFieldGet || function(receiver, state2, kind, f5) {
|
|
205390
|
-
if (kind === "a" && !f5)
|
|
205391
|
-
throw new TypeError("Private accessor was defined without a getter");
|
|
205392
|
-
if (typeof state2 === "function" ? receiver !== state2 || !f5 : !state2.has(receiver))
|
|
205393
|
-
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
205394
|
-
return kind === "m" ? f5 : kind === "a" ? f5.call(receiver) : f5 ? f5.value : state2.get(receiver);
|
|
205395
|
-
};
|
|
205396
|
-
var _Items_inner;
|
|
205397
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
205398
|
-
exports.Items = undefined;
|
|
205399
|
-
var types_js_1 = require_types2();
|
|
205400
|
-
var items_shares_js_1 = require_items_shares();
|
|
205401
|
-
var items_files_js_1 = require_items_files();
|
|
205402
|
-
|
|
205403
|
-
class Items {
|
|
205404
|
-
constructor(inner) {
|
|
205405
|
-
_Items_inner.set(this, undefined);
|
|
205406
|
-
__classPrivateFieldSet(this, _Items_inner, inner, "f");
|
|
205407
|
-
this.shares = new items_shares_js_1.ItemsShares(inner);
|
|
205408
|
-
this.files = new items_files_js_1.ItemsFiles(inner);
|
|
205409
|
-
}
|
|
205410
|
-
create(params2) {
|
|
205411
|
-
return __awaiter(this, undefined, undefined, function* () {
|
|
205412
|
-
const invocationConfig = {
|
|
205413
|
-
invocation: {
|
|
205414
|
-
clientId: __classPrivateFieldGet(this, _Items_inner, "f").id,
|
|
205415
|
-
parameters: {
|
|
205416
|
-
name: "ItemsCreate",
|
|
205417
|
-
parameters: {
|
|
205418
|
-
params: params2
|
|
205419
|
-
}
|
|
205420
|
-
}
|
|
205421
|
-
}
|
|
205422
|
-
};
|
|
205423
|
-
return JSON.parse(yield __classPrivateFieldGet(this, _Items_inner, "f").invoke(invocationConfig), types_js_1.ReviverFunc);
|
|
205424
|
-
});
|
|
205425
|
-
}
|
|
205426
|
-
createAll(vaultId, params2) {
|
|
205427
|
-
return __awaiter(this, undefined, undefined, function* () {
|
|
205428
|
-
const invocationConfig = {
|
|
205429
|
-
invocation: {
|
|
205430
|
-
clientId: __classPrivateFieldGet(this, _Items_inner, "f").id,
|
|
205431
|
-
parameters: {
|
|
205432
|
-
name: "ItemsCreateAll",
|
|
205433
|
-
parameters: {
|
|
205434
|
-
vault_id: vaultId,
|
|
205435
|
-
params: params2
|
|
205436
|
-
}
|
|
205437
|
-
}
|
|
205438
|
-
}
|
|
205439
|
-
};
|
|
205440
|
-
return JSON.parse(yield __classPrivateFieldGet(this, _Items_inner, "f").invoke(invocationConfig), types_js_1.ReviverFunc);
|
|
205441
|
-
});
|
|
205442
|
-
}
|
|
205443
|
-
get(vaultId, itemId) {
|
|
205444
|
-
return __awaiter(this, undefined, undefined, function* () {
|
|
205445
|
-
const invocationConfig = {
|
|
205446
|
-
invocation: {
|
|
205447
|
-
clientId: __classPrivateFieldGet(this, _Items_inner, "f").id,
|
|
205448
|
-
parameters: {
|
|
205449
|
-
name: "ItemsGet",
|
|
205450
|
-
parameters: {
|
|
205451
|
-
vault_id: vaultId,
|
|
205452
|
-
item_id: itemId
|
|
205453
|
-
}
|
|
205454
|
-
}
|
|
205455
|
-
}
|
|
205456
|
-
};
|
|
205457
|
-
return JSON.parse(yield __classPrivateFieldGet(this, _Items_inner, "f").invoke(invocationConfig), types_js_1.ReviverFunc);
|
|
205458
|
-
});
|
|
205459
|
-
}
|
|
205460
|
-
getAll(vaultId, itemIds) {
|
|
205461
|
-
return __awaiter(this, undefined, undefined, function* () {
|
|
205462
|
-
const invocationConfig = {
|
|
205463
|
-
invocation: {
|
|
205464
|
-
clientId: __classPrivateFieldGet(this, _Items_inner, "f").id,
|
|
205465
|
-
parameters: {
|
|
205466
|
-
name: "ItemsGetAll",
|
|
205467
|
-
parameters: {
|
|
205468
|
-
vault_id: vaultId,
|
|
205469
|
-
item_ids: itemIds
|
|
205470
|
-
}
|
|
205471
|
-
}
|
|
205472
|
-
}
|
|
205473
|
-
};
|
|
205474
|
-
return JSON.parse(yield __classPrivateFieldGet(this, _Items_inner, "f").invoke(invocationConfig), types_js_1.ReviverFunc);
|
|
205475
|
-
});
|
|
205476
|
-
}
|
|
205477
|
-
put(item) {
|
|
205478
|
-
return __awaiter(this, undefined, undefined, function* () {
|
|
205479
|
-
const invocationConfig = {
|
|
205480
|
-
invocation: {
|
|
205481
|
-
clientId: __classPrivateFieldGet(this, _Items_inner, "f").id,
|
|
205482
|
-
parameters: {
|
|
205483
|
-
name: "ItemsPut",
|
|
205484
|
-
parameters: {
|
|
205485
|
-
item
|
|
205486
|
-
}
|
|
205487
|
-
}
|
|
205488
|
-
}
|
|
205489
|
-
};
|
|
205490
|
-
return JSON.parse(yield __classPrivateFieldGet(this, _Items_inner, "f").invoke(invocationConfig), types_js_1.ReviverFunc);
|
|
205491
|
-
});
|
|
205492
|
-
}
|
|
205493
|
-
delete(vaultId, itemId) {
|
|
205494
|
-
return __awaiter(this, undefined, undefined, function* () {
|
|
205495
|
-
const invocationConfig = {
|
|
205496
|
-
invocation: {
|
|
205497
|
-
clientId: __classPrivateFieldGet(this, _Items_inner, "f").id,
|
|
205498
|
-
parameters: {
|
|
205499
|
-
name: "ItemsDelete",
|
|
205500
|
-
parameters: {
|
|
205501
|
-
vault_id: vaultId,
|
|
205502
|
-
item_id: itemId
|
|
205503
|
-
}
|
|
205504
|
-
}
|
|
205505
|
-
}
|
|
205506
|
-
};
|
|
205507
|
-
yield __classPrivateFieldGet(this, _Items_inner, "f").invoke(invocationConfig);
|
|
205508
|
-
});
|
|
205509
|
-
}
|
|
205510
|
-
deleteAll(vaultId, itemIds) {
|
|
205511
|
-
return __awaiter(this, undefined, undefined, function* () {
|
|
205512
|
-
const invocationConfig = {
|
|
205513
|
-
invocation: {
|
|
205514
|
-
clientId: __classPrivateFieldGet(this, _Items_inner, "f").id,
|
|
205515
|
-
parameters: {
|
|
205516
|
-
name: "ItemsDeleteAll",
|
|
205517
|
-
parameters: {
|
|
205518
|
-
vault_id: vaultId,
|
|
205519
|
-
item_ids: itemIds
|
|
205520
|
-
}
|
|
205521
|
-
}
|
|
205522
|
-
}
|
|
205523
|
-
};
|
|
205524
|
-
return JSON.parse(yield __classPrivateFieldGet(this, _Items_inner, "f").invoke(invocationConfig), types_js_1.ReviverFunc);
|
|
205525
|
-
});
|
|
205526
|
-
}
|
|
205527
|
-
archive(vaultId, itemId) {
|
|
205528
|
-
return __awaiter(this, undefined, undefined, function* () {
|
|
205529
|
-
const invocationConfig = {
|
|
205530
|
-
invocation: {
|
|
205531
|
-
clientId: __classPrivateFieldGet(this, _Items_inner, "f").id,
|
|
205532
|
-
parameters: {
|
|
205533
|
-
name: "ItemsArchive",
|
|
205534
|
-
parameters: {
|
|
205535
|
-
vault_id: vaultId,
|
|
205536
|
-
item_id: itemId
|
|
205537
|
-
}
|
|
205538
|
-
}
|
|
205539
|
-
}
|
|
205540
|
-
};
|
|
205541
|
-
yield __classPrivateFieldGet(this, _Items_inner, "f").invoke(invocationConfig);
|
|
205542
|
-
});
|
|
205543
|
-
}
|
|
205544
|
-
list(vaultId, ...filters) {
|
|
205545
|
-
return __awaiter(this, undefined, undefined, function* () {
|
|
205546
|
-
const invocationConfig = {
|
|
205547
|
-
invocation: {
|
|
205548
|
-
clientId: __classPrivateFieldGet(this, _Items_inner, "f").id,
|
|
205549
|
-
parameters: {
|
|
205550
|
-
name: "ItemsList",
|
|
205551
|
-
parameters: {
|
|
205552
|
-
vault_id: vaultId,
|
|
205553
|
-
filters
|
|
205554
|
-
}
|
|
205555
|
-
}
|
|
205556
|
-
}
|
|
205557
|
-
};
|
|
205558
|
-
return JSON.parse(yield __classPrivateFieldGet(this, _Items_inner, "f").invoke(invocationConfig), types_js_1.ReviverFunc);
|
|
205559
|
-
});
|
|
205560
|
-
}
|
|
205561
|
-
}
|
|
205562
|
-
exports.Items = Items;
|
|
205563
|
-
_Items_inner = new WeakMap;
|
|
205564
|
-
});
|
|
205565
|
-
|
|
205566
|
-
// node_modules/@1password/sdk/dist/vaults.js
|
|
205567
|
-
var require_vaults = __commonJS((exports) => {
|
|
205568
|
-
var __awaiter = exports && exports.__awaiter || function(thisArg, _arguments, P5, generator) {
|
|
205569
|
-
function adopt(value7) {
|
|
205570
|
-
return value7 instanceof P5 ? value7 : new P5(function(resolve5) {
|
|
205571
|
-
resolve5(value7);
|
|
205572
|
-
});
|
|
205573
|
-
}
|
|
205574
|
-
return new (P5 || (P5 = Promise))(function(resolve5, reject) {
|
|
205575
|
-
function fulfilled(value7) {
|
|
205576
|
-
try {
|
|
205577
|
-
step3(generator.next(value7));
|
|
205578
|
-
} catch (e) {
|
|
205579
|
-
reject(e);
|
|
205580
|
-
}
|
|
205581
|
-
}
|
|
205582
|
-
function rejected(value7) {
|
|
205583
|
-
try {
|
|
205584
|
-
step3(generator["throw"](value7));
|
|
205585
|
-
} catch (e) {
|
|
205586
|
-
reject(e);
|
|
205587
|
-
}
|
|
205588
|
-
}
|
|
205589
|
-
function step3(result) {
|
|
205590
|
-
result.done ? resolve5(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
205591
|
-
}
|
|
205592
|
-
step3((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
205593
|
-
});
|
|
205594
|
-
};
|
|
205595
|
-
var __classPrivateFieldSet = exports && exports.__classPrivateFieldSet || function(receiver, state2, value7, kind, f5) {
|
|
205596
|
-
if (kind === "m")
|
|
205597
|
-
throw new TypeError("Private method is not writable");
|
|
205598
|
-
if (kind === "a" && !f5)
|
|
205599
|
-
throw new TypeError("Private accessor was defined without a setter");
|
|
205600
|
-
if (typeof state2 === "function" ? receiver !== state2 || !f5 : !state2.has(receiver))
|
|
205601
|
-
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
205602
|
-
return kind === "a" ? f5.call(receiver, value7) : f5 ? f5.value = value7 : state2.set(receiver, value7), value7;
|
|
205603
|
-
};
|
|
205604
|
-
var __classPrivateFieldGet = exports && exports.__classPrivateFieldGet || function(receiver, state2, kind, f5) {
|
|
205605
|
-
if (kind === "a" && !f5)
|
|
205606
|
-
throw new TypeError("Private accessor was defined without a getter");
|
|
205607
|
-
if (typeof state2 === "function" ? receiver !== state2 || !f5 : !state2.has(receiver))
|
|
205608
|
-
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
205609
|
-
return kind === "m" ? f5 : kind === "a" ? f5.call(receiver) : f5 ? f5.value : state2.get(receiver);
|
|
205610
|
-
};
|
|
205611
|
-
var _Vaults_inner;
|
|
205612
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
205613
|
-
exports.Vaults = undefined;
|
|
205614
|
-
var types_js_1 = require_types2();
|
|
205615
|
-
|
|
205616
|
-
class Vaults {
|
|
205617
|
-
constructor(inner) {
|
|
205618
|
-
_Vaults_inner.set(this, undefined);
|
|
205619
|
-
__classPrivateFieldSet(this, _Vaults_inner, inner, "f");
|
|
205620
|
-
}
|
|
205621
|
-
create(params2) {
|
|
205622
|
-
return __awaiter(this, undefined, undefined, function* () {
|
|
205623
|
-
const invocationConfig = {
|
|
205624
|
-
invocation: {
|
|
205625
|
-
clientId: __classPrivateFieldGet(this, _Vaults_inner, "f").id,
|
|
205626
|
-
parameters: {
|
|
205627
|
-
name: "VaultsCreate",
|
|
205628
|
-
parameters: {
|
|
205629
|
-
params: params2
|
|
205630
|
-
}
|
|
205631
|
-
}
|
|
205632
|
-
}
|
|
205633
|
-
};
|
|
205634
|
-
return JSON.parse(yield __classPrivateFieldGet(this, _Vaults_inner, "f").invoke(invocationConfig), types_js_1.ReviverFunc);
|
|
205635
|
-
});
|
|
205636
|
-
}
|
|
205637
|
-
list(params2) {
|
|
205638
|
-
return __awaiter(this, undefined, undefined, function* () {
|
|
205639
|
-
const invocationConfig = {
|
|
205640
|
-
invocation: {
|
|
205641
|
-
clientId: __classPrivateFieldGet(this, _Vaults_inner, "f").id,
|
|
205642
|
-
parameters: {
|
|
205643
|
-
name: "VaultsList",
|
|
205644
|
-
parameters: {
|
|
205645
|
-
params: params2
|
|
205646
|
-
}
|
|
205647
|
-
}
|
|
205648
|
-
}
|
|
205649
|
-
};
|
|
205650
|
-
return JSON.parse(yield __classPrivateFieldGet(this, _Vaults_inner, "f").invoke(invocationConfig), types_js_1.ReviverFunc);
|
|
205651
|
-
});
|
|
205652
|
-
}
|
|
205653
|
-
getOverview(vaultId) {
|
|
205654
|
-
return __awaiter(this, undefined, undefined, function* () {
|
|
205655
|
-
const invocationConfig = {
|
|
205656
|
-
invocation: {
|
|
205657
|
-
clientId: __classPrivateFieldGet(this, _Vaults_inner, "f").id,
|
|
205658
|
-
parameters: {
|
|
205659
|
-
name: "VaultsGetOverview",
|
|
205660
|
-
parameters: {
|
|
205661
|
-
vault_id: vaultId
|
|
205662
|
-
}
|
|
205663
|
-
}
|
|
205664
|
-
}
|
|
205665
|
-
};
|
|
205666
|
-
return JSON.parse(yield __classPrivateFieldGet(this, _Vaults_inner, "f").invoke(invocationConfig), types_js_1.ReviverFunc);
|
|
205667
|
-
});
|
|
205668
|
-
}
|
|
205669
|
-
get(vaultId, vaultParams) {
|
|
205670
|
-
return __awaiter(this, undefined, undefined, function* () {
|
|
205671
|
-
const invocationConfig = {
|
|
205672
|
-
invocation: {
|
|
205673
|
-
clientId: __classPrivateFieldGet(this, _Vaults_inner, "f").id,
|
|
205674
|
-
parameters: {
|
|
205675
|
-
name: "VaultsGet",
|
|
205676
|
-
parameters: {
|
|
205677
|
-
vault_id: vaultId,
|
|
205678
|
-
vault_params: vaultParams
|
|
205679
|
-
}
|
|
205680
|
-
}
|
|
205681
|
-
}
|
|
205682
|
-
};
|
|
205683
|
-
return JSON.parse(yield __classPrivateFieldGet(this, _Vaults_inner, "f").invoke(invocationConfig), types_js_1.ReviverFunc);
|
|
205684
|
-
});
|
|
205685
|
-
}
|
|
205686
|
-
update(vaultId, params2) {
|
|
205687
|
-
return __awaiter(this, undefined, undefined, function* () {
|
|
205688
|
-
const invocationConfig = {
|
|
205689
|
-
invocation: {
|
|
205690
|
-
clientId: __classPrivateFieldGet(this, _Vaults_inner, "f").id,
|
|
205691
|
-
parameters: {
|
|
205692
|
-
name: "VaultsUpdate",
|
|
205693
|
-
parameters: {
|
|
205694
|
-
vault_id: vaultId,
|
|
205695
|
-
params: params2
|
|
205696
|
-
}
|
|
205697
|
-
}
|
|
205698
|
-
}
|
|
205699
|
-
};
|
|
205700
|
-
return JSON.parse(yield __classPrivateFieldGet(this, _Vaults_inner, "f").invoke(invocationConfig), types_js_1.ReviverFunc);
|
|
205701
|
-
});
|
|
205702
|
-
}
|
|
205703
|
-
delete(vaultId) {
|
|
205704
|
-
return __awaiter(this, undefined, undefined, function* () {
|
|
205705
|
-
const invocationConfig = {
|
|
205706
|
-
invocation: {
|
|
205707
|
-
clientId: __classPrivateFieldGet(this, _Vaults_inner, "f").id,
|
|
205708
|
-
parameters: {
|
|
205709
|
-
name: "VaultsDelete",
|
|
205710
|
-
parameters: {
|
|
205711
|
-
vault_id: vaultId
|
|
205712
|
-
}
|
|
205713
|
-
}
|
|
205714
|
-
}
|
|
205715
|
-
};
|
|
205716
|
-
yield __classPrivateFieldGet(this, _Vaults_inner, "f").invoke(invocationConfig);
|
|
205717
|
-
});
|
|
205718
|
-
}
|
|
205719
|
-
grantGroupPermissions(vaultId, groupPermissionsList) {
|
|
205720
|
-
return __awaiter(this, undefined, undefined, function* () {
|
|
205721
|
-
const invocationConfig = {
|
|
205722
|
-
invocation: {
|
|
205723
|
-
clientId: __classPrivateFieldGet(this, _Vaults_inner, "f").id,
|
|
205724
|
-
parameters: {
|
|
205725
|
-
name: "VaultsGrantGroupPermissions",
|
|
205726
|
-
parameters: {
|
|
205727
|
-
vault_id: vaultId,
|
|
205728
|
-
group_permissions_list: groupPermissionsList
|
|
205729
|
-
}
|
|
205730
|
-
}
|
|
205731
|
-
}
|
|
205732
|
-
};
|
|
205733
|
-
yield __classPrivateFieldGet(this, _Vaults_inner, "f").invoke(invocationConfig);
|
|
205734
|
-
});
|
|
205735
|
-
}
|
|
205736
|
-
updateGroupPermissions(groupPermissionsList) {
|
|
205737
|
-
return __awaiter(this, undefined, undefined, function* () {
|
|
205738
|
-
const invocationConfig = {
|
|
205739
|
-
invocation: {
|
|
205740
|
-
clientId: __classPrivateFieldGet(this, _Vaults_inner, "f").id,
|
|
205741
|
-
parameters: {
|
|
205742
|
-
name: "VaultsUpdateGroupPermissions",
|
|
205743
|
-
parameters: {
|
|
205744
|
-
group_permissions_list: groupPermissionsList
|
|
205745
|
-
}
|
|
205746
|
-
}
|
|
205747
|
-
}
|
|
205748
|
-
};
|
|
205749
|
-
yield __classPrivateFieldGet(this, _Vaults_inner, "f").invoke(invocationConfig);
|
|
205750
|
-
});
|
|
205751
|
-
}
|
|
205752
|
-
revokeGroupPermissions(vaultId, groupId) {
|
|
205753
|
-
return __awaiter(this, undefined, undefined, function* () {
|
|
205754
|
-
const invocationConfig = {
|
|
205755
|
-
invocation: {
|
|
205756
|
-
clientId: __classPrivateFieldGet(this, _Vaults_inner, "f").id,
|
|
205757
|
-
parameters: {
|
|
205758
|
-
name: "VaultsRevokeGroupPermissions",
|
|
205759
|
-
parameters: {
|
|
205760
|
-
vault_id: vaultId,
|
|
205761
|
-
group_id: groupId
|
|
205762
|
-
}
|
|
205763
|
-
}
|
|
205764
|
-
}
|
|
205765
|
-
};
|
|
205766
|
-
yield __classPrivateFieldGet(this, _Vaults_inner, "f").invoke(invocationConfig);
|
|
205767
|
-
});
|
|
205768
|
-
}
|
|
205769
|
-
}
|
|
205770
|
-
exports.Vaults = Vaults;
|
|
205771
|
-
_Vaults_inner = new WeakMap;
|
|
205772
|
-
});
|
|
205773
|
-
|
|
205774
|
-
// node_modules/@1password/sdk/dist/environments.js
|
|
205775
|
-
var require_environments = __commonJS((exports) => {
|
|
205776
|
-
var __awaiter = exports && exports.__awaiter || function(thisArg, _arguments, P5, generator) {
|
|
205777
|
-
function adopt(value7) {
|
|
205778
|
-
return value7 instanceof P5 ? value7 : new P5(function(resolve5) {
|
|
205779
|
-
resolve5(value7);
|
|
205780
|
-
});
|
|
205781
|
-
}
|
|
205782
|
-
return new (P5 || (P5 = Promise))(function(resolve5, reject) {
|
|
205783
|
-
function fulfilled(value7) {
|
|
205784
|
-
try {
|
|
205785
|
-
step3(generator.next(value7));
|
|
205786
|
-
} catch (e) {
|
|
205787
|
-
reject(e);
|
|
205788
|
-
}
|
|
205789
|
-
}
|
|
205790
|
-
function rejected(value7) {
|
|
205791
|
-
try {
|
|
205792
|
-
step3(generator["throw"](value7));
|
|
205793
|
-
} catch (e) {
|
|
205794
|
-
reject(e);
|
|
205795
|
-
}
|
|
205796
|
-
}
|
|
205797
|
-
function step3(result) {
|
|
205798
|
-
result.done ? resolve5(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
205799
|
-
}
|
|
205800
|
-
step3((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
205801
|
-
});
|
|
205802
|
-
};
|
|
205803
|
-
var __classPrivateFieldSet = exports && exports.__classPrivateFieldSet || function(receiver, state2, value7, kind, f5) {
|
|
205804
|
-
if (kind === "m")
|
|
205805
|
-
throw new TypeError("Private method is not writable");
|
|
205806
|
-
if (kind === "a" && !f5)
|
|
205807
|
-
throw new TypeError("Private accessor was defined without a setter");
|
|
205808
|
-
if (typeof state2 === "function" ? receiver !== state2 || !f5 : !state2.has(receiver))
|
|
205809
|
-
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
205810
|
-
return kind === "a" ? f5.call(receiver, value7) : f5 ? f5.value = value7 : state2.set(receiver, value7), value7;
|
|
205811
|
-
};
|
|
205812
|
-
var __classPrivateFieldGet = exports && exports.__classPrivateFieldGet || function(receiver, state2, kind, f5) {
|
|
205813
|
-
if (kind === "a" && !f5)
|
|
205814
|
-
throw new TypeError("Private accessor was defined without a getter");
|
|
205815
|
-
if (typeof state2 === "function" ? receiver !== state2 || !f5 : !state2.has(receiver))
|
|
205816
|
-
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
205817
|
-
return kind === "m" ? f5 : kind === "a" ? f5.call(receiver) : f5 ? f5.value : state2.get(receiver);
|
|
205818
|
-
};
|
|
205819
|
-
var _Environments_inner;
|
|
205820
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
205821
|
-
exports.Environments = undefined;
|
|
205822
|
-
var types_js_1 = require_types2();
|
|
205823
|
-
|
|
205824
|
-
class Environments {
|
|
205825
|
-
constructor(inner) {
|
|
205826
|
-
_Environments_inner.set(this, undefined);
|
|
205827
|
-
__classPrivateFieldSet(this, _Environments_inner, inner, "f");
|
|
205828
|
-
}
|
|
205829
|
-
getVariables(environmentId) {
|
|
205830
|
-
return __awaiter(this, undefined, undefined, function* () {
|
|
205831
|
-
const invocationConfig = {
|
|
205832
|
-
invocation: {
|
|
205833
|
-
clientId: __classPrivateFieldGet(this, _Environments_inner, "f").id,
|
|
205834
|
-
parameters: {
|
|
205835
|
-
name: "EnvironmentsGetVariables",
|
|
205836
|
-
parameters: {
|
|
205837
|
-
environment_id: environmentId
|
|
205838
|
-
}
|
|
205839
|
-
}
|
|
205840
|
-
}
|
|
205841
|
-
};
|
|
205842
|
-
return JSON.parse(yield __classPrivateFieldGet(this, _Environments_inner, "f").invoke(invocationConfig), types_js_1.ReviverFunc);
|
|
205843
|
-
});
|
|
205844
|
-
}
|
|
205845
|
-
}
|
|
205846
|
-
exports.Environments = Environments;
|
|
205847
|
-
_Environments_inner = new WeakMap;
|
|
205848
|
-
});
|
|
205849
|
-
|
|
205850
|
-
// node_modules/@1password/sdk/dist/groups.js
|
|
205851
|
-
var require_groups = __commonJS((exports) => {
|
|
205852
|
-
var __awaiter = exports && exports.__awaiter || function(thisArg, _arguments, P5, generator) {
|
|
205853
|
-
function adopt(value7) {
|
|
205854
|
-
return value7 instanceof P5 ? value7 : new P5(function(resolve5) {
|
|
205855
|
-
resolve5(value7);
|
|
205856
|
-
});
|
|
205857
|
-
}
|
|
205858
|
-
return new (P5 || (P5 = Promise))(function(resolve5, reject) {
|
|
205859
|
-
function fulfilled(value7) {
|
|
205860
|
-
try {
|
|
205861
|
-
step3(generator.next(value7));
|
|
205862
|
-
} catch (e) {
|
|
205863
|
-
reject(e);
|
|
205864
|
-
}
|
|
205865
|
-
}
|
|
205866
|
-
function rejected(value7) {
|
|
205867
|
-
try {
|
|
205868
|
-
step3(generator["throw"](value7));
|
|
205869
|
-
} catch (e) {
|
|
205870
|
-
reject(e);
|
|
205871
|
-
}
|
|
205872
|
-
}
|
|
205873
|
-
function step3(result) {
|
|
205874
|
-
result.done ? resolve5(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
205875
|
-
}
|
|
205876
|
-
step3((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
205877
|
-
});
|
|
205878
|
-
};
|
|
205879
|
-
var __classPrivateFieldSet = exports && exports.__classPrivateFieldSet || function(receiver, state2, value7, kind, f5) {
|
|
205880
|
-
if (kind === "m")
|
|
205881
|
-
throw new TypeError("Private method is not writable");
|
|
205882
|
-
if (kind === "a" && !f5)
|
|
205883
|
-
throw new TypeError("Private accessor was defined without a setter");
|
|
205884
|
-
if (typeof state2 === "function" ? receiver !== state2 || !f5 : !state2.has(receiver))
|
|
205885
|
-
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
205886
|
-
return kind === "a" ? f5.call(receiver, value7) : f5 ? f5.value = value7 : state2.set(receiver, value7), value7;
|
|
205887
|
-
};
|
|
205888
|
-
var __classPrivateFieldGet = exports && exports.__classPrivateFieldGet || function(receiver, state2, kind, f5) {
|
|
205889
|
-
if (kind === "a" && !f5)
|
|
205890
|
-
throw new TypeError("Private accessor was defined without a getter");
|
|
205891
|
-
if (typeof state2 === "function" ? receiver !== state2 || !f5 : !state2.has(receiver))
|
|
205892
|
-
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
205893
|
-
return kind === "m" ? f5 : kind === "a" ? f5.call(receiver) : f5 ? f5.value : state2.get(receiver);
|
|
205894
|
-
};
|
|
205895
|
-
var _Groups_inner;
|
|
205896
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
205897
|
-
exports.Groups = undefined;
|
|
205898
|
-
var types_js_1 = require_types2();
|
|
205899
|
-
|
|
205900
|
-
class Groups {
|
|
205901
|
-
constructor(inner) {
|
|
205902
|
-
_Groups_inner.set(this, undefined);
|
|
205903
|
-
__classPrivateFieldSet(this, _Groups_inner, inner, "f");
|
|
205904
|
-
}
|
|
205905
|
-
get(groupId, groupParams) {
|
|
205906
|
-
return __awaiter(this, undefined, undefined, function* () {
|
|
205907
|
-
const invocationConfig = {
|
|
205908
|
-
invocation: {
|
|
205909
|
-
clientId: __classPrivateFieldGet(this, _Groups_inner, "f").id,
|
|
205910
|
-
parameters: {
|
|
205911
|
-
name: "GroupsGet",
|
|
205912
|
-
parameters: {
|
|
205913
|
-
group_id: groupId,
|
|
205914
|
-
group_params: groupParams
|
|
205915
|
-
}
|
|
205916
|
-
}
|
|
205917
|
-
}
|
|
205918
|
-
};
|
|
205919
|
-
return JSON.parse(yield __classPrivateFieldGet(this, _Groups_inner, "f").invoke(invocationConfig), types_js_1.ReviverFunc);
|
|
205920
|
-
});
|
|
205921
|
-
}
|
|
205922
|
-
}
|
|
205923
|
-
exports.Groups = Groups;
|
|
205924
|
-
_Groups_inner = new WeakMap;
|
|
205925
|
-
});
|
|
205926
|
-
|
|
205927
|
-
// node_modules/@1password/sdk/dist/client.js
|
|
205928
|
-
var require_client = __commonJS((exports) => {
|
|
205929
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
205930
|
-
exports.Client = undefined;
|
|
205931
|
-
var secrets_js_1 = require_secrets();
|
|
205932
|
-
var items_js_1 = require_items2();
|
|
205933
|
-
var vaults_js_1 = require_vaults();
|
|
205934
|
-
var environments_js_1 = require_environments();
|
|
205935
|
-
var groups_js_1 = require_groups();
|
|
205936
|
-
|
|
205937
|
-
class Client2 {
|
|
205938
|
-
constructor(innerClient) {
|
|
205939
|
-
this.secrets = new secrets_js_1.Secrets(innerClient);
|
|
205940
|
-
this.items = new items_js_1.Items(innerClient);
|
|
205941
|
-
this.vaults = new vaults_js_1.Vaults(innerClient);
|
|
205942
|
-
this.environments = new environments_js_1.Environments(innerClient);
|
|
205943
|
-
this.groups = new groups_js_1.Groups(innerClient);
|
|
205944
|
-
}
|
|
205945
|
-
}
|
|
205946
|
-
exports.Client = Client2;
|
|
205947
|
-
});
|
|
205948
|
-
|
|
205949
|
-
// node_modules/@1password/sdk/dist/shared_lib_core.js
|
|
205950
|
-
var require_shared_lib_core = __commonJS((exports) => {
|
|
205951
|
-
var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m5, k5, k23) {
|
|
205952
|
-
if (k23 === undefined)
|
|
205953
|
-
k23 = k5;
|
|
205954
|
-
var desc = Object.getOwnPropertyDescriptor(m5, k5);
|
|
205955
|
-
if (!desc || ("get" in desc ? !m5.__esModule : desc.writable || desc.configurable)) {
|
|
205956
|
-
desc = { enumerable: true, get: function() {
|
|
205957
|
-
return m5[k5];
|
|
205958
|
-
} };
|
|
205959
|
-
}
|
|
205960
|
-
Object.defineProperty(o, k23, desc);
|
|
205961
|
-
} : function(o, m5, k5, k23) {
|
|
205962
|
-
if (k23 === undefined)
|
|
205963
|
-
k23 = k5;
|
|
205964
|
-
o[k23] = m5[k5];
|
|
205965
|
-
});
|
|
205966
|
-
var __setModuleDefault = exports && exports.__setModuleDefault || (Object.create ? function(o, v5) {
|
|
205967
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v5 });
|
|
205968
|
-
} : function(o, v5) {
|
|
205969
|
-
o["default"] = v5;
|
|
205970
|
-
});
|
|
205971
|
-
var __importStar = exports && exports.__importStar || function() {
|
|
205972
|
-
var ownKeys = function(o) {
|
|
205973
|
-
ownKeys = Object.getOwnPropertyNames || function(o5) {
|
|
205974
|
-
var ar4 = [];
|
|
205975
|
-
for (var k5 in o5)
|
|
205976
|
-
if (Object.prototype.hasOwnProperty.call(o5, k5))
|
|
205977
|
-
ar4[ar4.length] = k5;
|
|
205978
|
-
return ar4;
|
|
205979
|
-
};
|
|
205980
|
-
return ownKeys(o);
|
|
205981
|
-
};
|
|
205982
|
-
return function(mod2) {
|
|
205983
|
-
if (mod2 && mod2.__esModule)
|
|
205984
|
-
return mod2;
|
|
205985
|
-
var result = {};
|
|
205986
|
-
if (mod2 != null) {
|
|
205987
|
-
for (var k5 = ownKeys(mod2), i = 0;i < k5.length; i++)
|
|
205988
|
-
if (k5[i] !== "default")
|
|
205989
|
-
__createBinding(result, mod2, k5[i]);
|
|
205990
|
-
}
|
|
205991
|
-
__setModuleDefault(result, mod2);
|
|
205992
|
-
return result;
|
|
205993
|
-
};
|
|
205994
|
-
}();
|
|
205995
|
-
var __awaiter = exports && exports.__awaiter || function(thisArg, _arguments, P5, generator) {
|
|
205996
|
-
function adopt(value7) {
|
|
205997
|
-
return value7 instanceof P5 ? value7 : new P5(function(resolve5) {
|
|
205998
|
-
resolve5(value7);
|
|
205999
|
-
});
|
|
206000
|
-
}
|
|
206001
|
-
return new (P5 || (P5 = Promise))(function(resolve5, reject) {
|
|
206002
|
-
function fulfilled(value7) {
|
|
206003
|
-
try {
|
|
206004
|
-
step3(generator.next(value7));
|
|
206005
|
-
} catch (e) {
|
|
206006
|
-
reject(e);
|
|
206007
|
-
}
|
|
206008
|
-
}
|
|
206009
|
-
function rejected(value7) {
|
|
206010
|
-
try {
|
|
206011
|
-
step3(generator["throw"](value7));
|
|
206012
|
-
} catch (e) {
|
|
206013
|
-
reject(e);
|
|
206014
|
-
}
|
|
206015
|
-
}
|
|
206016
|
-
function step3(result) {
|
|
206017
|
-
result.done ? resolve5(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
206018
|
-
}
|
|
206019
|
-
step3((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
206020
|
-
});
|
|
206021
|
-
};
|
|
206022
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
206023
|
-
exports.SharedLibCore = undefined;
|
|
206024
|
-
var fs3 = __importStar(__require("fs"));
|
|
206025
|
-
var os3 = __importStar(__require("os"));
|
|
206026
|
-
var path4 = __importStar(__require("path"));
|
|
206027
|
-
var errors_1 = require_errors3();
|
|
206028
|
-
var find1PasswordLibPath = () => {
|
|
206029
|
-
const platform = os3.platform();
|
|
206030
|
-
const appRoot = path4.dirname(process.execPath);
|
|
206031
|
-
let searchPaths = [];
|
|
206032
|
-
switch (platform) {
|
|
206033
|
-
case "darwin":
|
|
206034
|
-
searchPaths = [
|
|
206035
|
-
"/Applications/1Password.app/Contents/Frameworks/libop_sdk_ipc_client.dylib",
|
|
206036
|
-
path4.join(os3.homedir(), "/Applications/1Password.app/Contents/Frameworks/libop_sdk_ipc_client.dylib")
|
|
206037
|
-
];
|
|
206038
|
-
break;
|
|
206039
|
-
case "linux":
|
|
206040
|
-
searchPaths = [
|
|
206041
|
-
"/usr/bin/1password/libop_sdk_ipc_client.so",
|
|
206042
|
-
"/opt/1Password/libop_sdk_ipc_client.so",
|
|
206043
|
-
"/snap/bin/1password/libop_sdk_ipc_client.so"
|
|
206044
|
-
];
|
|
206045
|
-
break;
|
|
206046
|
-
case "win32":
|
|
206047
|
-
searchPaths = [
|
|
206048
|
-
path4.join(os3.homedir(), "/AppData/Local/1Password/op_sdk_ipc_client.dll"),
|
|
206049
|
-
"C:/Program Files/1Password/app/8/op_sdk_ipc_client.dll",
|
|
206050
|
-
"C:/Program Files (x86)/1Password/app/8/op_sdk_ipc_client.dll",
|
|
206051
|
-
path4.join(os3.homedir(), "/AppData/Local/1Password/app/8/op_sdk_ipc_client.dll")
|
|
206052
|
-
];
|
|
206053
|
-
break;
|
|
206054
|
-
default:
|
|
206055
|
-
throw new Error(`Unsupported platform: ${platform}`);
|
|
206056
|
-
}
|
|
206057
|
-
for (const addonPath of searchPaths) {
|
|
206058
|
-
if (fs3.existsSync(addonPath)) {
|
|
206059
|
-
return addonPath;
|
|
206060
|
-
}
|
|
206061
|
-
}
|
|
206062
|
-
throw new Error("1Password desktop application not found");
|
|
206063
|
-
};
|
|
206064
|
-
|
|
206065
|
-
class SharedLibCore {
|
|
206066
|
-
constructor(accountName) {
|
|
206067
|
-
this.lib = null;
|
|
206068
|
-
try {
|
|
206069
|
-
const libPath = find1PasswordLibPath();
|
|
206070
|
-
const moduleStub = { exports: {} };
|
|
206071
|
-
process.dlopen(moduleStub, libPath);
|
|
206072
|
-
if (typeof moduleStub === "object" && moduleStub !== null && typeof moduleStub.exports === "object" && moduleStub.exports !== null && "sendMessage" in moduleStub.exports && typeof moduleStub.exports.sendMessage === "function") {
|
|
206073
|
-
this.lib = moduleStub.exports;
|
|
206074
|
-
} else {
|
|
206075
|
-
throw new Error("Failed to initialize native library: sendMessage function not found on module.");
|
|
206076
|
-
}
|
|
206077
|
-
} catch (e) {
|
|
206078
|
-
console.error("A critical error occurred while loading the native addon:", e);
|
|
206079
|
-
this.lib = null;
|
|
206080
|
-
}
|
|
206081
|
-
this.acccountName = accountName;
|
|
206082
|
-
}
|
|
206083
|
-
callSharedLibrary(input, operation_type) {
|
|
206084
|
-
return __awaiter(this, undefined, undefined, function* () {
|
|
206085
|
-
if (!this.lib) {
|
|
206086
|
-
throw new Error("Native library is not available.");
|
|
206087
|
-
}
|
|
206088
|
-
if (!input || input.length === 0) {
|
|
206089
|
-
throw new Error("internal: empty input");
|
|
206090
|
-
}
|
|
206091
|
-
const inputEncoded = Buffer.from(input, "utf8").toString("base64");
|
|
206092
|
-
const req = {
|
|
206093
|
-
account_name: this.acccountName,
|
|
206094
|
-
kind: operation_type,
|
|
206095
|
-
payload: inputEncoded
|
|
206096
|
-
};
|
|
206097
|
-
const inputBuf = Buffer.from(JSON.stringify(req), "utf8");
|
|
206098
|
-
const nativeResponse = yield this.lib.sendMessage(inputBuf);
|
|
206099
|
-
if (!(nativeResponse instanceof Uint8Array)) {
|
|
206100
|
-
throw new Error(`Native function returned an unexpected type. Expected Uint8Array, got ${typeof nativeResponse}`);
|
|
206101
|
-
}
|
|
206102
|
-
const respString = new TextDecoder().decode(nativeResponse);
|
|
206103
|
-
const response = JSON.parse(respString);
|
|
206104
|
-
if (response.success) {
|
|
206105
|
-
const decodedPayload = Buffer.from(response.payload).toString("utf8");
|
|
206106
|
-
return decodedPayload;
|
|
206107
|
-
} else {
|
|
206108
|
-
const errorMessage = Array.isArray(response.payload) ? String.fromCharCode(...response.payload) : JSON.stringify(response.payload);
|
|
206109
|
-
(0, errors_1.throwError)(errorMessage);
|
|
206110
|
-
}
|
|
206111
|
-
});
|
|
206112
|
-
}
|
|
206113
|
-
initClient(config4) {
|
|
206114
|
-
return __awaiter(this, undefined, undefined, function* () {
|
|
206115
|
-
return this.callSharedLibrary(config4, "init_client");
|
|
206116
|
-
});
|
|
206117
|
-
}
|
|
206118
|
-
invoke(invokeConfigBytes) {
|
|
206119
|
-
return __awaiter(this, undefined, undefined, function* () {
|
|
206120
|
-
return this.callSharedLibrary(invokeConfigBytes, "invoke");
|
|
206121
|
-
});
|
|
206122
|
-
}
|
|
206123
|
-
releaseClient(clientId) {
|
|
206124
|
-
this.callSharedLibrary(clientId, "release_client").catch((err) => {
|
|
206125
|
-
console.warn("failed to release client:", err);
|
|
206126
|
-
});
|
|
206127
|
-
}
|
|
206128
|
-
}
|
|
206129
|
-
exports.SharedLibCore = SharedLibCore;
|
|
206130
|
-
});
|
|
206131
|
-
|
|
206132
|
-
// node_modules/@1password/sdk/dist/client_builder.js
|
|
206133
|
-
var require_client_builder = __commonJS((exports) => {
|
|
206134
|
-
var __awaiter = exports && exports.__awaiter || function(thisArg, _arguments, P5, generator) {
|
|
206135
|
-
function adopt(value7) {
|
|
206136
|
-
return value7 instanceof P5 ? value7 : new P5(function(resolve5) {
|
|
206137
|
-
resolve5(value7);
|
|
206138
|
-
});
|
|
206139
|
-
}
|
|
206140
|
-
return new (P5 || (P5 = Promise))(function(resolve5, reject) {
|
|
206141
|
-
function fulfilled(value7) {
|
|
206142
|
-
try {
|
|
206143
|
-
step3(generator.next(value7));
|
|
206144
|
-
} catch (e) {
|
|
206145
|
-
reject(e);
|
|
206146
|
-
}
|
|
206147
|
-
}
|
|
206148
|
-
function rejected(value7) {
|
|
206149
|
-
try {
|
|
206150
|
-
step3(generator["throw"](value7));
|
|
206151
|
-
} catch (e) {
|
|
206152
|
-
reject(e);
|
|
206153
|
-
}
|
|
206154
|
-
}
|
|
206155
|
-
function step3(result) {
|
|
206156
|
-
result.done ? resolve5(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
206157
|
-
}
|
|
206158
|
-
step3((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
206159
|
-
});
|
|
206160
|
-
};
|
|
206161
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
206162
|
-
exports.createClientWithCore = undefined;
|
|
206163
|
-
var core_js_1 = require_core5();
|
|
206164
|
-
var configuration_js_1 = require_configuration();
|
|
206165
|
-
var client_js_1 = require_client();
|
|
206166
|
-
var shared_lib_core_js_1 = require_shared_lib_core();
|
|
206167
|
-
var finalizationRegistry = new FinalizationRegistry((heldClient) => {
|
|
206168
|
-
heldClient.core.releaseClient(heldClient.id);
|
|
206169
|
-
});
|
|
206170
|
-
var createClientWithCore = (config4, core2) => __awaiter(undefined, undefined, undefined, function* () {
|
|
206171
|
-
const authConfig = (0, configuration_js_1.clientAuthConfig)(config4);
|
|
206172
|
-
if (authConfig.accountName) {
|
|
206173
|
-
core2.setInner(new shared_lib_core_js_1.SharedLibCore(authConfig.accountName));
|
|
206174
|
-
}
|
|
206175
|
-
const clientId = yield core2.initClient(authConfig);
|
|
206176
|
-
const inner = new core_js_1.InnerClient(parseInt(clientId, 10), core2, authConfig);
|
|
206177
|
-
const client = new client_js_1.Client(inner);
|
|
206178
|
-
finalizationRegistry.register(client, inner);
|
|
206179
|
-
return client;
|
|
206180
|
-
});
|
|
206181
|
-
exports.createClientWithCore = createClientWithCore;
|
|
206182
|
-
});
|
|
206183
|
-
|
|
206184
|
-
// node_modules/@1password/sdk/dist/sdk.js
|
|
206185
|
-
var require_sdk = __commonJS((exports) => {
|
|
206186
|
-
var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m5, k5, k23) {
|
|
206187
|
-
if (k23 === undefined)
|
|
206188
|
-
k23 = k5;
|
|
206189
|
-
var desc = Object.getOwnPropertyDescriptor(m5, k5);
|
|
206190
|
-
if (!desc || ("get" in desc ? !m5.__esModule : desc.writable || desc.configurable)) {
|
|
206191
|
-
desc = { enumerable: true, get: function() {
|
|
206192
|
-
return m5[k5];
|
|
206193
|
-
} };
|
|
206194
|
-
}
|
|
206195
|
-
Object.defineProperty(o, k23, desc);
|
|
206196
|
-
} : function(o, m5, k5, k23) {
|
|
206197
|
-
if (k23 === undefined)
|
|
206198
|
-
k23 = k5;
|
|
206199
|
-
o[k23] = m5[k5];
|
|
206200
|
-
});
|
|
206201
|
-
var __exportStar = exports && exports.__exportStar || function(m5, exports2) {
|
|
206202
|
-
for (var p4 in m5)
|
|
206203
|
-
if (p4 !== "default" && !Object.prototype.hasOwnProperty.call(exports2, p4))
|
|
206204
|
-
__createBinding(exports2, m5, p4);
|
|
206205
|
-
};
|
|
206206
|
-
var __awaiter = exports && exports.__awaiter || function(thisArg, _arguments, P5, generator) {
|
|
206207
|
-
function adopt(value7) {
|
|
206208
|
-
return value7 instanceof P5 ? value7 : new P5(function(resolve5) {
|
|
206209
|
-
resolve5(value7);
|
|
206210
|
-
});
|
|
206211
|
-
}
|
|
206212
|
-
return new (P5 || (P5 = Promise))(function(resolve5, reject) {
|
|
206213
|
-
function fulfilled(value7) {
|
|
206214
|
-
try {
|
|
206215
|
-
step3(generator.next(value7));
|
|
206216
|
-
} catch (e) {
|
|
206217
|
-
reject(e);
|
|
206218
|
-
}
|
|
206219
|
-
}
|
|
206220
|
-
function rejected(value7) {
|
|
206221
|
-
try {
|
|
206222
|
-
step3(generator["throw"](value7));
|
|
206223
|
-
} catch (e) {
|
|
206224
|
-
reject(e);
|
|
206225
|
-
}
|
|
206226
|
-
}
|
|
206227
|
-
function step3(result) {
|
|
206228
|
-
result.done ? resolve5(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
206229
|
-
}
|
|
206230
|
-
step3((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
206231
|
-
});
|
|
206232
|
-
};
|
|
206233
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
206234
|
-
exports.createClient = exports.DesktopAuth = exports.Secrets = exports.DEFAULT_INTEGRATION_VERSION = exports.DEFAULT_INTEGRATION_NAME = undefined;
|
|
206235
|
-
var core_js_1 = require_core5();
|
|
206236
|
-
var client_builder_js_1 = require_client_builder();
|
|
206237
|
-
exports.DEFAULT_INTEGRATION_NAME = "Unknown";
|
|
206238
|
-
exports.DEFAULT_INTEGRATION_VERSION = "Unknown";
|
|
206239
|
-
var secrets_js_1 = require_secrets();
|
|
206240
|
-
Object.defineProperty(exports, "Secrets", { enumerable: true, get: function() {
|
|
206241
|
-
return secrets_js_1.Secrets;
|
|
206242
|
-
} });
|
|
206243
|
-
var configuration_js_1 = require_configuration();
|
|
206244
|
-
Object.defineProperty(exports, "DesktopAuth", { enumerable: true, get: function() {
|
|
206245
|
-
return configuration_js_1.DesktopAuth;
|
|
206246
|
-
} });
|
|
206247
|
-
__exportStar(require_client(), exports);
|
|
206248
|
-
__exportStar(require_errors3(), exports);
|
|
206249
|
-
__exportStar(require_types2(), exports);
|
|
206250
|
-
var createClient = (config4) => __awaiter(undefined, undefined, undefined, function* () {
|
|
206251
|
-
return (0, client_builder_js_1.createClientWithCore)(config4, new core_js_1.SharedCore);
|
|
206252
|
-
});
|
|
206253
|
-
exports.createClient = createClient;
|
|
206254
|
-
});
|
|
206255
|
-
|
|
206256
203931
|
// node_modules/@opentelemetry/api/build/src/platform/node/globalThis.js
|
|
206257
203932
|
var require_globalThis = __commonJS((exports) => {
|
|
206258
203933
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -206305,7 +203980,7 @@ var require_platform = __commonJS((exports) => {
|
|
|
206305
203980
|
});
|
|
206306
203981
|
|
|
206307
203982
|
// node_modules/@opentelemetry/api/build/src/version.js
|
|
206308
|
-
var
|
|
203983
|
+
var require_version2 = __commonJS((exports) => {
|
|
206309
203984
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
206310
203985
|
exports.VERSION = undefined;
|
|
206311
203986
|
exports.VERSION = "1.9.0";
|
|
@@ -206315,7 +203990,7 @@ var require_version3 = __commonJS((exports) => {
|
|
|
206315
203990
|
var require_semver = __commonJS((exports) => {
|
|
206316
203991
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
206317
203992
|
exports.isCompatible = exports._makeCompatibilityCheck = undefined;
|
|
206318
|
-
var version_1 =
|
|
203993
|
+
var version_1 = require_version2();
|
|
206319
203994
|
var re2 = /^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;
|
|
206320
203995
|
function _makeCompatibilityCheck(ownVersion) {
|
|
206321
203996
|
const acceptedVersions = new Set([ownVersion]);
|
|
@@ -206387,7 +204062,7 @@ var require_global_utils = __commonJS((exports) => {
|
|
|
206387
204062
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
206388
204063
|
exports.unregisterGlobal = exports.getGlobal = exports.registerGlobal = undefined;
|
|
206389
204064
|
var platform_1 = require_platform();
|
|
206390
|
-
var version_1 =
|
|
204065
|
+
var version_1 = require_version2();
|
|
206391
204066
|
var semver_1 = require_semver();
|
|
206392
204067
|
var major = version_1.VERSION.split(".")[0];
|
|
206393
204068
|
var GLOBAL_OPENTELEMETRY_API_KEY = Symbol.for(`opentelemetry.js.api.${major}`);
|
|
@@ -206469,7 +204144,7 @@ var require_ComponentLogger = __commonJS((exports) => {
|
|
|
206469
204144
|
});
|
|
206470
204145
|
|
|
206471
204146
|
// node_modules/@opentelemetry/api/build/src/diag/types.js
|
|
206472
|
-
var
|
|
204147
|
+
var require_types2 = __commonJS((exports) => {
|
|
206473
204148
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
206474
204149
|
exports.DiagLogLevel = undefined;
|
|
206475
204150
|
var DiagLogLevel;
|
|
@@ -206488,7 +204163,7 @@ var require_types3 = __commonJS((exports) => {
|
|
|
206488
204163
|
var require_logLevelLogger = __commonJS((exports) => {
|
|
206489
204164
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
206490
204165
|
exports.createLogLevelDiagLogger = undefined;
|
|
206491
|
-
var types_1 =
|
|
204166
|
+
var types_1 = require_types2();
|
|
206492
204167
|
function createLogLevelDiagLogger(maxLevel, logger2) {
|
|
206493
204168
|
if (maxLevel < types_1.DiagLogLevel.NONE) {
|
|
206494
204169
|
maxLevel = types_1.DiagLogLevel.NONE;
|
|
@@ -206520,7 +204195,7 @@ var require_diag = __commonJS((exports) => {
|
|
|
206520
204195
|
exports.DiagAPI = undefined;
|
|
206521
204196
|
var ComponentLogger_1 = require_ComponentLogger();
|
|
206522
204197
|
var logLevelLogger_1 = require_logLevelLogger();
|
|
206523
|
-
var types_1 =
|
|
204198
|
+
var types_1 = require_types2();
|
|
206524
204199
|
var global_utils_1 = require_global_utils();
|
|
206525
204200
|
var API_NAME = "diag";
|
|
206526
204201
|
|
|
@@ -207558,7 +205233,7 @@ var require_src = __commonJS((exports) => {
|
|
|
207558
205233
|
Object.defineProperty(exports, "DiagConsoleLogger", { enumerable: true, get: function() {
|
|
207559
205234
|
return consoleLogger_1.DiagConsoleLogger;
|
|
207560
205235
|
} });
|
|
207561
|
-
var types_1 =
|
|
205236
|
+
var types_1 = require_types2();
|
|
207562
205237
|
Object.defineProperty(exports, "DiagLogLevel", { enumerable: true, get: function() {
|
|
207563
205238
|
return types_1.DiagLogLevel;
|
|
207564
205239
|
} });
|
|
@@ -208256,7 +205931,7 @@ var require_globalThis2 = __commonJS((exports) => {
|
|
|
208256
205931
|
});
|
|
208257
205932
|
|
|
208258
205933
|
// node_modules/@opentelemetry/core/build/src/version.js
|
|
208259
|
-
var
|
|
205934
|
+
var require_version3 = __commonJS((exports) => {
|
|
208260
205935
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
208261
205936
|
exports.VERSION = undefined;
|
|
208262
205937
|
exports.VERSION = "2.6.0";
|
|
@@ -209821,7 +207496,7 @@ var require_semconv = __commonJS((exports) => {
|
|
|
209821
207496
|
var require_sdk_info = __commonJS((exports) => {
|
|
209822
207497
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
209823
207498
|
exports.SDK_INFO = undefined;
|
|
209824
|
-
var version_1 =
|
|
207499
|
+
var version_1 = require_version3();
|
|
209825
207500
|
var semantic_conventions_1 = require_src3();
|
|
209826
207501
|
var semconv_1 = require_semconv();
|
|
209827
207502
|
exports.SDK_INFO = {
|
|
@@ -210510,7 +208185,7 @@ var require_callback = __commonJS((exports) => {
|
|
|
210510
208185
|
});
|
|
210511
208186
|
|
|
210512
208187
|
// node_modules/@opentelemetry/core/build/src/utils/configuration.js
|
|
210513
|
-
var
|
|
208188
|
+
var require_configuration = __commonJS((exports) => {
|
|
210514
208189
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
210515
208190
|
exports.diagLogLevelFromString = undefined;
|
|
210516
208191
|
var api_1 = require_src();
|
|
@@ -210720,7 +208395,7 @@ var require_src4 = __commonJS((exports) => {
|
|
|
210720
208395
|
Object.defineProperty(exports, "BindOnceFuture", { enumerable: true, get: function() {
|
|
210721
208396
|
return callback_1.BindOnceFuture;
|
|
210722
208397
|
} });
|
|
210723
|
-
var configuration_1 =
|
|
208398
|
+
var configuration_1 = require_configuration();
|
|
210724
208399
|
Object.defineProperty(exports, "diagLogLevelFromString", { enumerable: true, get: function() {
|
|
210725
208400
|
return configuration_1.diagLogLevelFromString;
|
|
210726
208401
|
} });
|
|
@@ -212259,7 +209934,7 @@ var require_TracerMetrics = __commonJS((exports) => {
|
|
|
212259
209934
|
});
|
|
212260
209935
|
|
|
212261
209936
|
// node_modules/@opentelemetry/sdk-trace-base/build/src/version.js
|
|
212262
|
-
var
|
|
209937
|
+
var require_version4 = __commonJS((exports) => {
|
|
212263
209938
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
212264
209939
|
exports.VERSION = undefined;
|
|
212265
209940
|
exports.VERSION = "2.6.0";
|
|
@@ -212275,7 +209950,7 @@ var require_Tracer = __commonJS((exports) => {
|
|
|
212275
209950
|
var utility_1 = require_utility();
|
|
212276
209951
|
var platform_1 = require_platform4();
|
|
212277
209952
|
var TracerMetrics_1 = require_TracerMetrics();
|
|
212278
|
-
var version_1 =
|
|
209953
|
+
var version_1 = require_version4();
|
|
212279
209954
|
|
|
212280
209955
|
class Tracer {
|
|
212281
209956
|
_sampler;
|
|
@@ -213953,7 +211628,7 @@ var require_utils9 = __commonJS((exports) => {
|
|
|
213953
211628
|
});
|
|
213954
211629
|
|
|
213955
211630
|
// node_modules/@opentelemetry/sdk-metrics/build/src/aggregator/types.js
|
|
213956
|
-
var
|
|
211631
|
+
var require_types3 = __commonJS((exports) => {
|
|
213957
211632
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
213958
211633
|
exports.AggregatorKind = undefined;
|
|
213959
211634
|
var AggregatorKind;
|
|
@@ -213970,7 +211645,7 @@ var require_types4 = __commonJS((exports) => {
|
|
|
213970
211645
|
var require_Drop = __commonJS((exports) => {
|
|
213971
211646
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
213972
211647
|
exports.DropAggregator = undefined;
|
|
213973
|
-
var types_1 =
|
|
211648
|
+
var types_1 = require_types3();
|
|
213974
211649
|
|
|
213975
211650
|
class DropAggregator {
|
|
213976
211651
|
kind = types_1.AggregatorKind.DROP;
|
|
@@ -213994,7 +211669,7 @@ var require_Drop = __commonJS((exports) => {
|
|
|
213994
211669
|
var require_Histogram = __commonJS((exports) => {
|
|
213995
211670
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
213996
211671
|
exports.HistogramAggregator = exports.HistogramAccumulation = undefined;
|
|
213997
|
-
var types_1 =
|
|
211672
|
+
var types_1 = require_types3();
|
|
213998
211673
|
var MetricData_1 = require_MetricData();
|
|
213999
211674
|
var utils_1 = require_utils9();
|
|
214000
211675
|
function createNewEmptyCheckpoint(boundaries) {
|
|
@@ -214353,7 +212028,7 @@ var require_util2 = __commonJS((exports) => {
|
|
|
214353
212028
|
});
|
|
214354
212029
|
|
|
214355
212030
|
// node_modules/@opentelemetry/sdk-metrics/build/src/aggregator/exponential-histogram/mapping/types.js
|
|
214356
|
-
var
|
|
212031
|
+
var require_types4 = __commonJS((exports) => {
|
|
214357
212032
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
214358
212033
|
exports.MappingError = undefined;
|
|
214359
212034
|
|
|
@@ -214368,7 +212043,7 @@ var require_ExponentMapping = __commonJS((exports) => {
|
|
|
214368
212043
|
exports.ExponentMapping = undefined;
|
|
214369
212044
|
var ieee754 = require_ieee754();
|
|
214370
212045
|
var util2 = require_util2();
|
|
214371
|
-
var types_1 =
|
|
212046
|
+
var types_1 = require_types4();
|
|
214372
212047
|
|
|
214373
212048
|
class ExponentMapping {
|
|
214374
212049
|
_shift;
|
|
@@ -214423,7 +212098,7 @@ var require_LogarithmMapping = __commonJS((exports) => {
|
|
|
214423
212098
|
exports.LogarithmMapping = undefined;
|
|
214424
212099
|
var ieee754 = require_ieee754();
|
|
214425
212100
|
var util2 = require_util2();
|
|
214426
|
-
var types_1 =
|
|
212101
|
+
var types_1 = require_types4();
|
|
214427
212102
|
|
|
214428
212103
|
class LogarithmMapping {
|
|
214429
212104
|
_scale;
|
|
@@ -214487,7 +212162,7 @@ var require_getMapping = __commonJS((exports) => {
|
|
|
214487
212162
|
exports.getMapping = undefined;
|
|
214488
212163
|
var ExponentMapping_1 = require_ExponentMapping();
|
|
214489
212164
|
var LogarithmMapping_1 = require_LogarithmMapping();
|
|
214490
|
-
var types_1 =
|
|
212165
|
+
var types_1 = require_types4();
|
|
214491
212166
|
var MIN_SCALE = -10;
|
|
214492
212167
|
var MAX_SCALE = 20;
|
|
214493
212168
|
var PREBUILT_MAPPINGS = Array.from({ length: 31 }, (_5, i) => {
|
|
@@ -214509,7 +212184,7 @@ var require_getMapping = __commonJS((exports) => {
|
|
|
214509
212184
|
var require_ExponentialHistogram = __commonJS((exports) => {
|
|
214510
212185
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
214511
212186
|
exports.ExponentialHistogramAggregator = exports.ExponentialHistogramAccumulation = undefined;
|
|
214512
|
-
var types_1 =
|
|
212187
|
+
var types_1 = require_types3();
|
|
214513
212188
|
var MetricData_1 = require_MetricData();
|
|
214514
212189
|
var api_1 = require_src();
|
|
214515
212190
|
var Buckets_1 = require_Buckets();
|
|
@@ -214849,7 +212524,7 @@ var require_ExponentialHistogram = __commonJS((exports) => {
|
|
|
214849
212524
|
var require_LastValue = __commonJS((exports) => {
|
|
214850
212525
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
214851
212526
|
exports.LastValueAggregator = exports.LastValueAccumulation = undefined;
|
|
214852
|
-
var types_1 =
|
|
212527
|
+
var types_1 = require_types3();
|
|
214853
212528
|
var core_1 = require_src4();
|
|
214854
212529
|
var MetricData_1 = require_MetricData();
|
|
214855
212530
|
|
|
@@ -214911,7 +212586,7 @@ var require_LastValue = __commonJS((exports) => {
|
|
|
214911
212586
|
var require_Sum = __commonJS((exports) => {
|
|
214912
212587
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
214913
212588
|
exports.SumAggregator = exports.SumAccumulation = undefined;
|
|
214914
|
-
var types_1 =
|
|
212589
|
+
var types_1 = require_types3();
|
|
214915
212590
|
var MetricData_1 = require_MetricData();
|
|
214916
212591
|
|
|
214917
212592
|
class SumAccumulation {
|
|
@@ -216949,7 +214624,7 @@ var require_OTLPExporterBase = __commonJS((exports) => {
|
|
|
216949
214624
|
});
|
|
216950
214625
|
|
|
216951
214626
|
// node_modules/@opentelemetry/otlp-exporter-base/build/src/types.js
|
|
216952
|
-
var
|
|
214627
|
+
var require_types5 = __commonJS((exports) => {
|
|
216953
214628
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
216954
214629
|
exports.OTLPExporterError = undefined;
|
|
216955
214630
|
|
|
@@ -217074,7 +214749,7 @@ var require_otlp_export_delegate = __commonJS((exports) => {
|
|
|
217074
214749
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
217075
214750
|
exports.createOtlpExportDelegate = undefined;
|
|
217076
214751
|
var core_1 = require_src4();
|
|
217077
|
-
var types_1 =
|
|
214752
|
+
var types_1 = require_types5();
|
|
217078
214753
|
var logging_response_handler_1 = require_logging_response_handler();
|
|
217079
214754
|
var api_1 = require_src();
|
|
217080
214755
|
|
|
@@ -217186,7 +214861,7 @@ var require_src11 = __commonJS((exports) => {
|
|
|
217186
214861
|
Object.defineProperty(exports, "OTLPExporterBase", { enumerable: true, get: function() {
|
|
217187
214862
|
return OTLPExporterBase_1.OTLPExporterBase;
|
|
217188
214863
|
} });
|
|
217189
|
-
var types_1 =
|
|
214864
|
+
var types_1 = require_types5();
|
|
217190
214865
|
Object.defineProperty(exports, "OTLPExporterError", { enumerable: true, get: function() {
|
|
217191
214866
|
return types_1.OTLPExporterError;
|
|
217192
214867
|
} });
|
|
@@ -217208,7 +214883,7 @@ var require_src11 = __commonJS((exports) => {
|
|
|
217208
214883
|
});
|
|
217209
214884
|
|
|
217210
214885
|
// node_modules/@opentelemetry/otlp-grpc-exporter-base/build/src/version.js
|
|
217211
|
-
var
|
|
214886
|
+
var require_version5 = __commonJS((exports) => {
|
|
217212
214887
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
217213
214888
|
exports.VERSION = undefined;
|
|
217214
214889
|
exports.VERSION = "0.213.0";
|
|
@@ -220929,7 +218604,7 @@ var require_client_interceptors = __commonJS((exports) => {
|
|
|
220929
218604
|
});
|
|
220930
218605
|
|
|
220931
218606
|
// node_modules/@grpc/grpc-js/build/src/client.js
|
|
220932
|
-
var
|
|
218607
|
+
var require_client = __commonJS((exports) => {
|
|
220933
218608
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
220934
218609
|
exports.Client = undefined;
|
|
220935
218610
|
var call_1 = require_call();
|
|
@@ -221304,7 +218979,7 @@ var require_make_client = __commonJS((exports) => {
|
|
|
221304
218979
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
221305
218980
|
exports.makeClientConstructor = makeClientConstructor;
|
|
221306
218981
|
exports.loadPackageDefinition = loadPackageDefinition;
|
|
221307
|
-
var client_1 =
|
|
218982
|
+
var client_1 = require_client();
|
|
221308
218983
|
var requesterFuncs = {
|
|
221309
218984
|
unary: client_1.Client.prototype.makeUnaryRequest,
|
|
221310
218985
|
server_stream: client_1.Client.prototype.makeServerStreamRequest,
|
|
@@ -221719,7 +219394,7 @@ var require_lodash = __commonJS((exports, module) => {
|
|
|
221719
219394
|
}
|
|
221720
219395
|
function createCaseFirst(methodName) {
|
|
221721
219396
|
return function(string11) {
|
|
221722
|
-
string11 =
|
|
219397
|
+
string11 = toString4(string11);
|
|
221723
219398
|
var strSymbols = hasUnicode(string11) ? stringToArray(string11) : undefined;
|
|
221724
219399
|
var chr = strSymbols ? strSymbols[0] : string11.charAt(0);
|
|
221725
219400
|
var trailing = strSymbols ? castSlice(strSymbols, 1).join("") : string11.slice(1);
|
|
@@ -221737,7 +219412,7 @@ var require_lodash = __commonJS((exports, module) => {
|
|
|
221737
219412
|
function isSymbol2(value7) {
|
|
221738
219413
|
return typeof value7 == "symbol" || isObjectLike(value7) && objectToString.call(value7) == symbolTag;
|
|
221739
219414
|
}
|
|
221740
|
-
function
|
|
219415
|
+
function toString4(value7) {
|
|
221741
219416
|
return value7 == null ? "" : baseToString(value7);
|
|
221742
219417
|
}
|
|
221743
219418
|
var camelCase = createCompounder(function(result, word, index) {
|
|
@@ -221745,15 +219420,15 @@ var require_lodash = __commonJS((exports, module) => {
|
|
|
221745
219420
|
return result + (index ? capitalize2(word) : word);
|
|
221746
219421
|
});
|
|
221747
219422
|
function capitalize2(string11) {
|
|
221748
|
-
return upperFirst(
|
|
219423
|
+
return upperFirst(toString4(string11).toLowerCase());
|
|
221749
219424
|
}
|
|
221750
219425
|
function deburr(string11) {
|
|
221751
|
-
string11 =
|
|
219426
|
+
string11 = toString4(string11);
|
|
221752
219427
|
return string11 && string11.replace(reLatin, deburrLetter).replace(reComboMark, "");
|
|
221753
219428
|
}
|
|
221754
219429
|
var upperFirst = createCaseFirst("toUpperCase");
|
|
221755
219430
|
function words3(string11, pattern2, guard) {
|
|
221756
|
-
string11 =
|
|
219431
|
+
string11 = toString4(string11);
|
|
221757
219432
|
pattern2 = guard ? undefined : pattern2;
|
|
221758
219433
|
if (pattern2 === undefined) {
|
|
221759
219434
|
return hasUnicodeWord(string11) ? unicodeWords(string11) : asciiWords(string11);
|
|
@@ -223043,7 +220718,7 @@ var require_codegen2 = __commonJS((exports, module) => {
|
|
|
223043
220718
|
var body = [];
|
|
223044
220719
|
function Codegen(formatStringOrScope) {
|
|
223045
220720
|
if (typeof formatStringOrScope !== "string") {
|
|
223046
|
-
var source2 =
|
|
220721
|
+
var source2 = toString4();
|
|
223047
220722
|
if (codegen.verbose)
|
|
223048
220723
|
console.log("codegen: " + source2);
|
|
223049
220724
|
source2 = "return " + source2;
|
|
@@ -223082,13 +220757,13 @@ var require_codegen2 = __commonJS((exports, module) => {
|
|
|
223082
220757
|
body.push(formatStringOrScope);
|
|
223083
220758
|
return Codegen;
|
|
223084
220759
|
}
|
|
223085
|
-
function
|
|
220760
|
+
function toString4(functionNameOverride) {
|
|
223086
220761
|
return "function " + (functionNameOverride || functionName || "") + "(" + (functionParams && functionParams.join(",") || "") + `){
|
|
223087
220762
|
` + body.join(`
|
|
223088
220763
|
`) + `
|
|
223089
220764
|
}`;
|
|
223090
220765
|
}
|
|
223091
|
-
Codegen.toString =
|
|
220766
|
+
Codegen.toString = toString4;
|
|
223092
220767
|
return Codegen;
|
|
223093
220768
|
}
|
|
223094
220769
|
codegen.verbose = false;
|
|
@@ -223451,7 +221126,7 @@ var require_mapfield = __commonJS((exports, module) => {
|
|
|
223451
221126
|
module.exports = MapField;
|
|
223452
221127
|
var Field = require_field();
|
|
223453
221128
|
((MapField.prototype = Object.create(Field.prototype)).constructor = MapField).className = "MapField";
|
|
223454
|
-
var types3 =
|
|
221129
|
+
var types3 = require_types6();
|
|
223455
221130
|
var util2 = require_util3();
|
|
223456
221131
|
function MapField(name, id3, keyType, type2, options7, comment) {
|
|
223457
221132
|
Field.call(this, name, id3, type2, undefined, undefined, options7, comment);
|
|
@@ -223712,7 +221387,7 @@ var require_message = __commonJS((exports, module) => {
|
|
|
223712
221387
|
var require_decoder = __commonJS((exports, module) => {
|
|
223713
221388
|
module.exports = decoder2;
|
|
223714
221389
|
var Enum = require_enum2();
|
|
223715
|
-
var types3 =
|
|
221390
|
+
var types3 = require_types6();
|
|
223716
221391
|
var util2 = require_util3();
|
|
223717
221392
|
function missing(field) {
|
|
223718
221393
|
return "missing required '" + field.name + "'";
|
|
@@ -224748,7 +222423,7 @@ var require_util3 = __commonJS((exports, module) => {
|
|
|
224748
222423
|
});
|
|
224749
222424
|
|
|
224750
222425
|
// node_modules/protobufjs/src/types.js
|
|
224751
|
-
var
|
|
222426
|
+
var require_types6 = __commonJS((exports) => {
|
|
224752
222427
|
var types3 = exports;
|
|
224753
222428
|
var util2 = require_util3();
|
|
224754
222429
|
var s = [
|
|
@@ -224854,7 +222529,7 @@ var require_field = __commonJS((exports, module) => {
|
|
|
224854
222529
|
var ReflectionObject = require_object();
|
|
224855
222530
|
((Field.prototype = Object.create(ReflectionObject.prototype)).constructor = Field).className = "Field";
|
|
224856
222531
|
var Enum = require_enum2();
|
|
224857
|
-
var types3 =
|
|
222532
|
+
var types3 = require_types6();
|
|
224858
222533
|
var util2 = require_util3();
|
|
224859
222534
|
var Type3;
|
|
224860
222535
|
var ruleRe = /^required|optional|repeated$/;
|
|
@@ -225432,7 +223107,7 @@ var require_enum2 = __commonJS((exports, module) => {
|
|
|
225432
223107
|
var require_encoder = __commonJS((exports, module) => {
|
|
225433
223108
|
module.exports = encoder3;
|
|
225434
223109
|
var Enum = require_enum2();
|
|
225435
|
-
var types3 =
|
|
223110
|
+
var types3 = require_types6();
|
|
225436
223111
|
var util2 = require_util3();
|
|
225437
223112
|
function genTypePartial(gen3, field, fieldIndex, ref) {
|
|
225438
223113
|
return field.delimited ? gen3("types[%i].encode(%s,w.uint32(%i)).uint32(%i)", fieldIndex, ref, (field.id << 3 | 3) >>> 0, (field.id << 3 | 4) >>> 0) : gen3("types[%i].encode(%s,w.uint32(%i).fork()).ldelim()", fieldIndex, ref, (field.id << 3 | 2) >>> 0);
|
|
@@ -225511,7 +223186,7 @@ var require_index_light = __commonJS((exports, module) => {
|
|
|
225511
223186
|
protobuf.Method = require_method();
|
|
225512
223187
|
protobuf.Message = require_message();
|
|
225513
223188
|
protobuf.wrappers = require_wrappers();
|
|
225514
|
-
protobuf.types =
|
|
223189
|
+
protobuf.types = require_types6();
|
|
225515
223190
|
protobuf.util = require_util3();
|
|
225516
223191
|
protobuf.ReflectionObject._configure(protobuf.Root);
|
|
225517
223192
|
protobuf.Namespace._configure(protobuf.Type, protobuf.Service, protobuf.Enum);
|
|
@@ -225785,7 +223460,7 @@ var require_parse2 = __commonJS((exports, module) => {
|
|
|
225785
223460
|
var Service = require_service2();
|
|
225786
223461
|
var Method = require_method();
|
|
225787
223462
|
var ReflectionObject = require_object();
|
|
225788
|
-
var types3 =
|
|
223463
|
+
var types3 = require_types6();
|
|
225789
223464
|
var util2 = require_util3();
|
|
225790
223465
|
var base10Re = /^[1-9][0-9]*$/;
|
|
225791
223466
|
var base10NegRe = /^-?[1-9][0-9]*$/;
|
|
@@ -239867,7 +237542,7 @@ var require_src14 = __commonJS((exports) => {
|
|
|
239867
237542
|
Object.defineProperty(exports, "ChannelCredentials", { enumerable: true, get: function() {
|
|
239868
237543
|
return channel_credentials_1.ChannelCredentials;
|
|
239869
237544
|
} });
|
|
239870
|
-
var client_1 =
|
|
237545
|
+
var client_1 = require_client();
|
|
239871
237546
|
Object.defineProperty(exports, "Client", { enumerable: true, get: function() {
|
|
239872
237547
|
return client_1.Client;
|
|
239873
237548
|
} });
|
|
@@ -240040,7 +237715,7 @@ var require_create_service_client_constructor = __commonJS((exports) => {
|
|
|
240040
237715
|
var require_grpc_exporter_transport = __commonJS((exports) => {
|
|
240041
237716
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
240042
237717
|
exports.createOtlpGrpcExporterTransport = exports.GrpcExporterTransport = exports.createEmptyMetadata = exports.createSslCredentials = exports.createInsecureCredentials = undefined;
|
|
240043
|
-
var version_1 =
|
|
237718
|
+
var version_1 = require_version5();
|
|
240044
237719
|
var DEFAULT_USER_AGENT = `OTel-OTLP-Exporter-JavaScript/${version_1.VERSION}`;
|
|
240045
237720
|
function createUserAgent(userAgent) {
|
|
240046
237721
|
if (userAgent) {
|
|
@@ -240340,7 +238015,7 @@ var require_is_export_retryable = __commonJS((exports) => {
|
|
|
240340
238015
|
});
|
|
240341
238016
|
|
|
240342
238017
|
// node_modules/@opentelemetry/otlp-exporter-base/build/src/version.js
|
|
240343
|
-
var
|
|
238018
|
+
var require_version6 = __commonJS((exports) => {
|
|
240344
238019
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
240345
238020
|
exports.VERSION = undefined;
|
|
240346
238021
|
exports.VERSION = "0.213.0";
|
|
@@ -240353,8 +238028,8 @@ var require_http_transport_utils = __commonJS((exports) => {
|
|
|
240353
238028
|
var zlib = __require("zlib");
|
|
240354
238029
|
var stream_1 = __require("stream");
|
|
240355
238030
|
var is_export_retryable_1 = require_is_export_retryable();
|
|
240356
|
-
var types_1 =
|
|
240357
|
-
var version_1 =
|
|
238031
|
+
var types_1 = require_types5();
|
|
238032
|
+
var version_1 = require_version6();
|
|
240358
238033
|
var DEFAULT_USER_AGENT = `OTel-OTLP-Exporter-JavaScript/${version_1.VERSION}`;
|
|
240359
238034
|
function sendWithHttp(request, url3, headers, compression, userAgent, agent, data, onDone2, timeoutMillis) {
|
|
240360
238035
|
const parsedUrl = new URL(url3);
|
|
@@ -274447,7 +272122,7 @@ var effectify2 = effectify;
|
|
|
274447
272122
|
// node_modules/@effect/platform/dist/esm/internal/etag.js
|
|
274448
272123
|
var GeneratorTypeId = /* @__PURE__ */ Symbol.for("@effect/platform/Etag/Generator");
|
|
274449
272124
|
var tag2 = /* @__PURE__ */ GenericTag("@effect/platform/Etag/Generator");
|
|
274450
|
-
var
|
|
272125
|
+
var toString = (self2) => {
|
|
274451
272126
|
switch (self2._tag) {
|
|
274452
272127
|
case "Weak":
|
|
274453
272128
|
return `W/"${self2.value}"`;
|
|
@@ -274494,7 +272169,7 @@ var layerWeak = /* @__PURE__ */ succeed9(tag2, /* @__PURE__ */ tag2.of({
|
|
|
274494
272169
|
}));
|
|
274495
272170
|
|
|
274496
272171
|
// node_modules/@effect/platform/dist/esm/Etag.js
|
|
274497
|
-
var
|
|
272172
|
+
var toString2 = toString;
|
|
274498
272173
|
var Generator = tag2;
|
|
274499
272174
|
var layerWeak2 = layerWeak;
|
|
274500
272175
|
// node_modules/@effect/platform/dist/esm/FetchHttpClient.js
|
|
@@ -274904,7 +272579,7 @@ var makeUrl = (url2, params, hash2) => {
|
|
|
274904
272579
|
return left2(e);
|
|
274905
272580
|
}
|
|
274906
272581
|
};
|
|
274907
|
-
var
|
|
272582
|
+
var toString3 = (self2) => new URLSearchParams(self2).toString();
|
|
274908
272583
|
var baseUrl = () => {
|
|
274909
272584
|
if ("location" in globalThis && globalThis.location !== undefined && globalThis.location.origin !== undefined && globalThis.location.pathname !== undefined) {
|
|
274910
272585
|
return location.origin + location.pathname;
|
|
@@ -274932,7 +272607,7 @@ var schemaFromString = /* @__PURE__ */ transform2(String$, schemaFromSelf, {
|
|
|
274932
272607
|
return fromInput3(new URLSearchParams(fromA));
|
|
274933
272608
|
},
|
|
274934
272609
|
encode(toI) {
|
|
274935
|
-
return
|
|
272610
|
+
return toString3(toI);
|
|
274936
272611
|
}
|
|
274937
272612
|
});
|
|
274938
272613
|
var schemaRecord = (schema) => transform2(schemaFromSelf, schema, {
|
|
@@ -275116,11 +272791,11 @@ class Uint8ArrayImpl extends BodyBase {
|
|
|
275116
272791
|
return this.body.length;
|
|
275117
272792
|
}
|
|
275118
272793
|
toJSON() {
|
|
275119
|
-
const
|
|
272794
|
+
const toString4 = this.contentType.startsWith("text/") || this.contentType.endsWith("json");
|
|
275120
272795
|
return {
|
|
275121
272796
|
_id: "@effect/platform/HttpBody",
|
|
275122
272797
|
_tag: "Uint8Array",
|
|
275123
|
-
body:
|
|
272798
|
+
body: toString4 ? new TextDecoder().decode(this.body) : `Uint8Array(${this.body.length})`,
|
|
275124
272799
|
contentType: this.contentType,
|
|
275125
272800
|
contentLength: this.contentLength
|
|
275126
272801
|
};
|
|
@@ -275137,7 +272812,7 @@ var json = (body, contentType) => try_3({
|
|
|
275137
272812
|
error: error2
|
|
275138
272813
|
})
|
|
275139
272814
|
});
|
|
275140
|
-
var urlParams = (urlParams2, contentType) => text(
|
|
272815
|
+
var urlParams = (urlParams2, contentType) => text(toString3(urlParams2), contentType ?? "application/x-www-form-urlencoded");
|
|
275141
272816
|
var jsonSchema = (schema, options) => {
|
|
275142
272817
|
const encode5 = encode4(schema, options);
|
|
275143
272818
|
return (body, contentType) => flatMap10(mapError2(encode5(body), (error2) => HttpBodyError({
|
|
@@ -279773,7 +277448,7 @@ var make69 = (impl) => gen2(function* () {
|
|
|
279773
277448
|
}) => {
|
|
279774
277449
|
const start3 = Number(options3?.offset ?? 0);
|
|
279775
277450
|
const end5 = options3?.bytesToRead !== undefined ? start3 + Number(options3.bytesToRead) : undefined;
|
|
279776
|
-
const headers = set10(options3?.headers ? fromInput2(options3.headers) : empty34, "etag",
|
|
277451
|
+
const headers = set10(options3?.headers ? fromInput2(options3.headers) : empty34, "etag", toString2(etag));
|
|
279777
277452
|
if (info.mtime._tag === "Some") {
|
|
279778
277453
|
headers["last-modified"] = info.mtime.value.toUTCString();
|
|
279779
277454
|
}
|
|
@@ -279784,7 +277459,7 @@ var make69 = (impl) => gen2(function* () {
|
|
|
279784
277459
|
fileWebResponse(file4, options3) {
|
|
279785
277460
|
return map16(etagGen.fromFileWeb(file4), (etag) => {
|
|
279786
277461
|
const headers = merge10(options3?.headers ? fromInput2(options3.headers) : empty34, unsafeFromRecord({
|
|
279787
|
-
etag:
|
|
277462
|
+
etag: toString2(etag),
|
|
279788
277463
|
"last-modified": new Date(file4.lastModified).toUTCString()
|
|
279789
277464
|
}));
|
|
279790
277465
|
return impl.fileWebResponse(file4, options3?.status ?? 200, options3?.statusText, headers, options3);
|
|
@@ -357063,6 +354738,7 @@ var McpStartOAuthInputSchema = Struct({
|
|
|
357063
354738
|
});
|
|
357064
354739
|
var McpDiscoverInputSchema = Struct({
|
|
357065
354740
|
endpoint: String$,
|
|
354741
|
+
queryParams: optional(NullOr(StringMapSchema)),
|
|
357066
354742
|
probeAuth: optional(NullOr(SourceProbeAuthSchema))
|
|
357067
354743
|
});
|
|
357068
354744
|
var McpDiscoverResultSchema = NullOr(SourceDiscoveryResultSchema);
|
|
@@ -357234,6 +354910,9 @@ var createMcpCapability = (input) => {
|
|
|
357234
354910
|
auth: { kind: "none" },
|
|
357235
354911
|
interaction: {
|
|
357236
354912
|
...interaction,
|
|
354913
|
+
approval: {
|
|
354914
|
+
mayRequire: false
|
|
354915
|
+
},
|
|
357237
354916
|
resume: {
|
|
357238
354917
|
supported: mcpResumeSupport(input.operation.providerData.execution)
|
|
357239
354918
|
}
|
|
@@ -359802,7 +357481,7 @@ var mcpCatalogOperationFromManifestEntry = (input) => ({
|
|
|
359802
357481
|
toolId: input.entry.toolId,
|
|
359803
357482
|
title: input.entry.displayTitle ?? input.entry.title ?? input.entry.toolName,
|
|
359804
357483
|
description: input.entry.description ?? null,
|
|
359805
|
-
effect:
|
|
357484
|
+
effect: "read",
|
|
359806
357485
|
inputSchema: input.entry.inputSchema,
|
|
359807
357486
|
outputSchema: input.entry.outputSchema,
|
|
359808
357487
|
providerData: {
|
|
@@ -360164,7 +357843,10 @@ var mcpSdkPlugin = (options7) => defineExecutorSourcePlugin({
|
|
|
360164
357843
|
inputSchema: McpDiscoverInputSchema,
|
|
360165
357844
|
outputSchema: McpDiscoverResultSchema,
|
|
360166
357845
|
execute: ({ args: args2 }) => gen2(function* () {
|
|
360167
|
-
const normalizedUrl = normalizeSourceDiscoveryUrl(
|
|
357846
|
+
const normalizedUrl = normalizeSourceDiscoveryUrl(resolveMcpEndpoint({
|
|
357847
|
+
endpoint: args2.endpoint.trim(),
|
|
357848
|
+
queryParams: args2.queryParams
|
|
357849
|
+
}));
|
|
360168
357850
|
const discovered = yield* detectMcpSource({
|
|
360169
357851
|
normalizedUrl,
|
|
360170
357852
|
headers: probeHeadersFromAuth(args2.probeAuth ?? null)
|
|
@@ -360302,7 +357984,10 @@ var mcpSdkPlugin = (options7) => defineExecutorSourcePlugin({
|
|
|
360302
357984
|
const provideRuntime = (effect3) => provideExecutorRuntime(effect3, executor.runtime);
|
|
360303
357985
|
return {
|
|
360304
357986
|
discoverSource: (input) => provideRuntime(gen2(function* () {
|
|
360305
|
-
const normalizedUrl = normalizeSourceDiscoveryUrl(
|
|
357987
|
+
const normalizedUrl = normalizeSourceDiscoveryUrl(resolveMcpEndpoint({
|
|
357988
|
+
endpoint: input.endpoint.trim(),
|
|
357989
|
+
queryParams: input.queryParams
|
|
357990
|
+
}));
|
|
360306
357991
|
const discovered = yield* detectMcpSource({
|
|
360307
357992
|
normalizedUrl,
|
|
360308
357993
|
headers: probeHeadersFromAuth(input.probeAuth ?? null)
|
|
@@ -367286,7 +364971,12 @@ var onePasswordHttpPlugin = () => ({
|
|
|
367286
364971
|
});
|
|
367287
364972
|
|
|
367288
364973
|
// plugins/onepassword/sdk/index.ts
|
|
367289
|
-
|
|
364974
|
+
import {
|
|
364975
|
+
createClient,
|
|
364976
|
+
DesktopAuth,
|
|
364977
|
+
ItemCategory,
|
|
364978
|
+
ItemFieldType
|
|
364979
|
+
} from "@1password/sdk";
|
|
367290
364980
|
var ONEPASSWORD_REQUEST_TIMEOUT_MS = 15000;
|
|
367291
364981
|
var timedOutOnePasswordRequestError = (operation) => new Error(`1Password ${operation} timed out after ${Math.floor(ONEPASSWORD_REQUEST_TIMEOUT_MS / 1000)} seconds. Approve the request in the 1Password desktop app and try again.`);
|
|
367292
364982
|
var runOnePasswordRequest = (operation, effect3) => new Promise((resolve5, reject) => {
|
|
@@ -367308,9 +364998,9 @@ var resolveServiceAccountToken = (auth2) => gen2(function* () {
|
|
|
367308
364998
|
});
|
|
367309
364999
|
});
|
|
367310
365000
|
var makeClientFromAuth = (auth2) => gen2(function* () {
|
|
367311
|
-
const resolvedAuth = auth2.kind === "desktop-app" ? new
|
|
365001
|
+
const resolvedAuth = auth2.kind === "desktop-app" ? new DesktopAuth(auth2.accountName) : yield* resolveServiceAccountToken(auth2);
|
|
367312
365002
|
return yield* tryPromise2({
|
|
367313
|
-
try: () => runOnePasswordRequest("client setup", () =>
|
|
365003
|
+
try: () => runOnePasswordRequest("client setup", () => createClient({
|
|
367314
365004
|
auth: resolvedAuth,
|
|
367315
365005
|
integrationName: "Executor",
|
|
367316
365006
|
integrationVersion: "0.0.0"
|
|
@@ -367325,8 +365015,8 @@ var makeClient2 = (stored) => gen2(function* () {
|
|
|
367325
365015
|
return yield* makeClientFromAuth(stored.auth);
|
|
367326
365016
|
});
|
|
367327
365017
|
var importableFieldTypes = new Set([
|
|
367328
|
-
|
|
367329
|
-
|
|
365018
|
+
ItemFieldType.Concealed,
|
|
365019
|
+
ItemFieldType.Text
|
|
367330
365020
|
]);
|
|
367331
365021
|
var ONEPASSWORD_BROWSE_ITEM_LIMIT = 12;
|
|
367332
365022
|
var toImportableFields = (fields) => fields.filter((field) => importableFieldTypes.has(field.fieldType) && field.id.trim().length > 0 && field.value.trim().length > 0).map((field) => ({
|
|
@@ -367500,7 +365190,7 @@ var upsertCredentialField = (item, value7) => {
|
|
|
367500
365190
|
item.fields.push({
|
|
367501
365191
|
id: ONEPASSWORD_SECRET_FIELD_ID,
|
|
367502
365192
|
title: "Credential",
|
|
367503
|
-
fieldType:
|
|
365193
|
+
fieldType: ItemFieldType.Concealed,
|
|
367504
365194
|
value: value7
|
|
367505
365195
|
});
|
|
367506
365196
|
return item;
|
|
@@ -367552,14 +365242,14 @@ var onePasswordSdkPlugin = (input) => defineExecutorSecretStorePlugin({
|
|
|
367552
365242
|
createSecret: ({ stored, value: value7, name }) => flatMap10(makeClient2(stored), (client) => tryPromise2({
|
|
367553
365243
|
try: async () => {
|
|
367554
365244
|
const item = await runOnePasswordRequest("secret creation", () => client.items.create({
|
|
367555
|
-
category:
|
|
365245
|
+
category: ItemCategory.Password,
|
|
367556
365246
|
vaultId: stored.vaultId,
|
|
367557
365247
|
title: name?.trim() || "Executor Secret",
|
|
367558
365248
|
fields: [
|
|
367559
365249
|
{
|
|
367560
365250
|
id: ONEPASSWORD_SECRET_FIELD_ID,
|
|
367561
365251
|
title: "Credential",
|
|
367562
|
-
fieldType:
|
|
365252
|
+
fieldType: ItemFieldType.Concealed,
|
|
367563
365253
|
value: value7
|
|
367564
365254
|
}
|
|
367565
365255
|
]
|