@mobilerun/sdk 6.0.0 → 6.1.0
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/CHANGELOG.md +20 -0
- package/client.d.mts +2 -2
- package/client.d.mts.map +1 -1
- package/client.d.ts +2 -2
- package/client.d.ts.map +1 -1
- package/client.js.map +1 -1
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/assistant/conversations.d.mts +20 -0
- package/resources/assistant/conversations.d.mts.map +1 -1
- package/resources/assistant/conversations.d.ts +20 -0
- package/resources/assistant/conversations.d.ts.map +1 -1
- package/resources/connect/connect.d.mts +2 -2
- package/resources/connect/connect.d.mts.map +1 -1
- package/resources/connect/connect.d.ts +2 -2
- package/resources/connect/connect.d.ts.map +1 -1
- package/resources/connect/connect.js.map +1 -1
- package/resources/connect/connect.mjs.map +1 -1
- package/resources/connect/index.d.mts +1 -1
- package/resources/connect/index.d.mts.map +1 -1
- package/resources/connect/index.d.ts +1 -1
- package/resources/connect/index.d.ts.map +1 -1
- package/resources/connect/index.js.map +1 -1
- package/resources/connect/index.mjs.map +1 -1
- package/resources/connect/proxies.d.mts +22 -1
- package/resources/connect/proxies.d.mts.map +1 -1
- package/resources/connect/proxies.d.ts +22 -1
- package/resources/connect/proxies.d.ts.map +1 -1
- package/resources/connect/proxies.js +8 -0
- package/resources/connect/proxies.js.map +1 -1
- package/resources/connect/proxies.mjs +8 -0
- package/resources/connect/proxies.mjs.map +1 -1
- package/resources/credentials/credentials.d.mts +20 -0
- package/resources/credentials/credentials.d.mts.map +1 -1
- package/resources/credentials/credentials.d.ts +20 -0
- package/resources/credentials/credentials.d.ts.map +1 -1
- package/resources/credentials/credentials.js +4 -0
- package/resources/credentials/credentials.js.map +1 -1
- package/resources/credentials/credentials.mjs +4 -0
- package/resources/credentials/credentials.mjs.map +1 -1
- package/resources/credentials/index.d.mts +1 -0
- package/resources/credentials/index.d.mts.map +1 -1
- package/resources/credentials/index.d.ts +1 -0
- package/resources/credentials/index.d.ts.map +1 -1
- package/resources/credentials/index.js +5 -3
- package/resources/credentials/index.js.map +1 -1
- package/resources/credentials/index.mjs +1 -0
- package/resources/credentials/index.mjs.map +1 -1
- package/resources/credentials/onepassword/index.d.mts +3 -0
- package/resources/credentials/onepassword/index.d.mts.map +1 -0
- package/resources/credentials/onepassword/index.d.ts +3 -0
- package/resources/credentials/onepassword/index.d.ts.map +1 -0
- package/resources/credentials/onepassword/index.js +9 -0
- package/resources/credentials/onepassword/index.js.map +1 -0
- package/resources/credentials/onepassword/index.mjs +4 -0
- package/resources/credentials/onepassword/index.mjs.map +1 -0
- package/resources/credentials/onepassword/onepassword.d.mts +65 -0
- package/resources/credentials/onepassword/onepassword.d.mts.map +1 -0
- package/resources/credentials/onepassword/onepassword.d.ts +65 -0
- package/resources/credentials/onepassword/onepassword.d.ts.map +1 -0
- package/resources/credentials/onepassword/onepassword.js +35 -0
- package/resources/credentials/onepassword/onepassword.js.map +1 -0
- package/resources/credentials/onepassword/onepassword.mjs +30 -0
- package/resources/credentials/onepassword/onepassword.mjs.map +1 -0
- package/resources/credentials/onepassword/vaults/index.d.mts +3 -0
- package/resources/credentials/onepassword/vaults/index.d.mts.map +1 -0
- package/resources/credentials/onepassword/vaults/index.d.ts +3 -0
- package/resources/credentials/onepassword/vaults/index.d.ts.map +1 -0
- package/resources/credentials/onepassword/vaults/index.js +9 -0
- package/resources/credentials/onepassword/vaults/index.js.map +1 -0
- package/resources/credentials/onepassword/vaults/index.mjs +4 -0
- package/resources/credentials/onepassword/vaults/index.mjs.map +1 -0
- package/resources/credentials/onepassword/vaults/items/fields.d.mts +27 -0
- package/resources/credentials/onepassword/vaults/items/fields.d.mts.map +1 -0
- package/resources/credentials/onepassword/vaults/items/fields.d.ts +27 -0
- package/resources/credentials/onepassword/vaults/items/fields.d.ts.map +1 -0
- package/resources/credentials/onepassword/vaults/items/fields.js +17 -0
- package/resources/credentials/onepassword/vaults/items/fields.js.map +1 -0
- package/resources/credentials/onepassword/vaults/items/fields.mjs +13 -0
- package/resources/credentials/onepassword/vaults/items/fields.mjs.map +1 -0
- package/resources/credentials/onepassword/vaults/items/index.d.mts +3 -0
- package/resources/credentials/onepassword/vaults/items/index.d.mts.map +1 -0
- package/resources/credentials/onepassword/vaults/items/index.d.ts +3 -0
- package/resources/credentials/onepassword/vaults/items/index.d.ts.map +1 -0
- package/resources/credentials/onepassword/vaults/items/index.js +9 -0
- package/resources/credentials/onepassword/vaults/items/index.js.map +1 -0
- package/resources/credentials/onepassword/vaults/items/index.mjs +4 -0
- package/resources/credentials/onepassword/vaults/items/index.mjs.map +1 -0
- package/resources/credentials/onepassword/vaults/items/items.d.mts +34 -0
- package/resources/credentials/onepassword/vaults/items/items.d.mts.map +1 -0
- package/resources/credentials/onepassword/vaults/items/items.d.ts +34 -0
- package/resources/credentials/onepassword/vaults/items/items.d.ts.map +1 -0
- package/resources/credentials/onepassword/vaults/items/items.js +24 -0
- package/resources/credentials/onepassword/vaults/items/items.js.map +1 -0
- package/resources/credentials/onepassword/vaults/items/items.mjs +19 -0
- package/resources/credentials/onepassword/vaults/items/items.mjs.map +1 -0
- package/resources/credentials/onepassword/vaults/items.d.mts +2 -0
- package/resources/credentials/onepassword/vaults/items.d.mts.map +1 -0
- package/resources/credentials/onepassword/vaults/items.d.ts +2 -0
- package/resources/credentials/onepassword/vaults/items.d.ts.map +1 -0
- package/resources/credentials/onepassword/vaults/items.js +6 -0
- package/resources/credentials/onepassword/vaults/items.js.map +1 -0
- package/resources/credentials/onepassword/vaults/items.mjs +3 -0
- package/resources/credentials/onepassword/vaults/items.mjs.map +1 -0
- package/resources/credentials/onepassword/vaults/vaults.d.mts +10 -0
- package/resources/credentials/onepassword/vaults/vaults.d.mts.map +1 -0
- package/resources/credentials/onepassword/vaults/vaults.d.ts +10 -0
- package/resources/credentials/onepassword/vaults/vaults.d.ts.map +1 -0
- package/resources/credentials/onepassword/vaults/vaults.js +17 -0
- package/resources/credentials/onepassword/vaults/vaults.js.map +1 -0
- package/resources/credentials/onepassword/vaults/vaults.mjs +12 -0
- package/resources/credentials/onepassword/vaults/vaults.mjs.map +1 -0
- package/resources/credentials/onepassword/vaults.d.mts +2 -0
- package/resources/credentials/onepassword/vaults.d.mts.map +1 -0
- package/resources/credentials/onepassword/vaults.d.ts +2 -0
- package/resources/credentials/onepassword/vaults.d.ts.map +1 -0
- package/resources/credentials/onepassword/vaults.js +6 -0
- package/resources/credentials/onepassword/vaults.js.map +1 -0
- package/resources/credentials/onepassword/vaults.mjs +3 -0
- package/resources/credentials/onepassword/vaults.mjs.map +1 -0
- package/resources/credentials/onepassword.d.mts +2 -0
- package/resources/credentials/onepassword.d.mts.map +1 -0
- package/resources/credentials/onepassword.d.ts +2 -0
- package/resources/credentials/onepassword.d.ts.map +1 -0
- package/resources/credentials/onepassword.js +6 -0
- package/resources/credentials/onepassword.js.map +1 -0
- package/resources/credentials/onepassword.mjs +3 -0
- package/resources/credentials/onepassword.mjs.map +1 -0
- package/resources/credentials/packages/credentials/credentials.d.mts +32 -32
- package/resources/credentials/packages/credentials/credentials.d.mts.map +1 -1
- package/resources/credentials/packages/credentials/credentials.d.ts +32 -32
- package/resources/credentials/packages/credentials/credentials.d.ts.map +1 -1
- package/resources/credentials/packages/credentials/credentials.js +0 -8
- package/resources/credentials/packages/credentials/credentials.js.map +1 -1
- package/resources/credentials/packages/credentials/credentials.mjs +0 -8
- package/resources/credentials/packages/credentials/credentials.mjs.map +1 -1
- package/resources/credentials/packages/credentials/fields.d.mts +48 -0
- package/resources/credentials/packages/credentials/fields.d.mts.map +1 -1
- package/resources/credentials/packages/credentials/fields.d.ts +48 -0
- package/resources/credentials/packages/credentials/fields.d.ts.map +1 -1
- package/resources/credentials/packages/credentials/index.d.mts +1 -1
- package/resources/credentials/packages/credentials/index.d.mts.map +1 -1
- package/resources/credentials/packages/credentials/index.d.ts +1 -1
- package/resources/credentials/packages/credentials/index.d.ts.map +1 -1
- package/resources/credentials/packages/credentials/index.js.map +1 -1
- package/resources/credentials/packages/credentials/index.mjs.map +1 -1
- package/resources/credentials/packages/index.d.mts +2 -1
- package/resources/credentials/packages/index.d.mts.map +1 -1
- package/resources/credentials/packages/index.d.ts +2 -1
- package/resources/credentials/packages/index.d.ts.map +1 -1
- package/resources/credentials/packages/index.js +3 -1
- package/resources/credentials/packages/index.js.map +1 -1
- package/resources/credentials/packages/index.mjs +1 -0
- package/resources/credentials/packages/index.mjs.map +1 -1
- package/resources/credentials/packages/links.d.mts +65 -0
- package/resources/credentials/packages/links.d.mts.map +1 -0
- package/resources/credentials/packages/links.d.ts +65 -0
- package/resources/credentials/packages/links.d.ts.map +1 -0
- package/resources/credentials/packages/links.js +16 -0
- package/resources/credentials/packages/links.js.map +1 -0
- package/resources/credentials/packages/links.mjs +12 -0
- package/resources/credentials/packages/links.mjs.map +1 -0
- package/resources/credentials/packages/packages.d.mts +22 -2
- package/resources/credentials/packages/packages.d.mts.map +1 -1
- package/resources/credentials/packages/packages.d.ts +22 -2
- package/resources/credentials/packages/packages.d.ts.map +1 -1
- package/resources/credentials/packages/packages.js +4 -0
- package/resources/credentials/packages/packages.js.map +1 -1
- package/resources/credentials/packages/packages.mjs +4 -0
- package/resources/credentials/packages/packages.mjs.map +1 -1
- package/resources/devices/apps.d.mts +14 -12
- package/resources/devices/apps.d.mts.map +1 -1
- package/resources/devices/apps.d.ts +14 -12
- package/resources/devices/apps.d.ts.map +1 -1
- package/resources/devices/apps.js +12 -10
- package/resources/devices/apps.js.map +1 -1
- package/resources/devices/apps.mjs +12 -10
- package/resources/devices/apps.mjs.map +1 -1
- package/resources/devices/devices.d.mts +62 -32
- package/resources/devices/devices.d.mts.map +1 -1
- package/resources/devices/devices.d.ts +62 -32
- package/resources/devices/devices.d.ts.map +1 -1
- package/resources/devices/devices.js +25 -17
- package/resources/devices/devices.js.map +1 -1
- package/resources/devices/devices.mjs +25 -17
- package/resources/devices/devices.mjs.map +1 -1
- package/resources/devices/index.d.mts +1 -2
- package/resources/devices/index.d.mts.map +1 -1
- package/resources/devices/index.d.ts +1 -2
- package/resources/devices/index.d.ts.map +1 -1
- package/resources/devices/index.js +1 -3
- package/resources/devices/index.js.map +1 -1
- package/resources/devices/index.mjs +0 -1
- package/resources/devices/index.mjs.map +1 -1
- package/resources/devices/keyboard.d.mts +1 -1
- package/resources/devices/keyboard.d.ts +1 -1
- package/resources/devices/language.d.mts +6 -4
- package/resources/devices/language.d.mts.map +1 -1
- package/resources/devices/language.d.ts +6 -4
- package/resources/devices/language.d.ts.map +1 -1
- package/resources/devices/language.js +3 -2
- package/resources/devices/language.js.map +1 -1
- package/resources/devices/language.mjs +3 -2
- package/resources/devices/language.mjs.map +1 -1
- package/resources/devices/state.d.mts +1 -0
- package/resources/devices/state.d.mts.map +1 -1
- package/resources/devices/state.d.ts +1 -0
- package/resources/devices/state.d.ts.map +1 -1
- package/resources/index.d.mts +1 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/mailboxes/messages.d.mts +13 -0
- package/resources/mailboxes/messages.d.mts.map +1 -1
- package/resources/mailboxes/messages.d.ts +13 -0
- package/resources/mailboxes/messages.d.ts.map +1 -1
- package/resources/mailboxes/messages.js +2 -2
- package/resources/mailboxes/messages.js.map +1 -1
- package/resources/mailboxes/messages.mjs +2 -2
- package/resources/mailboxes/messages.mjs.map +1 -1
- package/resources/messages/conversations.d.mts +6 -0
- package/resources/messages/conversations.d.mts.map +1 -1
- package/resources/messages/conversations.d.ts +6 -0
- package/resources/messages/conversations.d.ts.map +1 -1
- package/resources/messages/messages.d.mts +28 -0
- package/resources/messages/messages.d.mts.map +1 -1
- package/resources/messages/messages.d.ts +28 -0
- package/resources/messages/messages.d.ts.map +1 -1
- package/resources/messages/messages.js.map +1 -1
- package/resources/messages/messages.mjs.map +1 -1
- package/resources/numbers/messages.d.mts +27 -1
- package/resources/numbers/messages.d.mts.map +1 -1
- package/resources/numbers/messages.d.ts +27 -1
- package/resources/numbers/messages.d.ts.map +1 -1
- package/resources/numbers/numbers.d.mts +108 -0
- package/resources/numbers/numbers.d.mts.map +1 -1
- package/resources/numbers/numbers.d.ts +108 -0
- package/resources/numbers/numbers.d.ts.map +1 -1
- package/resources/numbers/numbers.js.map +1 -1
- package/resources/numbers/numbers.mjs.map +1 -1
- package/resources/tasks/tasks.d.mts +6 -2
- package/resources/tasks/tasks.d.mts.map +1 -1
- package/resources/tasks/tasks.d.ts +6 -2
- package/resources/tasks/tasks.d.ts.map +1 -1
- package/resources/tasks/tasks.js.map +1 -1
- package/resources/tasks/tasks.mjs.map +1 -1
- package/resources/workflows/events.d.mts +1 -0
- package/resources/workflows/events.d.mts.map +1 -1
- package/resources/workflows/events.d.ts +1 -0
- package/resources/workflows/events.d.ts.map +1 -1
- package/resources/workflows/executions/executions.d.mts +10 -0
- package/resources/workflows/executions/executions.d.mts.map +1 -1
- package/resources/workflows/executions/executions.d.ts +10 -0
- package/resources/workflows/executions/executions.d.ts.map +1 -1
- package/resources/workflows/executions/executions.js.map +1 -1
- package/resources/workflows/executions/executions.mjs.map +1 -1
- package/resources/workflows/flows/flows.d.mts +31 -11
- package/resources/workflows/flows/flows.d.mts.map +1 -1
- package/resources/workflows/flows/flows.d.ts +31 -11
- package/resources/workflows/flows/flows.d.ts.map +1 -1
- package/resources/workflows/flows/flows.js +11 -10
- package/resources/workflows/flows/flows.js.map +1 -1
- package/resources/workflows/flows/flows.mjs +11 -10
- package/resources/workflows/flows/flows.mjs.map +1 -1
- package/resources/workflows/flows/index.d.mts +1 -1
- package/resources/workflows/flows/index.d.mts.map +1 -1
- package/resources/workflows/flows/index.d.ts +1 -1
- package/resources/workflows/flows/index.d.ts.map +1 -1
- package/resources/workflows/flows/index.js.map +1 -1
- package/resources/workflows/flows/index.mjs.map +1 -1
- package/resources/workflows/index.d.mts +1 -1
- package/resources/workflows/index.d.mts.map +1 -1
- package/resources/workflows/index.d.ts +1 -1
- package/resources/workflows/index.d.ts.map +1 -1
- package/resources/workflows/index.js.map +1 -1
- package/resources/workflows/index.mjs.map +1 -1
- package/resources/workflows/workflows.d.mts +2 -2
- package/resources/workflows/workflows.d.mts.map +1 -1
- package/resources/workflows/workflows.d.ts +2 -2
- package/resources/workflows/workflows.d.ts.map +1 -1
- package/resources/workflows/workflows.js.map +1 -1
- package/resources/workflows/workflows.mjs.map +1 -1
- package/src/client.ts +2 -0
- package/src/resources/assistant/conversations.ts +28 -0
- package/src/resources/connect/connect.ts +2 -0
- package/src/resources/connect/index.ts +1 -0
- package/src/resources/connect/proxies.ts +27 -0
- package/src/resources/credentials/credentials.ts +51 -0
- package/src/resources/credentials/index.ts +7 -0
- package/src/resources/credentials/onepassword/index.ts +10 -0
- package/src/resources/credentials/onepassword/onepassword.ts +101 -0
- package/src/resources/credentials/onepassword/vaults/index.ts +4 -0
- package/src/resources/credentials/onepassword/vaults/items/fields.ts +40 -0
- package/src/resources/credentials/onepassword/vaults/items/index.ts +4 -0
- package/src/resources/credentials/onepassword/vaults/items/items.ts +55 -0
- package/src/resources/credentials/onepassword/vaults/items.ts +3 -0
- package/src/resources/credentials/onepassword/vaults/vaults.ts +15 -0
- package/src/resources/credentials/onepassword/vaults.ts +3 -0
- package/src/resources/credentials/onepassword.ts +3 -0
- package/src/resources/credentials/packages/credentials/credentials.ts +58 -55
- package/src/resources/credentials/packages/credentials/fields.ts +99 -0
- package/src/resources/credentials/packages/credentials/index.ts +0 -2
- package/src/resources/credentials/packages/index.ts +1 -2
- package/src/resources/credentials/packages/links.ts +122 -0
- package/src/resources/credentials/packages/packages.ts +43 -4
- package/src/resources/devices/apps.ts +14 -12
- package/src/resources/devices/devices.ts +77 -59
- package/src/resources/devices/index.ts +1 -9
- package/src/resources/devices/keyboard.ts +1 -1
- package/src/resources/devices/language.ts +6 -4
- package/src/resources/devices/state.ts +2 -0
- package/src/resources/index.ts +1 -0
- package/src/resources/mailboxes/messages.ts +17 -2
- package/src/resources/messages/conversations.ts +6 -0
- package/src/resources/messages/messages.ts +32 -0
- package/src/resources/numbers/messages.ts +31 -1
- package/src/resources/numbers/numbers.ts +124 -0
- package/src/resources/tasks/tasks.ts +6 -2
- package/src/resources/workflows/events.ts +2 -0
- package/src/resources/workflows/executions/executions.ts +12 -0
- package/src/resources/workflows/flows/flows.ts +44 -11
- package/src/resources/workflows/flows/index.ts +1 -0
- package/src/resources/workflows/index.ts +1 -0
- package/src/resources/workflows/workflows.ts +2 -0
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
- package/resources/devices/media-sessions.d.mts +0 -96
- package/resources/devices/media-sessions.d.mts.map +0 -1
- package/resources/devices/media-sessions.d.ts +0 -96
- package/resources/devices/media-sessions.d.ts.map +0 -1
- package/resources/devices/media-sessions.js +0 -50
- package/resources/devices/media-sessions.js.map +0 -1
- package/resources/devices/media-sessions.mjs +0 -46
- package/resources/devices/media-sessions.mjs.map +0 -1
- package/src/resources/devices/media-sessions.ts +0 -168
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflows.mjs","sourceRoot":"","sources":["../../src/resources/workflows/workflows.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,gBAAgB,6BAAyB;AACrD,OAAO,EACL,aAAa,GAId,6BAAyB;AAC1B,OAAO,KAAK,SAAS,qBAAiB;AACtC,OAAO,EAKL,MAAM,GACP,qBAAiB;AAClB,OAAO,KAAK,YAAY,wBAAoB;AAC5C,OAAO,EAAwB,SAAS,EAAE,wBAAoB;AAC9D,OAAO,KAAK,WAAW,uBAAmB;AAC1C,OAAO,EAWL,QAAQ,GACT,uBAAmB;AACpB,OAAO,KAAK,UAAU,8BAA0B;AAChD,OAAO,EASL,OAAO,GACR,8BAA0B;AAC3B,OAAO,KAAK,aAAa,oCAAgC;AACzD,OAAO,EAOL,UAAU,GACX,oCAAgC;AACjC,OAAO,KAAK,QAAQ,0BAAsB;AAC1C,OAAO,
|
|
1
|
+
{"version":3,"file":"workflows.mjs","sourceRoot":"","sources":["../../src/resources/workflows/workflows.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,gBAAgB,6BAAyB;AACrD,OAAO,EACL,aAAa,GAId,6BAAyB;AAC1B,OAAO,KAAK,SAAS,qBAAiB;AACtC,OAAO,EAKL,MAAM,GACP,qBAAiB;AAClB,OAAO,KAAK,YAAY,wBAAoB;AAC5C,OAAO,EAAwB,SAAS,EAAE,wBAAoB;AAC9D,OAAO,KAAK,WAAW,uBAAmB;AAC1C,OAAO,EAWL,QAAQ,GACT,uBAAmB;AACpB,OAAO,KAAK,UAAU,8BAA0B;AAChD,OAAO,EASL,OAAO,GACR,8BAA0B;AAC3B,OAAO,KAAK,aAAa,oCAAgC;AACzD,OAAO,EAOL,UAAU,GACX,oCAAgC;AACjC,OAAO,KAAK,QAAQ,0BAAsB;AAC1C,OAAO,EA4BL,KAAK,GACN,0BAAsB;AAEvB,MAAM,OAAO,SAAU,SAAQ,WAAW;IAA1C;;QACE,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxE,kBAAa,GAAmC,IAAI,gBAAgB,CAAC,aAAa,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACjG,YAAO,GAAuB,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACnE,UAAK,GAAmB,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACzD,WAAM,GAAqB,IAAI,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC9D,eAAU,GAA6B,IAAI,aAAa,CAAC,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAClF,cAAS,GAA2B,IAAI,YAAY,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC/E,CAAC;CAAA;AAED,SAAS,CAAC,QAAQ,GAAG,QAAQ,CAAC;AAC9B,SAAS,CAAC,aAAa,GAAG,aAAa,CAAC;AACxC,SAAS,CAAC,OAAO,GAAG,OAAO,CAAC;AAC5B,SAAS,CAAC,KAAK,GAAG,KAAK,CAAC;AACxB,SAAS,CAAC,MAAM,GAAG,MAAM,CAAC;AAC1B,SAAS,CAAC,UAAU,GAAG,UAAU,CAAC;AAClC,SAAS,CAAC,SAAS,GAAG,SAAS,CAAC"}
|
package/src/client.ts
CHANGED
|
@@ -69,6 +69,7 @@ import {
|
|
|
69
69
|
DeviceFingerprintResponse,
|
|
70
70
|
DeviceListParams,
|
|
71
71
|
DeviceListResponse,
|
|
72
|
+
DeviceResetParams,
|
|
72
73
|
DeviceRetrieveCapabilitiesResponse,
|
|
73
74
|
DeviceRetrieveResponse,
|
|
74
75
|
DeviceSetNameParams,
|
|
@@ -940,6 +941,7 @@ export declare namespace Mobilerun {
|
|
|
940
941
|
type DeviceCreateParams as DeviceCreateParams,
|
|
941
942
|
type DeviceListParams as DeviceListParams,
|
|
942
943
|
type DeviceFingerprintParams as DeviceFingerprintParams,
|
|
944
|
+
type DeviceResetParams as DeviceResetParams,
|
|
943
945
|
type DeviceSetNameParams as DeviceSetNameParams,
|
|
944
946
|
type DeviceSummaryParams as DeviceSummaryParams,
|
|
945
947
|
type DeviceTerminateParams as DeviceTerminateParams,
|
|
@@ -370,6 +370,8 @@ export namespace ConversationHistoryResponse {
|
|
|
370
370
|
|
|
371
371
|
synthetic?: boolean;
|
|
372
372
|
|
|
373
|
+
turnId?: string | null;
|
|
374
|
+
|
|
373
375
|
/**
|
|
374
376
|
* @deprecated Deprecated: use createdBy.
|
|
375
377
|
*/
|
|
@@ -390,8 +392,32 @@ export namespace ConversationHistoryResponse {
|
|
|
390
392
|
|
|
391
393
|
agentSessionId?: string;
|
|
392
394
|
|
|
395
|
+
/**
|
|
396
|
+
* Steer user rows appear directly above the collapsed assistant group of their
|
|
397
|
+
* turn, matching live cloud ordering.
|
|
398
|
+
*/
|
|
399
|
+
steer?: Metadata.Steer;
|
|
400
|
+
|
|
393
401
|
turnAnchorMessageId?: string;
|
|
394
402
|
}
|
|
403
|
+
|
|
404
|
+
export namespace Metadata {
|
|
405
|
+
/**
|
|
406
|
+
* Steer user rows appear directly above the collapsed assistant group of their
|
|
407
|
+
* turn, matching live cloud ordering.
|
|
408
|
+
*/
|
|
409
|
+
export interface Steer {
|
|
410
|
+
agentMessageId: string;
|
|
411
|
+
|
|
412
|
+
state: 'accepted' | 'consumed' | 'dropped';
|
|
413
|
+
|
|
414
|
+
targetRole: 'root' | 'worker';
|
|
415
|
+
|
|
416
|
+
consumedAt?: string;
|
|
417
|
+
|
|
418
|
+
dropReason?: 'turn_closed' | 'aborted';
|
|
419
|
+
}
|
|
420
|
+
}
|
|
395
421
|
}
|
|
396
422
|
|
|
397
423
|
export interface TurnState {
|
|
@@ -511,6 +537,8 @@ export interface ConversationSendParams {
|
|
|
511
537
|
sessionId: string;
|
|
512
538
|
|
|
513
539
|
agent?: string;
|
|
540
|
+
|
|
541
|
+
model?: string;
|
|
514
542
|
}
|
|
515
543
|
|
|
516
544
|
export interface ConversationStreamParams {
|
|
@@ -8,6 +8,7 @@ import {
|
|
|
8
8
|
Proxies,
|
|
9
9
|
ProxyBuyParams,
|
|
10
10
|
ProxyBuyResponse,
|
|
11
|
+
ProxyCheckoutResponse,
|
|
11
12
|
ProxyEnsureHealthyResponse,
|
|
12
13
|
ProxyListConnectionsParams,
|
|
13
14
|
ProxyListConnectionsResponse,
|
|
@@ -55,6 +56,7 @@ export declare namespace Connect {
|
|
|
55
56
|
type ProxyUpdateResponse as ProxyUpdateResponse,
|
|
56
57
|
type ProxyListResponse as ProxyListResponse,
|
|
57
58
|
type ProxyBuyResponse as ProxyBuyResponse,
|
|
59
|
+
type ProxyCheckoutResponse as ProxyCheckoutResponse,
|
|
58
60
|
type ProxyEnsureHealthyResponse as ProxyEnsureHealthyResponse,
|
|
59
61
|
type ProxyListConnectionsResponse as ProxyListConnectionsResponse,
|
|
60
62
|
type ProxyPingResponse as ProxyPingResponse,
|
|
@@ -53,6 +53,15 @@ export class Proxies extends APIResource {
|
|
|
53
53
|
});
|
|
54
54
|
}
|
|
55
55
|
|
|
56
|
+
/**
|
|
57
|
+
* Refreshes a pending dedicated proxy's checkout on explicit payment intent.
|
|
58
|
+
* Already-paid proxies (provisioning, active, or cancelling) return their current
|
|
59
|
+
* status without a payment URL. An expired checkout requires a new purchase.
|
|
60
|
+
*/
|
|
61
|
+
checkout(id: string, options?: RequestOptions): APIPromise<ProxyCheckoutResponse> {
|
|
62
|
+
return this._client.post(path`/connect/proxies/${id}/checkout`, options);
|
|
63
|
+
}
|
|
64
|
+
|
|
56
65
|
/**
|
|
57
66
|
* Checks right now that the proxy's upstream accepts a connection through its
|
|
58
67
|
* current session. If the upstream refuses the session and the proxy is a rotating
|
|
@@ -321,6 +330,23 @@ export interface ProxyBuyResponse {
|
|
|
321
330
|
paymentUrl?: string | null;
|
|
322
331
|
}
|
|
323
332
|
|
|
333
|
+
export interface ProxyCheckoutResponse {
|
|
334
|
+
/**
|
|
335
|
+
* Lifecycle of a proxy. A freshly created proxy is `checking` while its billing
|
|
336
|
+
* identity is being resolved — clients should poll until a `paymentUrl` or a later
|
|
337
|
+
* status appears — then `provisioning` — or `pending_payment` until the customer
|
|
338
|
+
* completes checkout — and becomes `active` once its upstream is assigned.
|
|
339
|
+
* `cancelling` retains full access through the paid period; when the subscription
|
|
340
|
+
* expires the proxy is `ended`. `error` marks a failed provisioning attempt.
|
|
341
|
+
*/
|
|
342
|
+
status: 'checking' | 'pending_payment' | 'provisioning' | 'active' | 'cancelling' | 'ended' | 'error';
|
|
343
|
+
|
|
344
|
+
/**
|
|
345
|
+
* Payable checkout URL; omitted after payment.
|
|
346
|
+
*/
|
|
347
|
+
paymentUrl?: string | null;
|
|
348
|
+
}
|
|
349
|
+
|
|
324
350
|
/**
|
|
325
351
|
* The outcome of an ensure-healthy check.
|
|
326
352
|
*/
|
|
@@ -717,6 +743,7 @@ export declare namespace Proxies {
|
|
|
717
743
|
type ProxyUpdateResponse as ProxyUpdateResponse,
|
|
718
744
|
type ProxyListResponse as ProxyListResponse,
|
|
719
745
|
type ProxyBuyResponse as ProxyBuyResponse,
|
|
746
|
+
type ProxyCheckoutResponse as ProxyCheckoutResponse,
|
|
720
747
|
type ProxyEnsureHealthyResponse as ProxyEnsureHealthyResponse,
|
|
721
748
|
type ProxyListConnectionsResponse as ProxyListConnectionsResponse,
|
|
722
749
|
type ProxyPingResponse as ProxyPingResponse,
|
|
@@ -2,6 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../core/resource';
|
|
4
4
|
import * as Shared from '../shared';
|
|
5
|
+
import * as OnepasswordAPI from './onepassword/onepassword';
|
|
6
|
+
import {
|
|
7
|
+
Onepassword,
|
|
8
|
+
OnepasswordConnectParams,
|
|
9
|
+
OnepasswordConnectResponse,
|
|
10
|
+
OnepasswordDisconnectResponse,
|
|
11
|
+
OnepasswordRetrieveResponse,
|
|
12
|
+
} from './onepassword/onepassword';
|
|
5
13
|
import * as PackagesAPI from './packages/packages';
|
|
6
14
|
import {
|
|
7
15
|
PackageCreateParams,
|
|
@@ -15,6 +23,7 @@ import { RequestOptions } from '../../internal/request-options';
|
|
|
15
23
|
|
|
16
24
|
export class Credentials extends APIResource {
|
|
17
25
|
packages: PackagesAPI.Packages = new PackagesAPI.Packages(this._client);
|
|
26
|
+
onepassword: OnepasswordAPI.Onepassword = new OnepasswordAPI.Onepassword(this._client);
|
|
18
27
|
|
|
19
28
|
/**
|
|
20
29
|
* Returns a paginated list of all credentials belonging to the authenticated user
|
|
@@ -54,6 +63,10 @@ export namespace CredentialListResponse {
|
|
|
54
63
|
* for credentials created before rollout.
|
|
55
64
|
*/
|
|
56
65
|
userId: string | null;
|
|
66
|
+
|
|
67
|
+
link?: Item.Link;
|
|
68
|
+
|
|
69
|
+
source?: 'mobilerun' | 'onepassword';
|
|
57
70
|
}
|
|
58
71
|
|
|
59
72
|
export namespace Item {
|
|
@@ -69,6 +82,35 @@ export namespace CredentialListResponse {
|
|
|
69
82
|
|
|
70
83
|
value: string;
|
|
71
84
|
}
|
|
85
|
+
|
|
86
|
+
export interface Link {
|
|
87
|
+
fieldMap: Array<Link.FieldMap>;
|
|
88
|
+
|
|
89
|
+
itemId: string;
|
|
90
|
+
|
|
91
|
+
itemTitle: string;
|
|
92
|
+
|
|
93
|
+
provider: 'onepassword';
|
|
94
|
+
|
|
95
|
+
vaultId: string;
|
|
96
|
+
|
|
97
|
+
vaultName: string;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
export namespace Link {
|
|
101
|
+
export interface FieldMap {
|
|
102
|
+
fieldId: string;
|
|
103
|
+
|
|
104
|
+
fieldType:
|
|
105
|
+
| 'email'
|
|
106
|
+
| 'username'
|
|
107
|
+
| 'password'
|
|
108
|
+
| 'api_token'
|
|
109
|
+
| 'phone_number'
|
|
110
|
+
| 'two_factor_secret'
|
|
111
|
+
| 'backup_codes';
|
|
112
|
+
}
|
|
113
|
+
}
|
|
72
114
|
}
|
|
73
115
|
}
|
|
74
116
|
|
|
@@ -79,6 +121,7 @@ export interface CredentialListParams {
|
|
|
79
121
|
}
|
|
80
122
|
|
|
81
123
|
Credentials.Packages = Packages;
|
|
124
|
+
Credentials.Onepassword = Onepassword;
|
|
82
125
|
|
|
83
126
|
export declare namespace Credentials {
|
|
84
127
|
export {
|
|
@@ -93,4 +136,12 @@ export declare namespace Credentials {
|
|
|
93
136
|
type PackageListAllResponse as PackageListAllResponse,
|
|
94
137
|
type PackageCreateParams as PackageCreateParams,
|
|
95
138
|
};
|
|
139
|
+
|
|
140
|
+
export {
|
|
141
|
+
Onepassword as Onepassword,
|
|
142
|
+
type OnepasswordRetrieveResponse as OnepasswordRetrieveResponse,
|
|
143
|
+
type OnepasswordConnectResponse as OnepasswordConnectResponse,
|
|
144
|
+
type OnepasswordDisconnectResponse as OnepasswordDisconnectResponse,
|
|
145
|
+
type OnepasswordConnectParams as OnepasswordConnectParams,
|
|
146
|
+
};
|
|
96
147
|
}
|
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
export { Credentials, type CredentialListResponse, type CredentialListParams } from './credentials';
|
|
4
|
+
export {
|
|
5
|
+
Onepassword,
|
|
6
|
+
type OnepasswordRetrieveResponse,
|
|
7
|
+
type OnepasswordConnectResponse,
|
|
8
|
+
type OnepasswordDisconnectResponse,
|
|
9
|
+
type OnepasswordConnectParams,
|
|
10
|
+
} from './onepassword/index';
|
|
4
11
|
export {
|
|
5
12
|
Packages,
|
|
6
13
|
type PackageCreateResponse,
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
export {
|
|
4
|
+
Onepassword,
|
|
5
|
+
type OnepasswordRetrieveResponse,
|
|
6
|
+
type OnepasswordConnectResponse,
|
|
7
|
+
type OnepasswordDisconnectResponse,
|
|
8
|
+
type OnepasswordConnectParams,
|
|
9
|
+
} from './onepassword';
|
|
10
|
+
export { Vaults } from './vaults/index';
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../../core/resource';
|
|
4
|
+
import * as VaultsAPI from './vaults/vaults';
|
|
5
|
+
import { Vaults } from './vaults/vaults';
|
|
6
|
+
import { APIPromise } from '../../../core/api-promise';
|
|
7
|
+
import { RequestOptions } from '../../../internal/request-options';
|
|
8
|
+
|
|
9
|
+
export class Onepassword extends APIResource {
|
|
10
|
+
vaults: VaultsAPI.Vaults = new VaultsAPI.Vaults(this._client);
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Get 1Password connection
|
|
14
|
+
*/
|
|
15
|
+
retrieve(options?: RequestOptions): APIPromise<OnepasswordRetrieveResponse> {
|
|
16
|
+
return this._client.get('/credentials/onepassword', options);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Connect a 1Password service account
|
|
21
|
+
*/
|
|
22
|
+
connect(body: OnepasswordConnectParams, options?: RequestOptions): APIPromise<OnepasswordConnectResponse> {
|
|
23
|
+
return this._client.put('/credentials/onepassword', { body, ...options });
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Disconnect 1Password
|
|
28
|
+
*/
|
|
29
|
+
disconnect(options?: RequestOptions): APIPromise<OnepasswordDisconnectResponse> {
|
|
30
|
+
return this._client.delete('/credentials/onepassword', options);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export interface OnepasswordRetrieveResponse {
|
|
35
|
+
data: OnepasswordRetrieveResponse.Data;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export namespace OnepasswordRetrieveResponse {
|
|
39
|
+
export interface Data {
|
|
40
|
+
connected: boolean;
|
|
41
|
+
|
|
42
|
+
connectedAt?: string;
|
|
43
|
+
|
|
44
|
+
connectedBy?: string;
|
|
45
|
+
|
|
46
|
+
vaults?: Array<Data.Vault>;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export namespace Data {
|
|
50
|
+
export interface Vault {
|
|
51
|
+
id: string;
|
|
52
|
+
|
|
53
|
+
title: string;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export interface OnepasswordConnectResponse {
|
|
59
|
+
data: OnepasswordConnectResponse.Data;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export namespace OnepasswordConnectResponse {
|
|
63
|
+
export interface Data {
|
|
64
|
+
connected: boolean;
|
|
65
|
+
|
|
66
|
+
connectedAt?: string;
|
|
67
|
+
|
|
68
|
+
connectedBy?: string;
|
|
69
|
+
|
|
70
|
+
vaults?: Array<Data.Vault>;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export namespace Data {
|
|
74
|
+
export interface Vault {
|
|
75
|
+
id: string;
|
|
76
|
+
|
|
77
|
+
title: string;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export interface OnepasswordDisconnectResponse {
|
|
83
|
+
message: string;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export interface OnepasswordConnectParams {
|
|
87
|
+
serviceAccountToken: string;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
Onepassword.Vaults = Vaults;
|
|
91
|
+
|
|
92
|
+
export declare namespace Onepassword {
|
|
93
|
+
export {
|
|
94
|
+
type OnepasswordRetrieveResponse as OnepasswordRetrieveResponse,
|
|
95
|
+
type OnepasswordConnectResponse as OnepasswordConnectResponse,
|
|
96
|
+
type OnepasswordDisconnectResponse as OnepasswordDisconnectResponse,
|
|
97
|
+
type OnepasswordConnectParams as OnepasswordConnectParams,
|
|
98
|
+
};
|
|
99
|
+
|
|
100
|
+
export { Vaults as Vaults };
|
|
101
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../../../../core/resource';
|
|
4
|
+
import { APIPromise } from '../../../../../core/api-promise';
|
|
5
|
+
import { RequestOptions } from '../../../../../internal/request-options';
|
|
6
|
+
import { path } from '../../../../../internal/utils/path';
|
|
7
|
+
|
|
8
|
+
export class Fields extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* List 1Password field metadata
|
|
11
|
+
*/
|
|
12
|
+
list(itemID: string, params: FieldListParams, options?: RequestOptions): APIPromise<FieldListResponse> {
|
|
13
|
+
const { vaultId } = params;
|
|
14
|
+
return this._client.get(path`/credentials/onepassword/vaults/${vaultId}/items/${itemID}/fields`, options);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export interface FieldListResponse {
|
|
19
|
+
data: Array<FieldListResponse.Data>;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export namespace FieldListResponse {
|
|
23
|
+
export interface Data {
|
|
24
|
+
id: string;
|
|
25
|
+
|
|
26
|
+
fieldType: string;
|
|
27
|
+
|
|
28
|
+
title: string;
|
|
29
|
+
|
|
30
|
+
sectionId?: string;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export interface FieldListParams {
|
|
35
|
+
vaultId: string;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export declare namespace Fields {
|
|
39
|
+
export { type FieldListResponse as FieldListResponse, type FieldListParams as FieldListParams };
|
|
40
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../../../../core/resource';
|
|
4
|
+
import * as FieldsAPI from './fields';
|
|
5
|
+
import { FieldListParams, FieldListResponse, Fields } from './fields';
|
|
6
|
+
import { APIPromise } from '../../../../../core/api-promise';
|
|
7
|
+
import { RequestOptions } from '../../../../../internal/request-options';
|
|
8
|
+
import { path } from '../../../../../internal/utils/path';
|
|
9
|
+
|
|
10
|
+
export class Items extends APIResource {
|
|
11
|
+
fields: FieldsAPI.Fields = new FieldsAPI.Fields(this._client);
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* List 1Password item metadata
|
|
15
|
+
*/
|
|
16
|
+
list(vaultID: string, options?: RequestOptions): APIPromise<ItemListResponse> {
|
|
17
|
+
return this._client.get(path`/credentials/onepassword/vaults/${vaultID}/items`, options);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export interface ItemListResponse {
|
|
22
|
+
data: Array<ItemListResponse.Data>;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export namespace ItemListResponse {
|
|
26
|
+
export interface Data {
|
|
27
|
+
id: string;
|
|
28
|
+
|
|
29
|
+
category: string;
|
|
30
|
+
|
|
31
|
+
title: string;
|
|
32
|
+
|
|
33
|
+
websites: Array<Data.Website>;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export namespace Data {
|
|
37
|
+
export interface Website {
|
|
38
|
+
label: string;
|
|
39
|
+
|
|
40
|
+
url: string;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
Items.Fields = Fields;
|
|
46
|
+
|
|
47
|
+
export declare namespace Items {
|
|
48
|
+
export { type ItemListResponse as ItemListResponse };
|
|
49
|
+
|
|
50
|
+
export {
|
|
51
|
+
Fields as Fields,
|
|
52
|
+
type FieldListResponse as FieldListResponse,
|
|
53
|
+
type FieldListParams as FieldListParams,
|
|
54
|
+
};
|
|
55
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../../../core/resource';
|
|
4
|
+
import * as ItemsAPI from './items/items';
|
|
5
|
+
import { ItemListResponse, Items } from './items/items';
|
|
6
|
+
|
|
7
|
+
export class Vaults extends APIResource {
|
|
8
|
+
items: ItemsAPI.Items = new ItemsAPI.Items(this._client);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
Vaults.Items = Items;
|
|
12
|
+
|
|
13
|
+
export declare namespace Vaults {
|
|
14
|
+
export { Items as Items, type ItemListResponse as ItemListResponse };
|
|
15
|
+
}
|
|
@@ -31,22 +31,6 @@ export class Credentials extends APIResource {
|
|
|
31
31
|
return this._client.post(path`/credentials/packages/${packageName}`, { body, ...options });
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
-
/**
|
|
35
|
-
* Fetches a single credential by `packageName` and `credentialName`, including all
|
|
36
|
-
* of its stored fields. Returns not found if no matching credential exists.
|
|
37
|
-
*/
|
|
38
|
-
retrieve(
|
|
39
|
-
credentialName: string,
|
|
40
|
-
params: CredentialRetrieveParams,
|
|
41
|
-
options?: RequestOptions,
|
|
42
|
-
): APIPromise<CredentialRetrieveResponse> {
|
|
43
|
-
const { packageName } = params;
|
|
44
|
-
return this._client.get(
|
|
45
|
-
path`/credentials/packages/${packageName}/credentials/${credentialName}`,
|
|
46
|
-
options,
|
|
47
|
-
);
|
|
48
|
-
}
|
|
49
|
-
|
|
50
34
|
/**
|
|
51
35
|
* Permanently deletes the credential identified by `packageName` and
|
|
52
36
|
* `credentialName`, removing all of its fields. Returns the deleted credential.
|
|
@@ -91,6 +75,10 @@ export namespace CredentialCreateResponse {
|
|
|
91
75
|
* for credentials created before rollout.
|
|
92
76
|
*/
|
|
93
77
|
userId: string | null;
|
|
78
|
+
|
|
79
|
+
link?: Data.Link;
|
|
80
|
+
|
|
81
|
+
source?: 'mobilerun' | 'onepassword';
|
|
94
82
|
}
|
|
95
83
|
|
|
96
84
|
export namespace Data {
|
|
@@ -106,46 +94,34 @@ export namespace CredentialCreateResponse {
|
|
|
106
94
|
|
|
107
95
|
value: string;
|
|
108
96
|
}
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
97
|
|
|
112
|
-
export interface
|
|
113
|
-
|
|
114
|
-
}
|
|
98
|
+
export interface Link {
|
|
99
|
+
fieldMap: Array<Link.FieldMap>;
|
|
115
100
|
|
|
116
|
-
|
|
117
|
-
export interface Data {
|
|
118
|
-
createdBy: string | null;
|
|
119
|
-
|
|
120
|
-
credentialName: string;
|
|
101
|
+
itemId: string;
|
|
121
102
|
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
ownerId: string;
|
|
103
|
+
itemTitle: string;
|
|
125
104
|
|
|
126
|
-
|
|
105
|
+
provider: 'onepassword';
|
|
127
106
|
|
|
128
|
-
|
|
107
|
+
vaultId: string;
|
|
129
108
|
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
* for credentials created before rollout.
|
|
133
|
-
*/
|
|
134
|
-
userId: string | null;
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
export namespace Data {
|
|
138
|
-
export interface Field {
|
|
139
|
-
fieldType:
|
|
140
|
-
| 'email'
|
|
141
|
-
| 'username'
|
|
142
|
-
| 'password'
|
|
143
|
-
| 'api_token'
|
|
144
|
-
| 'phone_number'
|
|
145
|
-
| 'two_factor_secret'
|
|
146
|
-
| 'backup_codes';
|
|
109
|
+
vaultName: string;
|
|
110
|
+
}
|
|
147
111
|
|
|
148
|
-
|
|
112
|
+
export namespace Link {
|
|
113
|
+
export interface FieldMap {
|
|
114
|
+
fieldId: string;
|
|
115
|
+
|
|
116
|
+
fieldType:
|
|
117
|
+
| 'email'
|
|
118
|
+
| 'username'
|
|
119
|
+
| 'password'
|
|
120
|
+
| 'api_token'
|
|
121
|
+
| 'phone_number'
|
|
122
|
+
| 'two_factor_secret'
|
|
123
|
+
| 'backup_codes';
|
|
124
|
+
}
|
|
149
125
|
}
|
|
150
126
|
}
|
|
151
127
|
}
|
|
@@ -177,6 +153,10 @@ export namespace CredentialDeleteResponse {
|
|
|
177
153
|
* for credentials created before rollout.
|
|
178
154
|
*/
|
|
179
155
|
userId: string | null;
|
|
156
|
+
|
|
157
|
+
link?: Data.Link;
|
|
158
|
+
|
|
159
|
+
source?: 'mobilerun' | 'onepassword';
|
|
180
160
|
}
|
|
181
161
|
|
|
182
162
|
export namespace Data {
|
|
@@ -192,6 +172,35 @@ export namespace CredentialDeleteResponse {
|
|
|
192
172
|
|
|
193
173
|
value: string;
|
|
194
174
|
}
|
|
175
|
+
|
|
176
|
+
export interface Link {
|
|
177
|
+
fieldMap: Array<Link.FieldMap>;
|
|
178
|
+
|
|
179
|
+
itemId: string;
|
|
180
|
+
|
|
181
|
+
itemTitle: string;
|
|
182
|
+
|
|
183
|
+
provider: 'onepassword';
|
|
184
|
+
|
|
185
|
+
vaultId: string;
|
|
186
|
+
|
|
187
|
+
vaultName: string;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
export namespace Link {
|
|
191
|
+
export interface FieldMap {
|
|
192
|
+
fieldId: string;
|
|
193
|
+
|
|
194
|
+
fieldType:
|
|
195
|
+
| 'email'
|
|
196
|
+
| 'username'
|
|
197
|
+
| 'password'
|
|
198
|
+
| 'api_token'
|
|
199
|
+
| 'phone_number'
|
|
200
|
+
| 'two_factor_secret'
|
|
201
|
+
| 'backup_codes';
|
|
202
|
+
}
|
|
203
|
+
}
|
|
195
204
|
}
|
|
196
205
|
}
|
|
197
206
|
|
|
@@ -216,10 +225,6 @@ export namespace CredentialCreateParams {
|
|
|
216
225
|
}
|
|
217
226
|
}
|
|
218
227
|
|
|
219
|
-
export interface CredentialRetrieveParams {
|
|
220
|
-
packageName: string;
|
|
221
|
-
}
|
|
222
|
-
|
|
223
228
|
export interface CredentialDeleteParams {
|
|
224
229
|
packageName: string;
|
|
225
230
|
}
|
|
@@ -229,10 +234,8 @@ Credentials.Fields = Fields;
|
|
|
229
234
|
export declare namespace Credentials {
|
|
230
235
|
export {
|
|
231
236
|
type CredentialCreateResponse as CredentialCreateResponse,
|
|
232
|
-
type CredentialRetrieveResponse as CredentialRetrieveResponse,
|
|
233
237
|
type CredentialDeleteResponse as CredentialDeleteResponse,
|
|
234
238
|
type CredentialCreateParams as CredentialCreateParams,
|
|
235
|
-
type CredentialRetrieveParams as CredentialRetrieveParams,
|
|
236
239
|
type CredentialDeleteParams as CredentialDeleteParams,
|
|
237
240
|
};
|
|
238
241
|
|